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 2012/08/13 09:55:38 UTC

[jira] [Commented] (SLING-2534) Strings of zero length on update in post servlet delete the property

    [ https://issues.apache.org/jira/browse/SLING-2534?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13432982#comment-13432982 ] 

Carsten Ziegeler commented on SLING-2534:
-----------------------------------------

Actually, it seems this is a bug in the Sling POST servlet, according to

http://sling.apache.org/site/manipulating-content-the-slingpostservlet-servletspost.html

an empty value should be set, unless @IgnoreBlanks is specified.
                
> Strings of zero length on update in post servlet delete the property
> --------------------------------------------------------------------
>
>                 Key: SLING-2534
>                 URL: https://issues.apache.org/jira/browse/SLING-2534
>             Project: Sling
>          Issue Type: Bug
>          Components: Servlets
>    Affects Versions: Servlets Post 2.1.2
>            Reporter: Endolf
>             Fix For: Servlets Post 2.1.4
>
>         Attachments: blankstrings.patch
>
>
> According to JCR specs, for string type properties, a blank string should be a valid value. Currently the post servlet delets any property where 1 or less values are specifed and the 1 value has a 0 length. I think string properties with a zero length should be blanked instead of deleted.

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