Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 343179 - Import and export server paths must be distinguished
Summary: Import and export server paths must be distinguished
Status: RESOLVED FIXED
Alias: None
Product: Orion
Classification: ECD
Component: Client (show other bugs)
Version: 0.2   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: 0.2   Edit
Assignee: John Arthorne CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-04-18 13:11 EDT by John Arthorne CLA
Modified: 2011-09-01 11:41 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description John Arthorne CLA 2011-04-18 13:11:06 EDT

    
Comment 1 John Arthorne CLA 2011-04-18 13:13:28 EDT
Currently the transfer server API looks like:

Import: /file/<path>
Export: /file/export/<path>

We distinguish import from export by the fact that export is a GET and import is a POST or PUT.

However for server<->server import/export the export is not a GET, so there is ambiguity in the second segment. /file/export/foo could mean export with path="foo" or import with path="/export/foo". It should change to:

Import: /file/import/<path>
Export: /file/export/<path>