[ 
https://issues.apache.org/jira/browse/JCRVLT-551?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17401499#comment-17401499
 ] 

Marcel Reutegger commented on JCRVLT-551:
-----------------------------------------

Oak uses an index to keep track of references. A commit will fail 
[here|https://github.com/apache/jackrabbit-oak/blob/c6ddcc55bee3de915459af01e91edad32d538f3d/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/index/reference/ReferenceEditor.java#L189]
 if you try to remove a node that is still referenced.

> Set jcr:uuid to value from package when updating node
> -----------------------------------------------------
>
>                 Key: JCRVLT-551
>                 URL: https://issues.apache.org/jira/browse/JCRVLT-551
>             Project: Jackrabbit FileVault
>          Issue Type: Improvement
>          Components: vlt
>    Affects Versions: 3.5.0
>            Reporter: Konrad Windszus
>            Priority: Major
>
> Currently the code at 
> [https://github.com/apache/jackrabbit-filevault/blob/ac74458a0226eb503d96cf2b238cec78b6f36dc2/vault-core/src/main/java/org/apache/jackrabbit/vault/fs/impl/io/DocViewSAXImporter.java#L809]
>  does not try to adjust the {{jcr:uuid}} property in case a referenceable 
> node is imported from a package which already exists (potentially with a 
> different {{jcr:uuid)}} in the repository.
> This contradicts the contract from the javadoc 
> [https://github.com/apache/jackrabbit-filevault/blob/c612dda36895d379ec57f6d2834158ea513f2967/vault-core/src/main/java/org/apache/jackrabbit/vault/fs/impl/io/DocViewSAXImporter.java#L88].



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to