Rod Simpson created USERGRID-21:
-----------------------------------

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


"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.1.5#6160)

Reply via email to