You are viewing a plain text version of this content. The canonical link for it is here.
Posted to oak-dev@jackrabbit.apache.org by "angela (JIRA)" <ji...@apache.org> on 2012/08/02 11:27:03 UTC

[jira] [Created] (OAK-218) Session methods rely on accessibility of root node

angela created OAK-218:
--------------------------

             Summary: Session methods rely on accessibility of root node
                 Key: OAK-218
                 URL: https://issues.apache.org/jira/browse/OAK-218
             Project: Jackrabbit Oak
          Issue Type: Bug
          Components: jcr
            Reporter: angela


the current implementation of Session methods access items rely on the
accessibility of the root which isn't something we can rely on.
the affected methods are

- Session#itemExists
- Session#propertyExists
- Session#nodeExists
- Session#getItem
- Session#getProperty
- Session#getNode

right now they are all inherited from the implementation in AbstractSession.


--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (OAK-218) Session methods rely on accessibility of root node

Posted by "angela (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/OAK-218?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13435236#comment-13435236 ] 

angela commented on OAK-218:
----------------------------

totally agree
                
> Session methods rely on accessibility of root node
> --------------------------------------------------
>
>                 Key: OAK-218
>                 URL: https://issues.apache.org/jira/browse/OAK-218
>             Project: Jackrabbit Oak
>          Issue Type: Bug
>          Components: jcr
>            Reporter: angela
>
> the current implementation of Session methods access items rely on the
> accessibility of the root which isn't something we can rely on.
> the affected methods are
> - Session#itemExists
> - Session#propertyExists
> - Session#nodeExists
> - Session#getItem
> - Session#getProperty
> - Session#getNode
> right now they are all inherited from the implementation in AbstractSession.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (OAK-218) Session methods rely on accessibility of root node

Posted by "angela (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/OAK-218?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13427222#comment-13427222 ] 

angela commented on OAK-218:
----------------------------

in addition AbstractSession doesn't respect identifier based paths (except for getItem).
while addressing the permission related issues we should make sure the implementation
properly deals with the identifier based paths in all methods except for getProperty and propertyExists
                
> Session methods rely on accessibility of root node
> --------------------------------------------------
>
>                 Key: OAK-218
>                 URL: https://issues.apache.org/jira/browse/OAK-218
>             Project: Jackrabbit Oak
>          Issue Type: Bug
>          Components: jcr
>            Reporter: angela
>
> the current implementation of Session methods access items rely on the
> accessibility of the root which isn't something we can rely on.
> the affected methods are
> - Session#itemExists
> - Session#propertyExists
> - Session#nodeExists
> - Session#getItem
> - Session#getProperty
> - Session#getNode
> right now they are all inherited from the implementation in AbstractSession.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (OAK-218) Session methods rely on accessibility of root node

Posted by "Michael Dürig (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/OAK-218?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13435224#comment-13435224 ] 

Michael Dürig commented on OAK-218:
-----------------------------------

On a related note, I don't think it's worth inheriting from {{AbstractSession}} any more. Virtually all default implementations are overridden without using the super method. Only exporting/importing is still used from {{AbstractSession}} but I think we better delegate this functionality to respective manager classes. 
                
> Session methods rely on accessibility of root node
> --------------------------------------------------
>
>                 Key: OAK-218
>                 URL: https://issues.apache.org/jira/browse/OAK-218
>             Project: Jackrabbit Oak
>          Issue Type: Bug
>          Components: jcr
>            Reporter: angela
>
> the current implementation of Session methods access items rely on the
> accessibility of the root which isn't something we can rely on.
> the affected methods are
> - Session#itemExists
> - Session#propertyExists
> - Session#nodeExists
> - Session#getItem
> - Session#getProperty
> - Session#getNode
> right now they are all inherited from the implementation in AbstractSession.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

[jira] [Commented] (OAK-218) Session methods rely on accessibility of root node

Posted by "angela (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/OAK-218?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13427394#comment-13427394 ] 

angela commented on OAK-218:
----------------------------

revision 1368490 fixes

- Session#itemExists
- Session#nodeExists
- Session#getItem
- Session#getNode

and adds a FIXME comment for the identifier path handling.

                
> Session methods rely on accessibility of root node
> --------------------------------------------------
>
>                 Key: OAK-218
>                 URL: https://issues.apache.org/jira/browse/OAK-218
>             Project: Jackrabbit Oak
>          Issue Type: Bug
>          Components: jcr
>            Reporter: angela
>
> the current implementation of Session methods access items rely on the
> accessibility of the root which isn't something we can rely on.
> the affected methods are
> - Session#itemExists
> - Session#propertyExists
> - Session#nodeExists
> - Session#getItem
> - Session#getProperty
> - Session#getNode
> right now they are all inherited from the implementation in AbstractSession.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (OAK-218) Session methods rely on accessibility of root node

Posted by "Michael Dürig (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/OAK-218?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13435242#comment-13435242 ] 

Michael Dürig commented on OAK-218:
-----------------------------------

I created OAK-247 for this. 
                
> Session methods rely on accessibility of root node
> --------------------------------------------------
>
>                 Key: OAK-218
>                 URL: https://issues.apache.org/jira/browse/OAK-218
>             Project: Jackrabbit Oak
>          Issue Type: Bug
>          Components: jcr
>            Reporter: angela
>
> the current implementation of Session methods access items rely on the
> accessibility of the root which isn't something we can rely on.
> the affected methods are
> - Session#itemExists
> - Session#propertyExists
> - Session#nodeExists
> - Session#getItem
> - Session#getProperty
> - Session#getNode
> right now they are all inherited from the implementation in AbstractSession.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira