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/07/19 11:57:33 UTC

[jira] [Created] (OAK-194) Define behavior of Tree#getProperty(String) in case of lack of access

angela created OAK-194:
--------------------------

             Summary: Define behavior of Tree#getProperty(String) in case of lack of access
                 Key: OAK-194
                 URL: https://issues.apache.org/jira/browse/OAK-194
             Project: Jackrabbit Oak
          Issue Type: Sub-task
          Components: core
            Reporter: angela


The javadoc for Tree#getProperty states:

"the property state with the given {@code name} or {@code null}
 if no such property state exists."

IMO the javadoc should also deal with the case that property with the
given name is not accessible.
was the return value 'null' again? or would the method throw an exception?

--
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] [Resolved] (OAK-194) Define behavior of Tree#getProperty(String) in case of lack of access

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

angela resolved OAK-194.
------------------------

       Resolution: Fixed
    Fix Version/s: 0.4

Revision: 1363323

                
> Define behavior of Tree#getProperty(String) in case of lack of access
> ---------------------------------------------------------------------
>
>                 Key: OAK-194
>                 URL: https://issues.apache.org/jira/browse/OAK-194
>             Project: Jackrabbit Oak
>          Issue Type: Sub-task
>          Components: core
>            Reporter: angela
>             Fix For: 0.4
>
>
> The javadoc for Tree#getProperty states:
> "the property state with the given {@code name} or {@code null}
>  if no such property state exists."
> IMO the javadoc should also deal with the case that property with the
> given name is not accessible.
> was the return value 'null' again? or would the method throw an exception?

--
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-194) Define behavior of Tree#getProperty(String) in case of lack of access

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

Jukka Zitting commented on OAK-194:
-----------------------------------

I think in that case the method should return {{null}}, as otherwise we give out information about the presence of that property.
                
> Define behavior of Tree#getProperty(String) in case of lack of access
> ---------------------------------------------------------------------
>
>                 Key: OAK-194
>                 URL: https://issues.apache.org/jira/browse/OAK-194
>             Project: Jackrabbit Oak
>          Issue Type: Sub-task
>          Components: core
>            Reporter: angela
>
> The javadoc for Tree#getProperty states:
> "the property state with the given {@code name} or {@code null}
>  if no such property state exists."
> IMO the javadoc should also deal with the case that property with the
> given name is not accessible.
> was the return value 'null' again? or would the method throw an exception?

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