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

Bug 355500

Summary: RAP application with "standard" client-library variant does not work after 1.5 M1
Product: [RT] RAP Reporter: Holger Staudacher <holger.staudacher>
Component: RWTAssignee: Project Inbox <rap-inbox>
Status: RESOLVED FIXED QA Contact:
Severity: major    
Priority: P1 CC: austin.riddle, fr.appel, tbuschto
Version: 1.5   
Target Milestone: 1.5 M2   
Hardware: All   
OS: All   
Whiteboard:
Attachments:
Description Flags
Error screenshot none

Description Holger Staudacher CLA 2011-08-23 09:38:37 EDT
We use the nightly RAP repository to build our nightly build. After deploying the Application to a Tomcat 6 or 7 the application is not accessible via Chrome and Firefox (it works with IE). The error was added in the last days after 1.5 M1 because with the M1 build this does not happen. I will attach a screenshot that displays the error.

* Tested with Windows7,OS X Lion on Tomcat 6 and 7.
Comment 1 Holger Staudacher CLA 2011-08-23 09:39:10 EDT
Created attachment 201994 [details]
Error screenshot
Comment 2 Ivan Furnadjiev CLA 2011-08-23 10:11:25 EDT
I can reproduce it with deployed Controls Demo in Tomcat. The error is in the new javascript file EncodingUtil.js. Continue with the investigation.
Comment 3 Ivan Furnadjiev CLA 2011-08-23 10:35:30 EDT
Reproducible without deployment with Client-Side Library Variant set to "Standard".
Comment 4 Ivan Furnadjiev CLA 2011-08-23 11:19:21 EDT
The problem is in the special characters \u2028 and \u2029 defined as a keys in the _escapeMap. I think that they should be escaped on the server not on the client, because they lead to an error in the JSON protocol message too. Probably truncateAtZero should be done on the server as well.
Comment 5 Tim Buschtoens CLA 2011-08-24 09:36:55 EDT
Fixed in CVS HEAD by creating the string with the problematic characters on runtime using String.fromCharCode. For the issue of the the characters breaking the json-message we will open a new bug.