Uploaded image for project: 'Jackrabbit FileVault'
  1. Jackrabbit FileVault
  2. JCRVLT-147

Remove unsued special jcr:xmltext handling in DocViewSAXFormatter

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.1.30
    • 3.1.38
    • Packaging
    • None

    Description

      the DocViewSAXFormatter has a special handling for jcr:xmltext. It will inline the characters in the .content.xml tags, similar to the JCR docview format. The deserialization in vault was never implemented and is not used. we will remove the special treatment.

      Serializing a node structure that has jcr:xmltext nodes, are transformed into xml-text instead of elements in the .content.xml:

      expected:

      <?xml version="1.0" encoding="UTF-8"?>
      <jcr:root xmlns:jcr="http://www.jcp.org/jcr/1.0" xmlns:nt="http://www.jcp.org/jcr/nt/1.0"
          jcr:primaryType="nt:unstructured">
          <a jcr:primaryType="nt:unstructured">
              <jcr:xmltext 
                  jcr:primaryType="nt:unstructured"
                  jcr:xmlcharacters="Hello, World." />
          </a>
      </jcr:root>
      

      actual:

      <?xml version="1.0" encoding="UTF-8"?>
      <jcr:root xmlns:jcr="http://www.jcp.org/jcr/1.0" xmlns:nt="http://www.jcp.org/jcr/nt/1.0"
          jcr:primaryType="nt:unstructured">
          <a jcr:primaryType="nt:unstructured">Hello, World.</a>
      </jcr:root>
      

      Attachments

        Activity

          People

            tripod Tobias Bocanegra
            tripod Tobias Bocanegra
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: