Bug 800570 - upon logging in to the GUI, Firefox JavaScript Error Console contains errors saying it failed to parse the response body returned by /sessionAccess (portal-war's SessionAccessServlet)
Summary: upon logging in to the GUI, Firefox JavaScript Error Console contains errors ...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: RHQ Project
Classification: Other
Component: Core UI
Version: 4.3
Hardware: Unspecified
OS: Unspecified
medium
low
Target Milestone: ---
: ---
Assignee: Charles Crouch
QA Contact: Mike Foley
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-03-06 18:18 UTC by Ian Springer
Modified: 2015-02-01 23:27 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-09-04 07:48:44 UTC
Embargoed:


Attachments (Terms of Use)

Description Ian Springer 2012-03-06 18:18:28 UTC
The problem is that the SessionAccessServlet is returning a response body that looks something like:

1:-123456789:987654321

but is not setting the Content-Type header on the response.

The browser then assumes the default content type, which is text/html, and tries to parse the response as HTML. This fails because the body is not HTML. This is not causing any functional issues, but it is an easy fix and will get rid of the cryptic errors in the error console. To fix, we just need to set the Content-Type header to text/plain, which is the correct mime type for the content.

Comment 1 Ian Springer 2012-03-06 21:25:18 UTC
Fixed in master:

http://git.fedorahosted.org/git/?p=rhq/rhq.git;a=commitdiff;h=3d66148

Comment 2 Mike Foley 2012-03-12 15:42:37 UTC
per BZ traige (crouch, foley, loleary), medium priority, not targetted for JON 3.1

Comment 5 Heiko W. Rupp 2013-09-04 07:48:44 UTC
Bulk closing of some old issues


Note You need to log in before you can comment on or make changes to this bug.