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

Bug 454150

Summary: Invalid Location header after creating file with DBCS characters in name
Product: [ECD] Orion Reporter: Mark Macdonald <mamacdon>
Component: ServerAssignee: Mark Macdonald <mamacdon>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: pwebster
Version: 7.0   
Target Milestone: 8.0   
Hardware: PC   
OS: Windows 7   
Whiteboard:

Description Mark Macdonald CLA 2014-12-04 11:22:27 EST
1. Go to a folder
2. Create a file named "Çàâ鯵表噂ソ十豹竹敷兎椄屜į丯愛金啊㐁ᠠﭖꀀༀ䨭抎駡U郂أبجДфэMülleriİıIGĞgğSŞsş.jsflow"
3. The response headers sent by the server look like this:

> < HTTP/1.1 201 Created
> < Cache-Control: no-store
> < Content-Type: application/json; charset=UTF-8
> < Location: /file/mamacdon-OrionContent/BasicProj/Çàâ????????????????????????U???????Mülleri??I
G?g?S?s?.jsflow
> < Content-Length: 942
> < Server: Jetty(8.1.15.v20140411)
> <

The Location header is apparently corrupt (note the ?'s). We found a case where, when running Orion behind an nginx reverse proxy, the proxy chokes on the invalid header.
Comment 1 Mark Macdonald CLA 2014-12-04 13:54:22 EST
Apparently this bug has been around since day one.. simple fix though.

http://git.eclipse.org/c/orion/org.eclipse.orion.server.git/commit/?id=e54a8fd