[
https://issues.apache.org/jira/browse/JCRVLT-637?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Konrad Windszus closed JCRVLT-637.
----------------------------------
> Validation fails for non-docview xml files serialized as extended file
> aggregates
> ---------------------------------------------------------------------------------
>
> 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
> Assignee: Konrad Windszus
> Priority: Major
> Fix For: 3.6.4
>
>
> 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.10#820010)