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

Bug 325726

Summary: [sfs] REST URL not encoded when adding a link that points to SFS resource
Product: [Eclipse Project] e4 Reporter: Eduard Bartsch <eduard.bartsch>
Component: ResourcesAssignee: Eduard Bartsch <eduard.bartsch>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: Szymon.Brandys
Version: 1.0   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:

Description Eduard Bartsch CLA 2010-09-20 06:00:44 EDT
Currently, a REST URL (that is pointing to a remote REST resource) is put into the query part of the linked resource URL without any encoding/decoding. It is added as value of the url parameter (i.e. "&url=<nested REST URL>"). When the REST URL contains one or more '&' character that is not allowed with the URL query part value, the value is cut off at the first accurance of the '&' character. The REST URL may also contain other characters that are not allowed as part of URL query string.

The solution is to encode/decode the REST URL using JDK's URLEncode/URLDecode classes.
Comment 1 Eduard Bartsch CLA 2010-10-28 04:09:14 EDT
Released with v20101012-1103