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] Assigned: (JCR-150) Node.getLock() on a lock non-lockable node throws javax.jcr.UnsupportedRepositoryOperationException
Date Thu, 30 Jun 2005 09:33:17 GMT
     [ http://issues.apache.org/jira/browse/JCR-150?page=all ]

Stefan Guggisberg reassigned JCR-150:
-------------------------------------

    Assign To: Stefan Guggisberg

> Node.getLock() on a lock non-lockable node throws javax.jcr.UnsupportedRepositoryOperationException
> ---------------------------------------------------------------------------------------------------
>
>          Key: JCR-150
>          URL: http://issues.apache.org/jira/browse/JCR-150
>      Project: Jackrabbit
>         Type: Bug
>  Environment: Jackrabbit SVN Rev. 202500
>     Reporter: Felix Meschberger
>     Assignee: Stefan Guggisberg

>
> Consider Node "/test" with mixin type mix:lockable and Node "/test/child" without mixin
type mix:lockable.
>        Node root = Session.getRootNode();
>        Node test = root.getNode("test");
>        Node child = test.getNode("child");
>        // create lock on /test
>        test.lock();
>        // succeeds
>        Lock lock = test.getLock();
>        // sets flag true
>        boolean locked = child.isLocked();
>        // throws UnsupportedRepositoryOperationException
>        lock = child.getLock();
> According to the spec, the getLock() method must return the applicable lock if the node
is locked regardless of whether the node has mixin type "mix:lockable" or not.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


Mime
View raw message