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

Bug 511513

Summary: Export non-existing folder leaks server path
Product: [ECD] Orion Reporter: Martin Wang <jiahaow>
Component: NodeAssignee: Remy Suen <remy.suen>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: remy.suen
Version: 13.0   
Target Milestone: 14.0   
Hardware: All   
OS: All   
Whiteboard:
Attachments:
Description Flags
Screenshot none

Description Martin Wang CLA 2017-02-01 16:38:36 EST
Created attachment 266577 [details]
Screenshot

Access this URL:
http://your_orion_host/xfer/export/donotexist.zip

The server will throw an 500 error with full server paths, like this:
{
    "Severity": "Error",
    "Message": "ENOENT: no such file or directory, stat '/Users/ibm/dev/orion.collab/modules/orionode/.workspace/Ma/Martin2/OrionContent/donotexist'"
}
Comment 1 Remy Suen CLA 2017-02-11 06:59:55 EST
Thanks for the report, Martin!

Fix pushed to master.

https://git.eclipse.org/c/orion/org.eclipse.orion.client.git/commit/?id=28cdff63b77b95b3f68abc3868d931d0eef50fc2