| Summary: | [html][hover] HTML relative path hovers are not working with encoded URLs | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [ECD] Orion | Reporter: | Michael Rennie <Michael_Rennie> | ||||
| Component: | JS Tools | Assignee: | Curtis Windatt <curtis.windatt.public> | ||||
| Status: | RESOLVED FIXED | QA Contact: | |||||
| Severity: | major | ||||||
| Priority: | P3 | CC: | curtis.windatt.public, steve_northover | ||||
| Version: | unspecified | ||||||
| Target Milestone: | 12.0 | ||||||
| Hardware: | All | ||||||
| OS: | All | ||||||
| See Also: | https://bugs.eclipse.org/bugs/show_bug.cgi?id=486516 | ||||||
| Whiteboard: | |||||||
| Attachments: |
|
||||||
|
Description
Michael Rennie
Can't determine what regressed this. The code that appears to be causing the issue has been there for over half a year. That being said this is only broken when all three of the following are true, so perhaps no one ever had this kind of setup: 1) You are in an HTML file 2) You are hovering over a non-HTML file (JS) 3) Both files must be in a project with encoded characters (space and bar) When we fall into scriptResolver._samePaths() to compare the file path to the set of returned files from scriptResolver, there is a check to see if the content types match. However, each potential match is compared against the editor's content type, not the type we are looking for. If there are no encoded characters, this check is never reached because the file paths will match exactly. Created attachment 259892 [details]
Fix
I've attached a potential fix. Removes the check in _samePaths. scriptResolver:216. All JS and WebTools tests pass. Mike, please review. Looks like there is something else going on here in the WebIDE. My fix is sufficient to get everything working in Orion, but on WebIDE i see 500 server errors still. http://git.eclipse.org/c/orion/org.eclipse.orion.client.git/commit/?id=d7eeb99d22c5ad1da12575b8e6fa17e01130a14f This fixes the issue I outlined, but on webIDE I see a 500 server error for the XHR search request. http://git.eclipse.org/c/orion/org.eclipse.orion.client.git/commit/?id=7ae335888fb254b02449b86484087ba8dac94f47 This works around the issue seen in WebIDE. The server side bug is Bug 486516 for this issue. |