-
Suggestion
-
Resolution: Fixed
Problem
It has been noticed that Exporting a Confluence Page to Word can fail when it specifically contains large Draw.IO XML diagrams.
This is Caused by: javax.xml.stream.XMLStreamException: Maximum attribute size limit (524288) exceeded
Suggested Solution
The code review tells us that https://fasterxml.github.io/woodstox/javadoc/5.0/com/ctc/wstx/api/WstxInputProperties.html#P_MAX_ATTRIBUTE_SIZE
is currently not configurable in Confluence.
Whereas a similar other property P_INPUT_BUFFER_LENGTH is currently configurable via a System Property "com.ctc.wstx.inputBufferLength".
We want P_MAX_ATTRIBUTE_SIZE to be configurable in the same way in order to mitigate the problem mentioned above
Why This Is Important
It is important that such type of content could be exported to Word and without having the built-in feature silently failing for the end-users.
Workaround
We can imagine removing the Draw.IO diagram, doing the Export to Word for the page, adding back the Draw.IO diagram and taking a screenshot of the diagram to manually add it to Word would work. But it is also very impractical and defeats the purpose of the feature to Export the page content to Word directly