You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@usergrid.apache.org by "Pahan Madushanka Perera (JIRA)" <ji...@apache.org> on 2014/04/19 18:25:16 UTC

[jira] [Comment Edited] (USERGRID-21) Empty string doesn't remove an entity property (null doesn't work either)

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

Pahan Madushanka Perera edited comment on USERGRID-21 at 4/19/14 4:25 PM:
--------------------------------------------------------------------------

Removing the dynamic property when the corresponding value is empty. 
Pull Request : https://github.com/usergrid/usergrid/pull/119

Please give me a feedback, Thank you


was (Author: pahan):
Removing the dynamic property when the corresponding value is empty. 
Pull Request : https://github.com/usergrid/usergrid/pull/119

> Empty string doesn't remove an entity property (null doesn't work either)
> -------------------------------------------------------------------------
>
>                 Key: USERGRID-21
>                 URL: https://issues.apache.org/jira/browse/USERGRID-21
>             Project: Usergrid
>          Issue Type: Bug
>          Components: Stack
>            Reporter: Rod Simpson
>            Assignee: Pahan Madushanka Perera
>             Fix For: 1.1
>
>
> "Users should be able to remove entity properties using either empty string or null 
> 1. Test to see if either works 
> 2. if empty string does not work, then setting empty string should keep the property but set it to an empty string 
> 3. null should always remove the key 
> curl -X POST -i -H ""Authorization: Bearer YWMt4i6fzEJREeOh0FGOwhrLOAAAAUIzm9d9wtwQTdewhc1I1Kg8d8yyMOVVQv0"" ""htts://api.usergrid.com/1hotrod/fdfdsafd/books/8dd42b7a-4325-11e3-a8a9-2be66bc83082?ql="" -d '{""fred"":""""}' 
> or 
> curl -X POST -i -H ""Authorization: Bearer YWMt4i6fzEJREeOh0FGOwhrLOAAAAUIzm9d9wtwQTdewhc1I1Kg8d8yyMOVVQv0"" ""htts://api.usergrid.com/1hotrod/fdfdsafd/books/8dd42b7a-4325-11e3-a8a9-2be66bc83082?ql="" -d '{""fred"":null}'"



--
This message was sent by Atlassian JIRA
(v6.2#6252)