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

Validation fails for non-docview xml files serialized as extended file aggregates

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.6.0
    • 3.6.4
    • validation
    • None

    Description

      Consider the following content entries

      • /apps/myfile.xml
      • /apps/myfile.xml.dir/.content.xml

      Where the myfile.xml is an ordinary / non-docview xml file and the .content.xml file provides additional properties for that files jcr:content:

      <?xml version="1.0" encoding="UTF-8"?>
      <jcr:root xmlns:oak="http://jackrabbit.apache.org/oak/ns/1.0" xmlns:dam="http://www.day.com/dam/1.0" xmlns:jcr="http://www.jcp.org/jcr/1.0" xmlns:nt="http://www.jcp.org/jcr/nt/1.0"
          jcr:primaryType="nt:file">
          <jcr:content
              jcr:encoding="us-ascii"
              jcr:primaryType="oak:Resource"/>
      </jcr:root>
      

      The validation of this scenario fails with the following messages (note: I adjusted the severity to warn in order to make it pass but per default it logs as error)

      [INFO] ValidationViolation: "jackrabbit-docviewparser: This file is not detected as docview xml file and therefore treated as binary", filePath=jcr_root/apps/myfile.xml
      [WARNING] ValidationViolation: "jackrabbit-nodetypes: Mandatory property 'jcr:data' missing in node with types [oak:Resource]", filePath=jcr_root/myfile.xml.dir/.content.xml, nodePath=/apps/myfile.xml/jcr:content
      

      Attachments

        Activity

          People

            kwin Konrad Windszus
            diru Dirk Rudolph
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: