Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-17796

Use ComponentManager to set the XMLReader used by PDF export

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Fixed
    • Minor
    • 12.10
    • 12.7.1
    • Old Core - PDF export
    • None
    • Easy
    • N/A
    • N/A
    • Awaiting Committer feedback

    Description

      Currently, PDF export uses the XMLReader instance created internally by dom4j's SAXReader. As that default XMLReader is configured to remove the entities, the export process has to reset that configuration (and there is little hope that dom4j is going to provide a solution anytime soon).

      Instead, I suggest using a XWiki's own XMLReader as delivered by ComponentManager. This has the advantage of not depending on dom4j's decisions, and using the standardized facility that XWiki has for this. I'm preparing a pull request.

      Depends on XCOMMONS-2026.

      Attachments

        Activity

          People

            vmassol Vincent Massol
            carlosame Carlos Amengual
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: