Community
Participate
Working Groups
Tried master and orion.eclipse.org. Using Chrome 30. i) Creating files 1. From the sidebar navigator, try to create a file named "Copy of 你好.js" 2. "An unknown error occurred" ii) Renaming files 1. Try to rename an existing file to "Copy of 你好.js" 2. "An unknown error occurred" iii) Opening an existing file 1. I have an existing file named "Copy of 你好.js" 2. From the sidebar nav, click the file. 3. "File not found: /file/mamacdon/project/Copy%20of%20你好.js" For (i) and (ii), the internal error being thrown is from xhr: > SyntaxError: Failed to execute 'setRequestHeader' on 'XMLHttpRequest': 'Copy of 你好.js' is not a valid HTTP header field value. > (anonymous function) (xhr.js:162) > _xhr (xhr.js:161) For (iii) the link href appears to be wrong (or maybe it is right, and the inputManager is wrong. I can't tell anymore). > The URL is /file/mamacdon/myProject/Copy%2520of%2520%E4%BD%A0%E5%A5%BD.js
OK, ignore (iii) -- that was due to me not clearing my cache. However (i) and (ii) are legit problems.
Client changes: http://git.eclipse.org/c/orion/org.eclipse.orion.client.git/commit/?id=6181a54 (Encodes the Slug header to prevent browser exceptions) Server changes: http://git.eclipse.org/c/orion/org.eclipse.orion.server.git/commit/?id=02e8b63 (Decodes the Slug header, removes the hack from bug 376671 that made Name field override Slug) The Node server works with non-ASCII characters, but fails in many other cases. I opened bug 419774 for that, as the problem is pervasive and does not look safe to fix right now.
What about "+" ? URLDecoder will decode "+" to " ". It would be good to have a testcase here. That ensured that a filename that included all of the ascii characters worked.
(In reply to Mark Macdonald from comment #1) > OK, ignore (iii) -- that was due to me not clearing my cache. However (i) > and (ii) are legit problems. This shouldn't be ignored. I have a test case to reproduce. See bug 419873.
http://git.eclipse.org/c/orion/org.eclipse.orion.server.git/commit/?h=xhr&id=ceb343e04d84fb151532c0390eec81a2f469cdc5
Previous patch was missing some test changes. Here is the correct one. http://git.eclipse.org/c/orion/org.eclipse.orion.server.git/commit/?id=6826f69
Pushed http://git.eclipse.org/c/orion/org.eclipse.orion.client.git/commit/?id=8726128 http://git.eclipse.org/c/orion/org.eclipse.orion.server.git/commit/?id=524c4a2 However the server side is not bulletproof in its treatment of the Slug header, see bug 419876