Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 521202

Summary: PUT request using "If-Match" for a deleted file returns wrong status code
Product: [ECD] Orion Reporter: Michael Rennie <Michael_Rennie>
Component: NodeAssignee: Michael Rennie <Michael_Rennie>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P2    
Version: 15.0   
Target Milestone: 16.0   
Hardware: PC   
OS: Mac OS X   
Whiteboard:

Description Michael Rennie CLA 2017-08-21 12:19:49 EDT
If you try to do a PUT with "If-Match": eTagOfDeletedFile, the node server gives back a 404, but the Java server gives back a 412.
Comment 1 Michael Rennie CLA 2017-08-21 13:29:14 EDT
Pushed fix to:

https://github.com/eclipse/orion.client/commit/a5f68cceefb384a66fe5ee5f342d17c3cd747304

The behaviour is now the same as the Java server - the etag equality is now checked first (even against one that does not exist) before any other existence checks.