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

angela commented on OAK-901:
----------------------------

IMO it's pretty clear: the only node that has rep:root as declaring node type 
is /jcr:system.
all the other child nodes of the root are defined by the nt:unstructured super 
type and thus should report nt:unstructured as declaring node type.

so, i suspect that this problem is not limited to the children of the root node 
but applies for all nodes as most probable the implementation behaves 
differently on how the declaring node type is determined. IMO we should fix 
that in general not just for that specific case.

> Test root node type is not reported correctly
> ---------------------------------------------
>
>                 Key: OAK-901
>                 URL: https://issues.apache.org/jira/browse/OAK-901
>             Project: Jackrabbit Oak
>          Issue Type: Bug
>          Components: core, jcr
>            Reporter: Alex Parvulescu
>            Assignee: Jukka Zitting
>             Fix For: 0.14
>
>
> The test root used in the jcr tests is created as _nt:unstructured_ but 
> calling _testRootNode.getDefinition().getDeclaringNodeType().getName()_ will 
> wrongfully return _rep:root_ (the node type of the repository root)
> This also influences the OAK-900 tests, namely the _ReorderTest_ which will 
> throw an _NotExecutableException_ on account of the wrong node type.
> I'll shortly add a test.



--
This message was sent by Atlassian JIRA
(v6.1#6144)

Reply via email to