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:33:02 UTC
[jira] [Commented] (OAK-219) SessionDelegate#getRoot throws
IllegalStateException if the root node is not accessible
[ https://issues.apache.org/jira/browse/OAK-219?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13427199#comment-13427199 ]
angela commented on OAK-219:
----------------------------
alternatively we may want to change the annotation and allow the method to return 'null' in this case.
> SessionDelegate#getRoot throws IllegalStateException if the root node is not accessible
> ---------------------------------------------------------------------------------------
>
> Key: OAK-219
> URL: https://issues.apache.org/jira/browse/OAK-219
> Project: Jackrabbit Oak
> Issue Type: Bug
> Components: jcr
> Reporter: angela
>
> if the tree representing the root node does not exist or is not accessible
> the current implementation of SessionDelegate#getRoot throws IllegalStateException.
> IMO AccessDeniedException was more appropriate in this case.
--
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