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

Bug 424791

Summary: Do not encode slashes in BrowserNavigation state
Product: [RT] RAP Reporter: Ralf Sternberg <rsternberg>
Component: RWTAssignee: Project Inbox <rap-inbox>
Status: RESOLVED FIXED QA Contact:
Severity: enhancement    
Priority: P3    
Version: 2.3   
Target Milestone: 2.3 M1   
Hardware: PC   
OS: Linux   
Whiteboard:

Description Ralf Sternberg CLA 2014-01-01 09:41:58 EST
Slashes are commonly used in URL fragments used for browser navigation, e.g. example.org/articles/#foo/bar. According to RFC 3986 [1], slashes are permitted in an URL fragment. However, in the Webclient they are escaped by encodeURLComponent(). I suggest that we add an exception for slashes, e.g. encodeURLComponent( state ).replace( /%2F/g, "/" );

[1] http://tools.ietf.org/html/rfc3986#section-3.5
Comment 1 Ivan Furnadjiev CLA 2014-01-09 08:10:38 EST
Fixed with change set https://git.eclipse.org/r/#/c/20296/