You are viewing a plain text version of this content. The canonical link for it is here.
Posted to oak-issues@jackrabbit.apache.org by "angela (JIRA)" <ji...@apache.org> on 2013/09/05 10:20:51 UTC

[jira] [Resolved] (OAK-998) Node#orderBefore() is not JCR conform

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

angela resolved OAK-998.
------------------------

    Resolution: Fixed

fixed at revision 1520247.

thanks very much for finding and reporting this issue.
                
> Node#orderBefore() is not JCR conform
> -------------------------------------
>
>                 Key: OAK-998
>                 URL: https://issues.apache.org/jira/browse/OAK-998
>             Project: Jackrabbit Oak
>          Issue Type: Bug
>          Components: jcr
>    Affects Versions: 0.8
>            Reporter: Christan Keller
>            Assignee: angela
>
> In case you call node.orderBefore("nodeName", "nodeName"), oak throws
> IllegalArgumentException with message "limit is negative"
> While you may reason that is a wrong useage the spec is explicit about the expected behavior.
> {noformat}If this node supports child node ordering, this method inserts the child node at srcChildRelPath into the child node list at the position immediately the child node at destChildRelPath.
> To place the node srcChildRelPath at the end of the list, a destChildRelPath of null is used.
> Note that (apart from the case where destChildRelPath is null) both of these arguments must be relative paths of depth one, in other words they are the names of the child nodes, possibly suffixed with an index.
> If srcChildRelPath and destChildRelPath are the same, then no change is made.
> This is session-write method, meaning that a change made by this method is dispatched on save{noformat}

--
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