Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 325726 - [sfs] REST URL not encoded when adding a link that points to SFS resource
Summary: [sfs] REST URL not encoded when adding a link that points to SFS resource
Status: RESOLVED FIXED
Alias: None
Product: e4
Classification: Eclipse Project
Component: Resources (show other bugs)
Version: 1.0   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Eduard Bartsch CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-09-20 06:00 EDT by Eduard Bartsch CLA
Modified: 2010-10-28 04:09 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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