[
https://issues.apache.org/jira/browse/OAK-901?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13711031#comment-13711031
]
Michael Dürig commented on OAK-901:
-----------------------------------
For clarification we have:
{code}
[rep:root] > nt:unstructured
+ jcr:system (rep:system) = rep:system mandatory IGNORE
{code}
What should {{getDeclaringNodeType()}} on a child node of the root return?
AFAIK Oak returns {{rep:root}} and Jackrabbit 2 returns {{nt:unstructured}}.
Both seems correct to me and the specification seems to be silent on declaring
node types under inheritance. For the sake of backward compatibility we should
probably change this in Oak.
> 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
>
> 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 is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira