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

Nodetype validator complains about root node

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 3.4.6, package-maven-plugin-1.1.4
    • 3.4.8
    • vlt
    • None

    Description

      if a content package is downloaded via CRX package manager it usually also contains intermediate note definitions up to the root node in the jcr_root folder.

      the nodetype validator added recently complains about this root node definition which is included by default:

      [ERROR] ValidationViolation: "jackrabbit-nodetypes: Node '{http://www.jcp.org/jcr/1.0}root [rep:root (rep:AccessControllable, rep:RepoAccessControllable)]' is not allowed as child of not contained node with potential default types '[nt:folder]': Could not find matching child node definition in parent's node type", filePath=jcr_root\.content.xml, nodePath=/, line=6, column=33
      [ERROR] ValidationViolation: "jackrabbit-nodetypes: Mandatory child node missing: jcr:system [rep:system]", filePath=jcr_root\.content.xml, nodePath=/, line=6, column=33
      

      as a workaround i could remove the .content.xml file from the jcr_root folder, but i prefer to keep exactly the content that is contained in the content package.

      with this AEM sample project it is possible to reproduce the problem:
      https://github.com/stefanseifert/filevault-package-maven-plugin-validation-issues/tree/master/content-packages/conf-content
      https://github.com/stefanseifert/filevault-package-maven-plugin-validation-issues/tree/master/content-packages/sample-content

      Attachments

        Issue Links

          Activity

            People

              kwin Konrad Windszus
              sseifert Stefan Seifert
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: