jackrabbit-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Stefan Guggisberg (JIRA)" <j...@apache.org>
Subject [jira] Commented: (JCR-2877) Extend the consistency check in BundleDbPersistenceManager's to fix child-parent relations
Date Wed, 09 Feb 2011 09:27:57 GMT

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

Stefan Guggisberg commented on JCR-2877:
----------------------------------------

> Is there a way to determine the name of the node. The child node must add itself to its
parent node but normally only the parent knows the name of the child node ?

*only* the parent knows the names of its child nodes. that's a core aspect of jackrabbit's
data model.
you would have to make up a new (unique) name. the child node should IMO be easily identifiable
as a 
resurrected orphaned child node.

> Extend the consistency check in BundleDbPersistenceManager's to fix child-parent relations
> ------------------------------------------------------------------------------------------
>
>                 Key: JCR-2877
>                 URL: https://issues.apache.org/jira/browse/JCR-2877
>             Project: Jackrabbit Content Repository
>          Issue Type: Improvement
>          Components: jackrabbit-core
>    Affects Versions: 2.2.2
>            Reporter: Claus Köll
>            Assignee: Claus Köll
>            Priority: Minor
>             Fix For: 2.3.0
>
>
> It could happen that a child node is not in the ChildNodeEntries of its parent node.
> You will get something like (javax.jcr.ItemNotFoundException: failed to build path of
node1: parentNode has no child entry for node1) if you try to retrieve the path from node1.
> We should handle such cases and fix it on consistency check

-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

Mime
View raw message