Rupert Westenthaler created STANBOL-1432:
--------------------------------------------
Summary: ManagedSite returns 404 status on DELETE requests
Key: STANBOL-1432
URL: https://issues.apache.org/jira/browse/STANBOL-1432
Project: Stanbol
Issue Type: Bug
Components: Entityhub
Affects Versions: 0.12.0
Reporter: Rupert Westenthaler
Assignee: Rupert Westenthaler
Fix For: 1.0.0, 0.12.1
As reported by Adrian Dinu in [1] the ManagedSite returns 404 on a DELETE
request for an existing Entity.
A first investigation showed that the Entity is in fact deleted, but a 404
status is returned anyway.
As a workaround users can check for a 404 response the content of the response.
* If the content is empty the entity was deleted
* If the content contains a message starting with {{No Entity with the parsed
Id}} no entity with the requests ID was found.
The fix will ensure that successful delete requests will return a 200 response
code. In addition in case a single entity is deleted the response will return
the data of the deleted entity.
[1] http://markmail.org/message/f6vgxx44iukngizk
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)