| Summary: | Passing in a search term that is unknown to the server causes it to default to a file search | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [ECD] Orion | Reporter: | Michael Rennie <Michael_Rennie> | ||||
| Component: | Server | Assignee: | Michael Rennie <Michael_Rennie> | ||||
| Status: | RESOLVED FIXED | QA Contact: | |||||
| Severity: | normal | ||||||
| Priority: | P3 | CC: | Silenio_Quarti, steve_northover | ||||
| Version: | 13.0 | ||||||
| Target Milestone: | 13.0 | ||||||
| Hardware: | PC | ||||||
| OS: | Windows 7 | ||||||
| See Also: |
https://git.eclipse.org/r/83888 https://git.eclipse.org/c/orion/org.eclipse.orion.server.git/commit/?id=38555af80db22a36a4bfcde3e5e8cbbf12fdf171 https://git.eclipse.org/r/84602 https://git.eclipse.org/c/orion/org.eclipse.orion.server.git/commit/?id=18c198c163b0c777cfea6c36a8fdd326d88331bc |
||||||
| Whiteboard: | |||||||
| Attachments: |
|
||||||
|
Description
Michael Rennie
Is this fixed or did we just temporarily disable the optimization? Michael, is this fixed? This is not fixed. While I found it working on bug 505411, it was not the cause, as any unknown search term sent to the server causes this behavior. Node server fix: http://git.eclipse.org/c/orion/org.eclipse.orion.client.git/commit/?id=514a9a34bc5b3cf192b4c0efc45456e94d6ec24d Java Server fix: http://git.eclipse.org/c/orion/org.eclipse.orion.server.git/commit/?id=4a05d6b97f8d13f2f03bae4c0b1ce6c0fa56afa1 New Gerrit change created: https://git.eclipse.org/r/83888 Reopening. The fix causes an NPE failure in the Java server tests that test an injection attack. The fix for this bug causes the server to ignore the injected HTML (good) but causes side effects when the search would normally try a file file search (what we tried to prevent). Silenio, what are your thoughts here? Should we ignore the search terms again and update the search code to check for null search terms and no-op? Gerrit change https://git.eclipse.org/r/83888 was merged to [master]. Commit: http://git.eclipse.org/c/orion/org.eclipse.orion.server.git/commit/?id=38555af80db22a36a4bfcde3e5e8cbbf12fdf171 Created attachment 265180 [details]
Updated Java server fix (with tests)
Silenio, can you sanity-check this patch for me?
New Gerrit change created: https://git.eclipse.org/r/84602 Gerrit change https://git.eclipse.org/r/84602 was merged to [master]. Commit: http://git.eclipse.org/c/orion/org.eclipse.orion.server.git/commit/?id=18c198c163b0c777cfea6c36a8fdd326d88331bc The new Java server fix has been applied. I'll push an updated JavaScript server fix to gerrit Node server re-fixed in: http://git.eclipse.org/c/orion/org.eclipse.orion.client.git/commit/?id=8c58044077e210c4824f3fe82ebba1fbeb141744 The original change was sufficient to handle the injection case as well. |