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 "Jukka Zitting (JIRA)" <ji...@apache.org> on 2012/07/12 22:35:34 UTC

[jira] [Created] (OAK-185) Trying to remove a missing property throws PathNotFoundException

Jukka Zitting created OAK-185:
---------------------------------

             Summary: Trying to remove a missing property throws PathNotFoundException
                 Key: OAK-185
                 URL: https://issues.apache.org/jira/browse/OAK-185
             Project: Jackrabbit Oak
          Issue Type: Bug
          Components: jcr
    Affects Versions: 0.3
            Reporter: Jukka Zitting
            Assignee: Jukka Zitting
            Priority: Minor


The following code snippet throws a {{PathNotFoundException}} if the "missing" property is not present.

{code:java}
node.setProperty("missing", (String) null);
{code}

A better way to handle such a case would be for the above statement to simply do nothing.

--
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-185) Trying to remove a missing property throws PathNotFoundException

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

Jukka Zitting resolved OAK-185.
-------------------------------

       Resolution: Fixed
    Fix Version/s: 0.4

Fixed in revision 1360923.
                
> Trying to remove a missing property throws PathNotFoundException
> ----------------------------------------------------------------
>
>                 Key: OAK-185
>                 URL: https://issues.apache.org/jira/browse/OAK-185
>             Project: Jackrabbit Oak
>          Issue Type: Bug
>          Components: jcr
>    Affects Versions: 0.3
>            Reporter: Jukka Zitting
>            Assignee: Jukka Zitting
>            Priority: Minor
>             Fix For: 0.4
>
>
> The following code snippet throws a {{PathNotFoundException}} if the "missing" property is not present.
> {code:java}
> node.setProperty("missing", (String) null);
> {code}
> A better way to handle such a case would be for the above statement to simply do nothing.

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