You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Carsten Ziegeler (JIRA)" <ji...@apache.org> on 2014/03/10 17:38:44 UTC
[jira] [Resolved] (SLING-3445) Removing multi value property fails
[ https://issues.apache.org/jira/browse/SLING-3445?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Carsten Ziegeler resolved SLING-3445.
-------------------------------------
Resolution: Fixed
Fixed by using getProperty(name).remove instead (with an additional sanity check if the property exists)
The JcrModifiablePropertyMap was also affected by this problem. Fixed as well
> Removing multi value property fails
> -----------------------------------
>
> Key: SLING-3445
> URL: https://issues.apache.org/jira/browse/SLING-3445
> Project: Sling
> Issue Type: Bug
> Components: JCR
> Affects Versions: JCR Resource 2.3.2
> Reporter: Carsten Ziegeler
> Assignee: Carsten Ziegeler
> Fix For: JCR Resource 2.3.4
>
>
> If a jcr resource is adapted to a ModifiableValueMap and remove(propName) is called on a multi value property, the removal fails as the setProperty(name, (String)null) is used - which is not a multi value property.
--
This message was sent by Atlassian JIRA
(v6.2#6252)