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

Bug 520784

Summary: Bad response from non-archive file import
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   
See Also: https://github.com/eclipse/orion.client/pull/139
Whiteboard:

Description Michael Rennie CLA 2017-08-09 14:54:10 EDT
https://wiki.eclipse.org/Orion/Server_API/Transfer_API#Import_a_file_from_a_remote_URL

If you request an import without specifying 'raw' for a file that is not an archive (.zip, etc), the server will respond with a '200' status code. It should be a 400 (which is what the Java server responds with).
Comment 1 Eclipse Genie CLA 2017-08-09 15:11:25 EDT
GitHub Pull Request 139 created by [mrennie]
https://github.com/eclipse/orion.client/pull/139
Comment 2 Michael Rennie CLA 2017-08-09 15:12:01 EDT
merged