Dirk Rudolph created JCRVLT-637: ----------------------------------- Summary: Validation fails for non-docview xml files with additional properties Key: JCRVLT-637 URL: https://issues.apache.org/jira/browse/JCRVLT-637 Project: Jackrabbit FileVault Issue Type: Bug Components: validation Affects Versions: 3.6.0 Reporter: Dirk Rudolph Fix For: 3.6.2
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: {code:java} <?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> {code} 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) {code:java} [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 {code} -- This message was sent by Atlassian Jira (v8.20.7#820007)