Skip to main content

Bug Tracker

Side navigation

#2865 closed bug (fixed)

Opened May 14, 2008 03:03PM UTC

Closed May 15, 2008 01:45PM UTC

Last modified October 18, 2008 12:15AM UTC

Opera 9.5 (at least this version) doesn't like null username being sent into XMLHttpRequest, this creates a login prompt in Opera, so jQuery should circumvent this

Reported by: kai@creuna.se Owned by:
Priority: major Milestone: 1.2.4
Component: ajax Version: 1.2.3
Keywords: opera xml.open xmlhttprequest Cc: icaaaq@gmail.com
Blocked by: Blocking:
Description

By doing like this

if(s.username == null) {

xml.open(s.type,s.url,s.async/*,s.username,s.password*/);

} else {

xml.open(s.type,s.url,s.async,s.username,s.password);

}

The bug happens when you run getJSON or getScript with Opera 9.5, on a non password protected machine. In the IIS log I see the username "undefined" appear.

Attachments (0)
Change History (3)

Changed May 15, 2008 01:45PM UTC by flesler comment:1

resolution: → fixed
status: newclosed

Fixed at [5604].

Changed May 20, 2008 09:22PM UTC by kai@creuna.s comment:2

actually this seems fixed in 1.2.4 according to the release notes, but I checked, and this fix is NOT included in 1.2.4.

Changed October 18, 2008 12:15AM UTC by greylurk comment:3

Just as a note, this bug also affects Firefox 1.0 (Gecko 20041107) but since it's been fixed in 1.2.6, it doesn't really matter.

According to the FireFox documentation the default username and password are blank strings, not null. A better long term fix may be to set the default username and password to "" instead of null, rather than using an if to determine whether the username is present.