Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » ServerPushSession and XML parsing error in Firefox(Response Content-Type of ServerPushSession GET request is not set, defaults to XML in Firefox.)
ServerPushSession and XML parsing error in Firefox [message #1753154] Thu, 02 February 2017 09:37 Go to next message
Gunnar Adams is currently offline Gunnar AdamsFriend
Messages: 23
Registered: May 2016
Junior Member
Hi,
in Firefox (51.0.1) we see log messages and an increasing error count which seems to be caused by the ServerPushSession GET requests. Those requests do not seem to return any content (responses are 0 bytes or 1 bytes), but Firefox attempts to parse the result as XML. As indicated in the following discussion
https://github.com/rapid7/le_js/issues/24
this seems to be due to a bug in Firefox, where responses with no Content-Type header are handled as "xml" instead of "octet-stream".

Wouldn't it be possible to set the response Content-Type in the
org.eclipse.rap.rwt.internal.servpush.ServerPushServiceHandler to a value which makes Firefox behave correctly (e.g. application/octet-stream)?

Kind regards,
Gunnar Adams

Re: ServerPushSession and XML parsing error in Firefox [message #1753243 is a reply to message #1753154] Thu, 02 February 2017 21:24 Go to previous messageGo to next message
Chris Fairhall is currently offline Chris FairhallFriend
Messages: 205
Registered: February 2011
Senior Member
It would. RAP already sets cache control headers in there to fix IE bugs.
It should also be possible to create a servlet filter to add them as well, which means you could fix it immediately without patching and rebuilding RAP.
Re: ServerPushSession and XML parsing error in Firefox [message #1753452 is a reply to message #1753243] Mon, 06 February 2017 16:11 Go to previous message
Ivan Furnadjiev is currently offline Ivan FurnadjievFriend
Messages: 2285
Registered: July 2009
Location: Sofia, Bulgaria
Senior Member
Hi,
could you please open a bugzilla about this issue.We set several response headers in ServerPushServiceHandler. To speed up the fix you can contribute your proposal through Gerrit [1].

[1] https://wiki.eclipse.org/RAP/Git

Regards,
Ivan
Previous Topic:Eclipse RAP - UI-Session vs Http-Session
Next Topic:Prevent selection change in Table on Alt+ARROW_UP & Alt+ARROW_DOWN
Goto Forum:
  


Current Time: Sun Aug 19 01:59:53 GMT 2018

Powered by FUDForum. Page generated in 0.02004 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top