Uploaded image for project: 'Alfresco One Platform'
  1. Alfresco One Platform
  2. ACE-4550

Upgrade to XML 1.1 in ACP files to cope with restricted characters

    Details

    • Type: Bug
    • Status: Open (View Workflow)
    • Priority: Unprioritized
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Repository
    • Labels:
      None

      Description

      XML defines a set of "restricted characters" that cannot be used, even not encoded.

      In 1.0, these restricted characters contain all control chars < 0x0020, except 0x0009, 0x000A and 0x000D.

      In XML 1.1 only 0x0000 is restricted.

      See
      http://www.w3.org/TR/REC-xml/#dt-character
      and
      https://en.wikipedia.org/wiki/Valid_characters_in_XML

      The org.alfresco.repo.exporter.ExporterComponent currently uses the org.dom4j.io.XMLWriter that only writes XML 1.0 and does not care about restricted characters.

      We should:

      1. Upgrade to XML 1.1 for ACP files, and
      2. Use Woodstox FasterXML for the generation of XML files. It can be configured with an InvalidCharacterhandler that should be used to replace 0x0000 by either 0xFFFD (replacement char) or '_'.

      I am not sure if the Exporter is part of "Infrastructure" or "Content Services".

        Attachments

          Issue Links

            Structure

              Activity

                People

                • Assignee:
                  skopf Stefan Kopf
                  Reporter:
                  skopf Stefan Kopf
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  2 Start watching this issue

                  Dates

                  • Created:
                    Updated:

                    Time Tracking

                    Estimated:
                    Original Estimate - Not Specified
                    Not Specified
                    Remaining:
                    Remaining Estimate - 0 minutes
                    0m
                    Logged:
                    Time Spent - 10 minutes
                    10m

                      Structure Helper Panel