Closed Bug 132329 Opened 23 years ago Closed 23 years ago

HTTP auto goes into infinite loop

Categories

(Core :: Networking: HTTP, defect, P1)

x86
Windows 2000
defect

Tracking

()

VERIFIED FIXED
mozilla1.0

People

(Reporter: bugzilla, Assigned: darin.moz)

References

()

Details

(Keywords: regression, topembed+)

Attachments

(1 file)

If you enter the following link into Location: http://test:test@dev.gemal.dk/ and press enter you get the Enter username/password dialog. Dont enter anything just press Enter and. Now you get the username/password dialog again. Just press enter once more and Mozilla seems to go into a infinite loop seding requests to dev.gemal.dk v20020320
yikes!! this is a major regression -> 1.0
Severity: normal → critical
Priority: -- → P1
Target Milestone: --- → mozilla1.0
Status: NEW → ASSIGNED
Attached patch v1 patchSplinter Review
nsAString::IsEmpty() was being used to detect an unitialized mUser and mPass. when "unitialized" the code first looks for a user:pass in the URL. if present it uses that. in the case of this bug, it was repeatedly taking user:pass from the URL and then overwriting it with the ":" as stored in the auth cache. normally, the auth cache entry is cleared when mUser:mPass matches what is stored. but with mUser:mPass being reset to "test:test" (from the URL) on each failure, the auth entry was never being cleared. and that led to an infinite loop :( at any rate, the patch is trivial. we should check for NULL instead of IsEmpty to determine if we should be checking the URL for user:pass. the patch also adds some preventative logic to PromptForUserPass to ensure that user and pass are never null on success.
Keywords: patch
embed triage: topembed+.
Keywords: topembedtopembed+
Comment on attachment 76315 [details] [diff] [review] v1 patch r=gagan
Attachment #76315 - Flags: review+
Attachment #76315 - Flags: approval+
fixed-on-trunk
Status: ASSIGNED → RESOLVED
Closed: 23 years ago
Resolution: --- → FIXED
verified: 04/11/02 trunk builds, win, linux, mac
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: