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

Bug 403856

Summary: PageUtil.js "resource" should be URI encoded
Product: [ECD] Orion Reporter: Simon Kaegi <simon_kaegi>
Component: ClientAssignee: Simon Kaegi <simon_kaegi>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: 2.0   
Target Milestone: 3.0 M1   
Hardware: PC   
OS: Windows 7   
Whiteboard:

Description Simon Kaegi CLA 2013-03-19 23:39:56 EDT
matchResourceParameters parses the hash of a URL to find the "resource" and additional "page parameters". Both "resource" and page parameters are decoded using decodeURIComponent however "resource" is then treated as a valid URI so we MUST ensure that illegal characters are encoded.

For example: if you navigate into a folder containing URI illegal characters like "a|b" you need to be careful to encode the "|" as "%7C" when creating a URL to use  in an XHR to ensure consistent handling server-side and avoid URI parse problems.
Comment 1 Simon Kaegi CLA 2013-03-20 00:03:25 EDT
Fixed in Master.
I suspect this may have fixed other encoding related bugs when using Firefox and Safari. From what I saw our server-side was not able to correctly "decorate" resources for request URLs containing illegal URI characters.