Closed blurrcat closed 9 years ago
Under new management!
We are going to be re-writing a significant portion of the extension. Closing issue. When the new version is released and you feel this issue still has not been resolved, please feel free to open the issue.
The etag returned by POST is inserted before the a document is saved into DB. So this etag is calculated without the
_id
field: https://github.com/nicolaiarocci/eve/blob/master/eve/methods/post.py#L225 Though later there's point the document does have_id
, the etag is not updated since there's already one. https://github.com/nicolaiarocci/eve/blob/master/eve/methods/common.py#L384If you use the returned etag here to do another request, a DELETE for example, the etag comparison is bound to fail because the server-side etag is now calculated with
_id
: https://github.com/nicolaiarocci/eve/blob/master/eve/methods/common.py#L64Example:
Response:
With the above etag:
Now we get a 412.