getResponseHeader returns undefined for a "header" whose value is a blank string

RESOLVED INCOMPLETE

Status

()

RESOLVED INCOMPLETE
10 years ago
8 years ago

People

(Reporter: hranavat, Unassigned)

Tracking

2.0 Branch
x86
Windows XP
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

(Whiteboard: [CLOSEME 2010-10-01])

(Reporter)

Description

10 years ago
User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.14) Gecko/20080404 Firefox/2.0.0.14
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.14) Gecko/20080404 Firefox/2.0.0.14

Steps to repro:

1. From the server side send a header in the response containing a blank value. the back end I use is Java 5 based, JSP, Struts 2.0 and Tomcat 6.0. I am also using Ajax via Yahoo user Interface.

2. try to execute JS method getResponseHeader("aboveheadername") on xmlhttprequest obj and check out the value in console (firebug) or an alert stmt. it appears as undefined. the header exists and its actual value i.e is a blank should be shown.

Reproducible: Always

Steps to Reproduce:
1.see details
2.
3.
Actual Results:  
getResponseHeader returns undefined

Expected Results:  
a blank string
(Reporter)

Comment 2

10 years ago
In fact as the above link suggests, getRespHeader must return null for the value of a header that does not exist, instead it seems to be returning undefined. this method is wrongly implemented
Reporter, are you still seeing this issue with Firefox 3.6.9 or later in safe mode? If not, please close. These links can help you in your testing.
http://support.mozilla.com/kb/Safe+Mode
http://support.mozilla.com/kb/Managing+profiles
Whiteboard: [CLOSEME 2010-10-01]
Version: unspecified → 2.0 Branch
No reply, INCOMPLETE. Please retest with Firefox 3.6.10 or later and a new profile (http://support.mozilla.com/kb/Managing+profiles). If you continue to see this issue with the newest firefox and a new profile, then please comment on this bug.
Status: UNCONFIRMED → RESOLVED
Last Resolved: 8 years ago
Resolution: --- → INCOMPLETE
You need to log in before you can comment on or make changes to this bug.