Uploaded image for project: 'ModeShape'
  1. ModeShape
  2. MODE-1961

Import ignores mixin or applies constraints incorrectly

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Blocker
    • 3.4.0.Final, 3.3.x-prod-ip6.0
    • 3.3.0.Final
    • JCR
    • None

    Description

      After import of an workspace.xml file of a modeshape 2.8 repo into 3.3 following error is thrown:

      javax.jcr.nodetype.ConstraintViolationException: No valid property definition on node '/brix:root/brix:web/brix:globalContainer' with primary type 'nt:file' and mixin types [] for the property: brix:nodeType="brix:globalContainer"
           at org.modeshape.jcr.AbstractJcrNode.propertyDefinitionFor(AbstractJcrNode.java:479)
           at org.modeshape.jcr.AbstractJcrNode.createJcrProperty(AbstractJcrNode.java:395)
      

      The same import into modeshape 2.x, or 3.1, 3.2 works as intended (though 3.1 and 3.2 have other flaws);

      The reported error leads to wrong checking or wrong done import as the blamed resource above lists as follows in the workspace.xml (only beginning here, mixinTypes-def is line 3 as brix:node):

      <sv:node sv:name="brix:globalContainer">
      <sv:property sv:name="jcr:primaryType" sv:type="Name">
      <sv:value>nt:file</sv:value>
      </sv:property>
      <sv:property sv:name="jcr:mixinTypes" sv:type="Name" sv:multiple="true">
      <sv:value>brix:node</sv:value>
      </sv:property>
      <sv:property sv:name="jcr:uuid" sv:type="String">
      <sv:value>517326c9-05a5-462d-920f-5e730aaef6e6</sv:value>
      </sv:property>
      <sv:property sv:name="brix:lastModifiedBy" sv:type="String">
      <sv:value><anonymous></sv:value>
      </sv:property>
      <sv:property sv:name="jcr:createdBy" sv:type="String">
      <sv:value><anonymous></sv:value>
      </sv:property>
      .... 
      

      Attachments

        1. brix.cnd
          0.6 kB
        2. defaultDemoWorkspace.xml
          73 kB
        3. workspace_empty.xml
          10 kB

        Issue Links

          Activity

            People

              hchiorean Horia Chiorean (Inactive)
              kbachl K. Bachl (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: