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

Raido Kuli updated WOOKIE-123:
------------------------------

    Component/s: Server

>  DELETE {wookie}/properties creates property with NULL value
> ------------------------------------------------------------
>
>                 Key: WOOKIE-123
>                 URL: https://issues.apache.org/jira/browse/WOOKIE-123
>             Project: Wookie
>          Issue Type: Bug
>          Components: Server
>            Reporter: Raido Kuli
>
> Hi.
> I've got deleting participants/properties working. I had some errors
> with my request.
> Now I am curious why does propeties request ->
> DELETE {wookie}/properties {params: instance_params, propertyname}
> <- create new property in database, if it doesn't exist.
> So -> i create request like (from the php framework i am working on):
> $request = '?api_key='.$this->getConnection()->getApiKey();
> $request .= '&shareddatakey='.$this->getConnection()->getSharedDataKey();
> $request .= '&userid='.$this->getUser()->getLoginName();
> $request .= '&widgetid='.$widgetInstance->getIdentifier();
> $request .= '&propertyname='.$propertyInstance->getName();
> So if, in the first request propertyname doesn't exist, Wookie returns
> '404 not found' BUT creates property, with value 'NULL'. On second
> request the same property is correctly deleted.
> Obviously it should not do that, just return 404.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to