Closed Bug 379997 Opened 18 years ago Closed 18 years ago

Logins should not be deleted if authentication fails

Categories

(Core :: Networking, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla1.9alpha5

People

(Reporter: Dolske, Assigned: Dolske)

References

Details

(Keywords: dataloss)

Attachments

(1 file, 1 obsolete file)

The code in question in calling pwmgr's RemoveUser in two places, when an authentication attempt fails... ClearPasswordManagerEntry() around http://mxr.mozilla.org/seamonkey/source/netwerk/protocol/http/src/nsHttpChannel.cpp#4637 and nsFtpState::R_pass() around http://mxr.mozilla.org/seamonkey/source/netwerk/protocol/ftp/src/nsFtpConnectionThread.cpp#817 This might seem to make sense at first glance (why store a password we know doesn't work), but it's wrong. It's not uncommon for servers to have glitches that cause valid logins to fail. For example, a front-end server being unable to contact some back-end authentication server.
for reference, the http version was added in bug 91968
Attached patch DO NOT WANT (obsolete) — Splinter Review
Removes the code in question.
Attachment #264640 - Flags: review?(gavin.sharp)
Attached patch DO NOT WANTSplinter Review
Oops, forgot to edit one line.
Attachment #264640 - Attachment is obsolete: true
Attachment #264641 - Flags: review?(gavin.sharp)
Attachment #264640 - Flags: review?(gavin.sharp)
You should request review from a netwerk peer, like biesi.
Component: Password Manager → Networking
Product: Firefox → Core
QA Contact: password.manager → networking
Target Milestone: Firefox 3 alpha5 → ---
Target Milestone: --- → mozilla1.9alpha5
Attachment #264641 - Flags: review?(gavin.sharp) → review?(cbiesinger)
Attachment #264641 - Flags: review?(cbiesinger) → review+
mozilla/netwerk/protocol/ftp/src/nsFtpConnectionThread.cpp 1.311 mozilla/netwerk/protocol/http/src/nsHttpChannel.cpp 1.309 mozilla/netwerk/protocol/http/src/nsHttpChannel.h 1.90
Status: NEW → RESOLVED
Closed: 18 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: