Repository navigation
fix(bbb-export-annotations): set xml:space through the XML namespace - #25923
Merged
antobinary merged 1 commit intoOct 1, 2026
Merged
antobinary merged 1 commit into
antobinary merged 1 commit into
Conversation
Exporting a presentation that carries a text annotation crashes the export service on v3.0.x-develop since svgdom was bumped from 0.1.20 to 0.1.29 (bigbluebutton#25857). The process worker dies with an uncaught Error: Invalid State Error at ensureXMLSerializableName (svgdom/src/utils/tagUtils.js) the service exits and is restarted by systemd, and the job is lost: the "Sending to chat" toast stays on "Extracting slide N of N..." and no download link ever reaches the chat. svgdom 0.1.29 refuses to serialize an attribute whose local name contains a colon, which is what a namespace-unaware setAttribute creates. TextShape set xml:space that way. Pass the XML namespace so svg.js uses setAttributeNS and the attribute gets the xml prefix with the local name "space". The serialized element is unchanged (<text ... xml:space="preserve">) on both svgdom 0.1.20 and 0.1.29, so the rendered text is the same. Found through the "Exported text annotations do not overlap" test added by the bigbluebutton#25722 backport (bigbluebutton#25917), which times out in CI on the missing download link. With develop's dependencies installed on a 3.0 server the test reproduces that timeout and the crash above; with this change the export completes and the test passes (4 of 4 runs).
✅ Automated tests have passed! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
On
v3.0.x-develop, exporting a presentation that has a text annotation crashes the export service. The process worker dies with an uncaughtthe service exits and is restarted by systemd, and the job is lost: the "Sending to chat" toast stays on "Extracting slide N of N..." and no download link reaches the chat.
Why
#25857 bumped
svgdomfrom 0.1.20 to 0.1.29. The new version refuses to serialize an attribute whose local name contains a colon, which is what a namespace-unawaresetAttributecreates.TextShapesetxml:spacethat way.No release contains the bump yet. 4.0 is still on
svgdom0.1.20 and is not affected today, but has the same line.Fix
Pass the XML namespace so svg.js uses
setAttributeNS:The serialized element is unchanged (
<text ... xml:space="preserve">) on bothsvgdom0.1.20 and 0.1.29.Testing
Found through the "Exported text annotations do not overlap" test added in #25917, which times out in CI waiting for the download link.
On a 3.0 server with the dependencies from
v3.0.x-developinstalled inbbb-export-annotations:Invalid State Errorand service restart in the journalThis PR's CI does not cover the change; the test is in #25917, which should pass once this is merged.
🤖 Generated with Claude Code