You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jackrabbit.apache.org by "c keller (JIRA)" <ji...@apache.org> on 2005/05/23 11:14:56 UTC

[jira] Created: (JCR-124) Session.import() failes to resolve propert property definition in some cases

Session.import() failes to resolve propert property definition in some cases
----------------------------------------------------------------------------

         Key: JCR-124
         URL: http://issues.apache.org/jira/browse/JCR-124
     Project: Jackrabbit
        Type: Bug
  Components: xml  
    Reporter: c keller


Some Properties get assigned the wrong definiton when imported via SysView XML.

The selecteion of the definition failes under the following condition:
The nodetype contains a multi-valued property and a single-valued
residual property.
If the data to be imported than contains only one value for the multivalued property, it will be created with the residual definition.
A later access to this propertie's values will fail with an ValueFormatException.

Example:
Node-Type
 - Property
  - name: myapp:name
  - mulitple: true
 - Property
  - name: *
  - multible: false

Sysview:
<sv:node sv:name="somenode">
  <sv:property sv:name="jcr:primaryType" sv:type="Name">
   <sv:value>myapp:sampleNt</sv:value> 
  </sv:property>
 
  <sv:property sv:name="myapp:name" sv:type="String">
   <sv:value>At least I could have multi values</sv:value> 
  </sv:property>
</sv:node>

=> The "mayapp:name" will be imported into the residule property.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Assigned: (JCR-124) Session.import() failes to resolve propert property definition in some cases

Posted by "Stefan Guggisberg (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/JCR-124?page=all ]

Stefan Guggisberg reassigned JCR-124:
-------------------------------------

    Assign To: Stefan Guggisberg

> Session.import() failes to resolve propert property definition in some cases
> ----------------------------------------------------------------------------
>
>          Key: JCR-124
>          URL: http://issues.apache.org/jira/browse/JCR-124
>      Project: Jackrabbit
>         Type: Bug
>   Components: xml
>     Reporter: c keller
>     Assignee: Stefan Guggisberg

>
> Some Properties get assigned the wrong definiton when imported via SysView XML.
> The selecteion of the definition failes under the following condition:
> The nodetype contains a multi-valued property and a single-valued
> residual property.
> If the data to be imported than contains only one value for the multivalued property, it will be created with the residual definition.
> A later access to this propertie's values will fail with an ValueFormatException.
> Example:
> Node-Type
>  - Property
>   - name: myapp:name
>   - mulitple: true
>  - Property
>   - name: *
>   - multible: false
> Sysview:
> <sv:node sv:name="somenode">
>   <sv:property sv:name="jcr:primaryType" sv:type="Name">
>    <sv:value>myapp:sampleNt</sv:value> 
>   </sv:property>
>  
>   <sv:property sv:name="myapp:name" sv:type="String">
>    <sv:value>At least I could have multi values</sv:value> 
>   </sv:property>
> </sv:node>
> => The "mayapp:name" will be imported into the residule property.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Closed: (JCR-124) Session.import() failes to resolve propert property definition in some cases

Posted by "Stefan Guggisberg (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/JCR-124?page=all ]
     
Stefan Guggisberg closed JCR-124:
---------------------------------

    Resolution: Fixed

fixed in rev. 178206

> Session.import() failes to resolve propert property definition in some cases
> ----------------------------------------------------------------------------
>
>          Key: JCR-124
>          URL: http://issues.apache.org/jira/browse/JCR-124
>      Project: Jackrabbit
>         Type: Bug
>   Components: xml
>     Reporter: c keller
>     Assignee: Stefan Guggisberg

>
> Some Properties get assigned the wrong definiton when imported via SysView XML.
> The selecteion of the definition failes under the following condition:
> The nodetype contains a multi-valued property and a single-valued
> residual property.
> If the data to be imported than contains only one value for the multivalued property, it will be created with the residual definition.
> A later access to this propertie's values will fail with an ValueFormatException.
> Example:
> Node-Type
>  - Property
>   - name: myapp:name
>   - mulitple: true
>  - Property
>   - name: *
>   - multible: false
> Sysview:
> <sv:node sv:name="somenode">
>   <sv:property sv:name="jcr:primaryType" sv:type="Name">
>    <sv:value>myapp:sampleNt</sv:value> 
>   </sv:property>
>  
>   <sv:property sv:name="myapp:name" sv:type="String">
>    <sv:value>At least I could have multi values</sv:value> 
>   </sv:property>
> </sv:node>
> => The "mayapp:name" will be imported into the residule property.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira