[ 
https://issues.apache.org/jira/browse/JCR-1895?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Sandrine Raffalli updated JCR-1895:
-----------------------------------

    Description: 
In the DefaultCollectionConverter in the insert method : if the element has an 
identifier field it's this field that is taken as the elementJcrName. Else it 
is the jcrElementName of the collection or the default name.

In the update method, if the element has an id field and an uuid field, it's 
the jcrElementName of the collection or the default name that is taken, not the 
id field.
In case of insert or update, it must take the same identifier to build the 
path. 

  was:
In the DefaultCollectionConverter in the insert method : if the element has an 
identifier field it's this field that is took for the elementJcrName. Else it 
is the jcrElementName of the collection or the default name.

In the update method, if the element has an id field and an uuid field, it's 
the jcrElementName of the collection or the default name that is took, not the 
id field.
In case of insert or update, it must take the same identifier to build the 
path. 

        Summary: Different behaviors between insert and update of a collection  
(was: Different behavior with insert and update of a collection)

> Different behaviors between insert and update of a collection
> -------------------------------------------------------------
>
>                 Key: JCR-1895
>                 URL: https://issues.apache.org/jira/browse/JCR-1895
>             Project: Jackrabbit
>          Issue Type: Bug
>          Components: jackrabbit-ocm
>    Affects Versions: 1.6.0
>            Reporter: Sandrine Raffalli
>
> In the DefaultCollectionConverter in the insert method : if the element has 
> an identifier field it's this field that is taken as the elementJcrName. Else 
> it is the jcrElementName of the collection or the default name.
> In the update method, if the element has an id field and an uuid field, it's 
> the jcrElementName of the collection or the default name that is taken, not 
> the id field.
> In case of insert or update, it must take the same identifier to build the 
> path. 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to