Uploaded image for project: 'Confluence Data Center'
  1. Confluence Data Center
  2. CONFSERVER-92826

Ability to set P_MAX_ATTRIBUTE_SIZE for large XML Page Export to Word Operation

XMLWordPrintable

    • We collect Confluence feedback from various sources, and we evaluate what we've collected when planning our product roadmap. To understand how this piece of feedback will be reviewed, see our Implementation of New Features Policy.

      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

              6681b6b47631 Marcus Si
              2e857505f334 Pascal Oberle
              Votes:
              2 Vote for this issue
              Watchers:
              9 Start watching this issue

                Created:
                Updated:
                Resolved: