Bug Tracker

Ticket #2865 (closed bug: fixed)

Opened 1 year ago

Last modified 9 months ago

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@… Assigned to: anonymous
Type: bug Priority: major
Milestone: 1.2.4 Component: ajax
Version: 1.2.3 Keywords: opera xml.open xmlhttprequest
Cc: icaaaq@gmail.com Needs: Test Case

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

Change History

Changed 1 year ago by flesler

  • status changed from new to closed
  • resolution set to fixed

Fixed at [5604].

Changed 1 year ago by kai@…

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 9 months ago by greylurk

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.

Note: See TracTickets for help on using tickets.