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

Bug 522158

Summary: Creating and deleting workspaces is returning the wrong status codes
Product: [ECD] Orion Reporter: Michael Rennie <Michael_Rennie>
Component: NodeAssignee: Michael Rennie <Michael_Rennie>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: 15.0   
Target Milestone: 16.0   
Hardware: PC   
OS: Mac OS X   
Whiteboard:

Description Michael Rennie CLA 2017-09-11 13:08:49 EDT
https://wiki.eclipse.org/Orion/Server_API/Workspace_API#Creating_a_workspace
https://wiki.eclipse.org/Orion/Server_API/Workspace_API#Deleting_a_workspace

Currently in the node server the above operations both return '200', but they should be returning 201 and 204 respectively.
Comment 1 Michael Rennie CLA 2017-09-11 13:33:35 EDT
Fixed in:

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

I also updated

1. a function that concatenated paths without checking them for existence (caused path to throw exceptions)
2. asking for a workspace that does not exist - return a 404 rather than a 400 or 500