jackrabbit-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Stephan Huttenhuis (JIRA)" <j...@apache.org>
Subject [jira] Commented: (JCR-2591) Prevent single-valued property with no value after RTE
Date Mon, 19 Apr 2010 12:54:50 GMT

    [ https://issues.apache.org/jira/browse/JCR-2591?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12858479#action_12858479

Stephan Huttenhuis commented on JCR-2591:

We had some problems with null single-value properties, which are not allowed according to

No RuntimeExceptions should be thrown, but theoretically NullPointerExceptions can be thrown
which may cause a null single-value property. Unfortunately I have no concrete case.

> Prevent single-valued property with no value after RTE
> ------------------------------------------------------
>                 Key: JCR-2591
>                 URL: https://issues.apache.org/jira/browse/JCR-2591
>             Project: Jackrabbit Content Repository
>          Issue Type: Improvement
>          Components: jackrabbit-core
>    Affects Versions: 1.6.1
>            Reporter: Stephan Huttenhuis
>         Attachments: JCR-2591.patch
> In NodeImpl a newly created property is removed when a checked RepositoryException occurs
when setting the value. But if a RuntimeException occurs it is not removed again. It is better
to remove it always if settings the value was unsuccessful.

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message