[ 
https://issues.apache.org/jira/browse/SLING-8755?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Carsten Ziegeler resolved SLING-8755.
-------------------------------------
    Resolution: Fixed

Fixed the issue by checking the type again . And if it is not String or 
undefined the old behaviour (removal) is used
I'Ve added two tests which verify that an empty string is set and that the 
property is removed for other types

> Exception when empty value with a type hint other than string is posted
> -----------------------------------------------------------------------
>
>                 Key: SLING-8755
>                 URL: https://issues.apache.org/jira/browse/SLING-8755
>             Project: Sling
>          Issue Type: Bug
>          Components: Servlets
>    Affects Versions: Servlets Post 2.3.32
>            Reporter: Carsten Ziegeler
>            Assignee: Carsten Ziegeler
>            Priority: Major
>             Fix For: Servlets Post 2.3.34
>
>
> With the changes in SLING-2534, posting an empty value with a type hint other 
> than string (for example Long) results in an exception thrown as the empty 
> value is tried to be coerced into that type.
> We should probably restore the behaviour for all types other than string as 
> of before SLING-2534



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to