| Summary: | Incorrect encoding/decoding of file names | ||
|---|---|---|---|
| Product: | [ECD] Orion | Reporter: | Mark Macdonald <mamacdon> |
| Component: | Node | Assignee: | Silenio Quarti <Silenio_Quarti> |
| Status: | RESOLVED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | CC: | Michael_Rennie, remy.suen, Silenio_Quarti, snorthov |
| Version: | 3.0 | Keywords: | triaged |
| Target Milestone: | 18.0 | ||
| Hardware: | PC | ||
| OS: | Windows 7 | ||
| Whiteboard: | |||
| Bug Depends on: | |||
| Bug Blocks: | 514343 | ||
|
Description
Mark Macdonald
This open bug report had a target milestone in the past. The target milestone has been removed. Please target for a date in the future or leave the target blank if it is not known. Released changes to fix this problem. Everything seems to work when running a local server, but file names with ? and # still fail behind the orion.eclipse.org proxy. 1. Create a folder a%b/. 2. Create the file tmp.txt inside the a%b/ folder. 3. Rename the file to tmp2.txt. 4. The rename will fail with an error. File not found:/file/a%25b/tmp.txt orion.eclipse.org Works fine on OrionHub. 1. Create an untracked file named 'a%b.txt' in a folder that's under Git version control. 2. Open the 'Git' page. 3. Try to expand the untracked file's node to look at its diff. You will stay in the 'fetching...' state forever. There's a 404 in the console presumably because the % was not URL encoded...? Failed to load resource: the server responded with a status of 404 (Not Found) https://orion.eclipse.org/gitapi/diff/Default/file/org.eclipse.orion.client/a%b.txt?parts=diff&ignoreWS=false (In reply to Remy Suen from comment #4) > orion.eclipse.org > > Works fine on OrionHub. > > 1. Create an untracked file named 'a%b.txt' in a folder that's under Git > version control. > 2. Open the 'Git' page. > 3. Try to expand the untracked file's node to look at its diff. You will > stay in the 'fetching...' state forever. > > There's a 404 in the console presumably because the % was not URL encoded...? > > Failed to load resource: the server responded with a status of 404 (Not > Found) > https://orion.eclipse.org/gitapi/diff/Default/file/org.eclipse.orion.client/ > a%b.txt?parts=diff&ignoreWS=false I have identified the cause for this scenario and have opened bug 512061 for this problem. I can confirm that Remy's case in comment 3 still happens. (In reply to Steve Northover from comment #6) > I can confirm that Remy's case in comment 3 still happens. Confirmed this still happens in Orion 15.0 Fixed Remy's case with: https://github.com/eclipse/orion.client/commit/9d166938bc1cf5a5b9c837dad493a7725130cb74 |