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

Exported workspace.xml not correctly imported in case of sv:multiple holds only single value

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Critical
    • 2.5.0.Final
    • 2.5.0.Beta2
    • JCR
    • None

    Description

      this is the reason for initial: https://issues.jboss.org/browse/MODE-1170

      in case one exports an workspace.xml from e.g. jackrabbit that holds:

      <sv:node sv:name="child">
          <sv:property sv:name="jcr:primaryType" sv:type="Name">
              <sv:value>nt:unstructured</sv:value>
          </sv:property>
          <sv:property sv:name="cssClass" sv:type="String">
              <sv:value>dir</sv:value>
          </sv:property>
          <sv:property sv:name="menuType" sv:type="String">
              <sv:value>REFERENCE</sv:value>
          </sv:property>
          <sv:property sv:name="title" sv:type="String">
              <sv:value>Wein</sv:value>
          </sv:property>
          <sv:node sv:name="reference">
              <sv:property sv:name="jcr:primaryType" sv:type="Name">
                  <sv:value>nt:unstructured</sv:value>
              </sv:property>
              <sv:property sv:name="jcr:mixinTypes" sv:type="Name" sv:multiple="true">
                  <sv:value>brix:hidden</sv:value>
              </sv:property>
              <sv:property sv:name="indexedParameters" sv:type="String" sv:multiple="true">
                  <sv:value>wein</sv:value>
              </sv:property>
              <sv:property sv:name="node" sv:type="Reference">
                  <sv:value>cef14fca-1f16-446d-ac50-5222cd6ece9e</sv:value>
              </sv:property>
              <sv:property sv:name="type" sv:type="String">
                  <sv:value>NODE</sv:value>
              </sv:property>
          </sv:node>
      </sv:node>
      

      having a:

      <sv:property sv:name="indexedParameters" sv:type="String" sv:multiple="true">
          <sv:value>wein</sv:value>
      </sv:property>
      

      in it, it is translated by modeshape to a JcrSingleValueProperty instead of a JcrMultiValueProperty; It seems the sv:multiple="true" is ignored and instead the size of the sv:value-array taken into account.

      Attachments

        Activity

          People

            bcarothers_jira Brian Carothers (Inactive)
            kbachl K. Bachl (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: