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

DocViewSaxFormatter does not always emit namespace declaration for "jcr"

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.1.42
    • Fix Version/s: 3.1.44
    • Component/s: vlt
    • Labels:
      None

      Description

      Under certain circumstances the DocViewSaxFormatter does not emit any namespace declarations. That is the case for an aggregate not having any namespaced properties (e.g. due to lack of read privileges) and not having any namespaced child elements. The generated .content.xml then looks like this:

      <?xml version="1.0" encoding="UTF-8"?>
      <jcr:root />
      

      This XML is invalid and leads to exceptions during import.
      The problem is that the namespace for jcr is always necessary as the root element is always named jcr:root.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              kwin Konrad Windszus
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: