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

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

Reverted the change with 003f01c
(Also adjusted the tests)

I've also updated the documentation at
https://sling.apache.org/documentation/bundles/manipulating-content-the-slingpostservlet-servlets-post.html

> Revert SLING-2534 and let empty values remove the property
> ----------------------------------------------------------
>
>                 Key: SLING-8768
>                 URL: https://issues.apache.org/jira/browse/SLING-8768
>             Project: Sling
>          Issue Type: Improvement
>          Components: Servlets
>    Affects Versions: Servlets Post 2.3.28, Servlets Post 2.3.30, Servlets 
> Post 2.3.32, Servlets Post 2.3.34
>            Reporter: Carsten Ziegeler
>            Assignee: Carsten Ziegeler
>            Priority: Major
>             Fix For: Servlets Post 2.3.36
>
>
> In SLING-2534 we changed the post implementation to treat a posted empty 
> value as an empty value. Before, empty values caused the property to be 
> removed.
> While the change seemed to be the logical step (we have @IgnoreBlanks and the 
> documentation explains it in this way as well), it turns out that a lot of 
> existing code expects the (wrong) behaviour that a property is removed if an 
> empty value is submitted.
> This makes it an incompatible change breaking existing customers.
> Therefore, we should revert SLING-2534 and update the documentation.



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

Reply via email to