Download
Getting Started
Members
Projects
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
More
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
Toggle navigation
Bugzilla – Attachment 233559 Details for
Bug 411616
Application crash with very long messages
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read
this important communication.
[patch]
Quick fix
read-client-message.patch (text/plain), 1.67 KB, created by
Ivan Furnadjiev
on 2013-07-17 11:16:07 EDT
(
hide
)
Description:
Quick fix
Filename:
MIME Type:
Creator:
Ivan Furnadjiev
Created:
2013-07-17 11:16:07 EDT
Size:
1.67 KB
patch
obsolete
>diff --git a/bundles/org.eclipse.rap.rwt/src/org/eclipse/rap/rwt/internal/protocol/ProtocolUtil.java b/bundles/org.eclipse.rap.rwt/src/org/eclipse/rap/rwt/internal/protocol/ProtocolUtil.java >index e130b7e..cf0c5d8 100644 >--- a/bundles/org.eclipse.rap.rwt/src/org/eclipse/rap/rwt/internal/protocol/ProtocolUtil.java >+++ b/bundles/org.eclipse.rap.rwt/src/org/eclipse/rap/rwt/internal/protocol/ProtocolUtil.java >@@ -12,7 +12,9 @@ > > import static org.eclipse.rap.rwt.internal.protocol.JsonUtil.jsonToJava; > >+import java.io.BufferedReader; > import java.io.IOException; >+import java.io.InputStreamReader; > import java.util.List; > import java.util.regex.Matcher; > import java.util.regex.Pattern; >@@ -27,6 +29,7 @@ > import org.eclipse.rap.rwt.internal.protocol.ClientMessage.SetOperation; > import org.eclipse.rap.rwt.internal.service.ContextProvider; > import org.eclipse.rap.rwt.internal.service.ServiceStore; >+import org.eclipse.rap.rwt.internal.util.HTTP; > import org.eclipse.rap.rwt.internal.util.SharedInstanceBuffer; > import org.eclipse.rap.rwt.internal.util.SharedInstanceBuffer.IInstanceCreator; > import org.eclipse.swt.SWT; >@@ -63,7 +66,9 @@ > if( clientMessage == null ) { > HttpServletRequest request = ContextProvider.getRequest(); > try { >- JsonObject json = JsonObject.readFrom( request.getReader() ); >+ InputStreamReader inputStreamReader >+ = new InputStreamReader( request.getInputStream(), HTTP.CHARSET_UTF_8 ); >+ JsonObject json = JsonObject.readFrom( new BufferedReader( inputStreamReader ) ); > clientMessage = new ClientMessage( json ); > } catch( IOException e ) { > throw new IllegalStateException( "Unable to read the json message" );
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 411616
: 233559