Uploaded image for project: 'Jackrabbit Content Repository'
  1. Jackrabbit Content Repository
  2. JCR-4935

session.exportDocumentView() generates unparsable XML if a JCR Property contains invalid XML character

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 2.21.18
    • None
    • jackrabbit-jcr-commons
    • None

    Description

      I came across this issue in AEM, where user content can contain all kinds of special characters. In my case it was a 0x3 character (^C) in a node property which was written in the JCR XML as-is, and it resulted in a unparsable output. 

      IMO control characters, non-characters and out-of-unicode-range characters should be skipped when writing XML. These can come from user data and can act as a "poison pill" breaking the export/import functionality. 

       

      The PR is coming.

      Attachments

        Issue Links

          Activity

            People

              reschke Julian Reschke
              yegor.kozlov Yegor Kozlov
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated: