[
https://issues.apache.org/jira/browse/SLING-355?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12585479#action_12585479
]
Bertrand Delacretaz commented on SLING-355:
-------------------------------------------
I assume by "empty value" you mean a parameter that is present but has no value.
If a request does not contain a foo parameter and the node being modified has a
foo property, I think the existing property should be left untouched.
OTOH if the request contains a foo parameter, but with no value, the property
would be removed.
> Empty Request Parameters should be handled as not present
> ---------------------------------------------------------
>
> Key: SLING-355
> URL: https://issues.apache.org/jira/browse/SLING-355
> Project: Sling
> Issue Type: Bug
> Components: ujax
> Reporter: Carsten Ziegeler
> Original Estimate: 0h
> Remaining Estimate: 0h
>
> When the sling post servlet tries to set a property which value is empty, it
> fails to set the property value if the proper type is not a string as it for
> example tries to convert the empty string into a long - which fails.
> Therefore the servlet should treat empty values as not existing ones and
> rather remove the property.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.