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

Bug 417471

Summary: A folder is created while client requests to create a file
Product: [ECD] Orion Reporter: qing-hao liang <liang.hawking>
Component: NodeAssignee: Mark Macdonald <mamacdon>
Status: RESOLVED FIXED QA Contact:
Severity: blocker    
Priority: P3 CC: liang.hawking, mamacdon
Version: 4.0   
Target Milestone: 4.0 M2   
Hardware: PC   
OS: Windows 7   
Whiteboard:

Description qing-hao liang CLA 2013-09-18 01:39:11 EDT
When I want to create a file under a folder, the Node server create a folder instead. I can verify that the request sent from the browser is correct. The response to browser however is wrong, with "Directory" set to "true".
Comment 1 Mark Macdonald CLA 2013-09-18 14:57:04 EDT
Thanks for the bug.

For compatibility with the Orion Java server, the Node server needs to understand both "false" (the string) and false (the boolean) as possible values of the request's "Directory" field.

While implementing Bug 402786 I broke the handling of strings -- and unfortunately the client always sends strings (which is weird, opened bug 417528).

The fix + test is in master:
http://git.eclipse.org/c/orion/org.eclipse.orion.client.git/commit/?id=8d2319b

The npm builds of Orion do not contain this bug.