Red Hat Bugzilla – Bug 1266539
OData DELETE nonexisting row - wrong response code
Last modified: 2016-08-24 07:46:09 EDT
Steven Hawkins <email@example.com> updated the status of jira TEIID-3686 to Closed
Setting this to ASSIGNED.
- OData V2 still returns 200 (OK) for first and second delete call.
- OData v4 returns 204 (No Content) for first call and 304 (Not Modified) for second call.
-- The question is, whether this is good or not. Requirements from the description says, that response should be 404 . It may seem that 304 is right, but user specifies URL of the resource which does not exist, and therefore OData service should return 404 (Not found) .
- BZ is not fixed in OData V2 at all.
- BZ is fixed in OData V4 only partially.
 However, reporter did not provide any relevant document/specification which supports this assumption.
 This is relevant to any HTTP method, not only GET. http://docs.oasis-open.org/odata/odata/v4.0/errata02/os/complete/part1-protocol/odata-v4.0-errata02-os-part1-protocol-complete.html#_Toc406398258
Van Halbert <firstname.lastname@example.org> updated the status of jira TEIID-3686 to Reopened
Ramesh Reddy <email@example.com> updated the status of jira TEIID-3686 to Resolved
Setting blocker flag to ?. We should include fix for OData V4 service prior to official support of that API. The fix includes change in the API (returned HTTP status code).
ODataV2 service returns 404 on second DELETE request.
ODataV4 service returns 204 on second DELETE request.