You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jackrabbit.apache.org by "Konrad Windszus (Jira)" <ji...@apache.org> on 2021/06/09 13:03:00 UTC

[jira] [Commented] (JCRVLT-528) filevault-package-maven-plugin:validate-files reports errors validate-package does not

    [ https://issues.apache.org/jira/browse/JCRVLT-528?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17360049#comment-17360049 ] 

Konrad Windszus commented on JCRVLT-528:
----------------------------------------

Executing {{mvn clean verify -X}} exposes the following log

{code}
[INFO] ValidationViolation: "jackrabbit-filter: Ancestor node '/conf' is not covered by any of the filter rules but that node is a given root (either by a dependency or by the known roots). Remove that node!", filePath=jcr_root/conf/.content.xml
[DEBUG] ValidationViolation: "jackrabbit-emptyelements: Validate..."
[DEBUG] ValidationViolation: "jackrabbit-packagetype: Validate..."
[DEBUG] Validating file 'jcr_root/conf/filevaultsample/settings/.content.xml'...
[DEBUG] Validate conf/filevaultsample/settings/.content.xml with validator 'org.apache.jackrabbit.vault.validation.spi.impl.DocumentViewParserValidator'
[DEBUG] ValidationViolation: "Validating jcr file 'conf/filevaultsample/settings/.content.xml'..."
[DEBUG] ValidationViolation: "jackrabbit-docviewparser: Validate..."
[DEBUG] ValidationViolation: "jackrabbit-docviewparser: Detected DocView...", filePath=jcr_root/conf/filevaultsample/settings/.content.xml
[DEBUG] ValidationViolation: "jackrabbit-docviewparser: Validate node 'DocViewNode [name={}settings, label=jcr:root, props={{http://www.jcp.org/jcr/1.0}primaryType=DocViewProperty [name={http://www.jcp.org/jcr/1.0}primaryType, values=[sling:Folder], isMulti=false, type=0, isReferenceProperty=false], {http://sling.apache.org/jcr/sling/1.0}resourceType=DocViewProperty [name={http://sling.apache.org/jcr/sling/1.0}resourceType, values=[sling:Folder], isMulti=false, type=0, isReferenceProperty=false]}, uuid=null, mixins=null, primary=sling:Folder]' start", filePath=jcr_root/conf/filevaultsample/settings/.content.xml, nodePath=/conf/filevaultsample/settings
[ERROR] ValidationViolation: "jackrabbit-nodetypes: Property 'sling:resourceType' [String] is not allowed in node with potential default types [nt:folder]: No applicable property definition found for name and type!", filePath=jcr_root/conf/filevaultsample/settings/.content.xml, nodePath=/conf/filevaultsample/settings, line=4, column=40
[DEBUG] ValidationViolation: "jackrabbit-docviewparser: Validate node 'DocViewNode [name={}settings, label=jcr:root, props={{http://www.jcp.org/jcr/1.0}primaryType=DocViewProperty [name={http://www.jcp.org/jcr/1.0}primaryType, values=[sling:Folder], isMulti=false, type=0, isReferenceProperty=false], {http://sling.apache.org/jcr/sling/1.0}resourceType=DocViewProperty [name={http://sling.apache.org/jcr/sling/1.0}resourceType, values=[sling:Folder], isMulti=false, type=0, isReferenceProperty=false]}, uuid=null, mixins=null, primary=sling:Folder]' end", filePath=jcr_root/conf/filevaultsample/settings/.content.xml, nodePath=/conf/filevaultsample/setting
{code}

> filevault-package-maven-plugin:validate-files reports errors validate-package does not
> --------------------------------------------------------------------------------------
>
>                 Key: JCRVLT-528
>                 URL: https://issues.apache.org/jira/browse/JCRVLT-528
>             Project: Jackrabbit FileVault
>          Issue Type: Bug
>          Components: package maven plugin
>    Affects Versions: package-maven-plugin-1.1.6
>            Reporter: Stefan Seifert
>            Assignee: Konrad Windszus
>            Priority: Minor
>
> scenario: use content package sample project
> https://github.com/stefanseifert/filevault-package-maven-plugin-validation-issues/tree/master/content-packages/conf-content
> and execute {{mvn clean verify}} (which calls validate-package goal)  - all is well, package validation completes successfully.
> now execute on the same project with {{mvn clean test}} (which calls validate-files goal) - this time the validation fails with:
> {noformat}
> [ERROR] ValidationViolation: "jackrabbit-nodetypes: Property 'sling:resourceType' [String] is not allowed in node with potential default types [nt:folder]: No applicable property definition found for name and type!", filePath=jcr_root\conf\filevaultsample\settings\.content.xml, nodePath=/conf/filevaultsample/settings, line=4, column=40
> {noformat}
> why this? it's the same package and the same validators configuration. furthermore, the package content is downloaded from package manager and not created manually, so it should be consistent.
> same problem can be reproduced with more validation differences with:
> https://github.com/stefanseifert/filevault-package-maven-plugin-validation-issues/tree/master/content-packages/sample-content



--
This message was sent by Atlassian Jira
(v8.3.4#803005)