Closed
Bug 61171
Opened 24 years ago
Closed 23 years ago
Get Message rings twice, if password is wrong in POP.
Categories
(MailNews Core :: Networking: POP, defect, P3)
Tracking
(Not tracked)
VERIFIED
FIXED
mozilla0.9.2
People
(Reporter: tarahim, Assigned: naving)
References
Details
(Whiteboard: [nsbeta1+][PDT+]Have fix)
Attachments
(3 files)
(deleted),
patch
|
Details | Diff | Splinter Review | |
(deleted),
patch
|
Details | Diff | Splinter Review | |
(deleted),
patch
|
Details | Diff | Splinter Review |
2000112420MTrunk.
In POP account, Get message and type a wrong password.
The wrong password alert comes up and you OK.
Password dialog again, and you enter a wrong password again and OK.
Result: Nothing happens. From what I see in the status bar, no network activity
takes place after the second password dialog.
Expected result: Mozilla should send request to the server and another round of
alert and password entry dialog should come up.
This is different from bug 59942.
Reporter | ||
Comment 2•24 years ago
|
||
In MTrunk 2000121208, the bug is gone. In three different POP accounts, typing
wrong password kept asking for a new one more than three times.
Changing to WFM.
Status: NEW → RESOLVED
Closed: 24 years ago
Hardware: Other → Macintosh
Resolution: --- → WORKSFORME
Reporter | ||
Comment 4•24 years ago
|
||
It is back now in 2001020208MTrunk.
Mail tries to get message with a wrong password only twice.
Status: VERIFIED → REOPENED
Resolution: WORKSFORME → ---
Reporter | ||
Updated•24 years ago
|
Summary: Get message does nothing after second wrong password in POP. → Get message rings twice only if wrong password in POP.
Reporter | ||
Comment 5•24 years ago
|
||
The bug is gone again in 2001020908.
Resolving as such.
Status: REOPENED → RESOLVED
Closed: 24 years ago → 24 years ago
Resolution: --- → WORKSFORME
Summary: Get message rings twice only if wrong password in POP. → Get Message rings twice, if password is wrong in POP.
VERIFIED, per reporter's comments.
Status: RESOLVED → VERIFIED
Reporter | ||
Comment 7•24 years ago
|
||
It is back! 20010319110.
This happens in the default POP account only.
bug 71670 is now working better and Mozilla asks for correct password, but only
once. If get mail fails for the second time from wrong password, it finishes job
silently.
Status: VERIFIED → REOPENED
Resolution: WORKSFORME → ---
Reporter | ||
Comment 8•24 years ago
|
||
It does not ask for correct PW for default POP account, even after the first
attempt fails.
2001040608 Mac trunk.
Assignee | ||
Comment 9•24 years ago
|
||
Yes I have also seen this sometimes. nominating because it may force you
to shutdown and start again.
Keywords: nsbeta1
Assignee | ||
Comment 10•24 years ago
|
||
Assignee | ||
Comment 11•24 years ago
|
||
If the password fails, then let us start from the beginning because some servers
close the connection when we send the username again as shown in the patch.
When we send the username, we set the next state after response to send
password. If the server never comes back to us, we would never prompt the user
for password. So this becomes a deadlock.
4x code also starts from the beginning.
cc bienvenu for review.
Updated•24 years ago
|
Whiteboard: [nsbeta1+]
Target Milestone: --- → mozilla0.9
Comment 12•24 years ago
|
||
I just don't know about the pop code - your code seems reasonable - I don't know
why Jeff did it the way he did. As long as you've tested it, sr=bienvenu
Comment 13•24 years ago
|
||
it looks ok to me too...r=mscott
Assignee | ||
Comment 14•24 years ago
|
||
fix checked in
Status: REOPENED → RESOLVED
Closed: 24 years ago → 24 years ago
Resolution: --- → FIXED
Comment 15•24 years ago
|
||
buildid: 2001-04-19-06win98
Navin,
Default pop account with an existing or new profile I still see the following:
First time you log in with default accounts 'check mail at the start' brings the
password dialog for the first account automatically since it is turned on.
But now the first time you enter the wrong password there is no feed back in the
status bar as'contacting host, sending log information.. blah blah....When I see
the password dlg come up the status bar is reading 'Loading Document... and then
on giving password and clicking ok the dlg disappears and never comes back. On
an existing profile this is misleading because you already have the message
displayed in the thread pane that have been previously downloaded and it makes
you believe that now you are logged in successfully and every thing is fine.
On an new profile no mssgs are retrieved blank thread pane password dlg does not
come back untill you click on get message button again. Then we do the right
thing in the status bar 'contacting server, sending login info.... and bring
back the password dlg till the user provides the correct password
This fix will lead to many other pop bugs:( The first time you launch mail and
giving wrong password should come back with the password dlg again and again
till the user provides the right password. It is not very intuitive for the
user to know to click get mssg button to bring back the password dialog.
Reopening this bug after all the commentary;) Did not check on other platforms
thinking all of them would probably behave the same.
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Assignee | ||
Comment 16•24 years ago
|
||
The first time if you enter wrong password and you have no download_on_biff it
will fail silently because we do not want to bother the user again.
Only if the user wants to download messages again and hits "Get Msg" will the
password dialog come up. Now if he/she enters wrong password it should
come up again and again until the password entered is correct.
Please verify again based on the above comment
Comment 17•24 years ago
|
||
Moving to 0.9.1 until we can agree this is or isn't fixed (I don't want it to
block the 0.9 release).
Target Milestone: mozilla0.9 → mozilla0.9.1
Comment 18•24 years ago
|
||
Sheela wrote: 2001-04-21 14:25 Opened a new bug for this issue -see bug 77202
*****On an new profile no mssgs are retrieved blank thread pane password dlg
does not come back untill you click on get message button again. Then we do the
right thing in the status bar 'contacting server, sending login info.... and
bring back the password dlg till the user provides the correct password
This fix will lead to many other pop bugs:( The first time you launch mail and
giving wrong password should come back with the password dlg again and again
till the user provides the right password. It is not very intuitive for the
user to know to click get mssg button to bring back the password dialog.*****
Navin,
I disagree that failing silently is a very good thing to do. We should prompt
the user if he gave the right information or not. In 4.x we keep prompting the
user back with the password dlg untill the user provinded the correct
information. Atleast I tried it giving wrong password four times and got the
password dlg back. And also I don't mean that we should put this in an infinite
loop to keep prompting with the password dlg. Atleast give back the password
dlg for 3-4 attempts or some feed back with an alert dlg that his login failed.
But not a silent failure. I am not too sure if this bug should be considered as
fix at this point.
Assignee | ||
Comment 19•24 years ago
|
||
*** Bug 59945 has been marked as a duplicate of this bug. ***
Comment 20•24 years ago
|
||
It sounds like we're getting the password dialog on a biff on startup. In the
case where download headers isn't checked we fail silently and when it is
checked we keep asking for a password. jglick do you have any opinions on
failing silently on the biff password check? I guess ideally you would be told
that you typed in something wrong, but I don't think it's as big of a deal as if
this didn't happen with get messages.
Comment 22•24 years ago
|
||
If "Check for new mail at startup" is check, pw dialog opens on startup. If
wrong pw is provided, dialog should reopen and inform user that incorrect
password was supplied.
If "Check for new mail at startup" is not checked, no pw dialog opens on
startup. User must click "Get Msg" to check for new mail, at that time, pw
dialog would open. If wrong pw is provided, dialog should reopen and inform user
that incorrect password was supplied.
Assignee | ||
Comment 23•24 years ago
|
||
Based on jglick's comments this bug is fixed. marking fixed.
Status: REOPENED → RESOLVED
Closed: 24 years ago → 24 years ago
Resolution: --- → FIXED
Comment 24•24 years ago
|
||
cannot verify this bug because of some open issues. Need to discuss with
jglick.
Assignee | ||
Comment 25•23 years ago
|
||
Reopening this bug, because sheela and I disagree on the fix. I think myself,
sheelar and jglick would need to meet to figure out what is the right
fix.
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Assignee | ||
Comment 26•23 years ago
|
||
ok, I will make it as putterman says in the email
"We should probably make it so that it doesn't fail silently and that the user
has to press Cancel in order to make the dialog stop coming up. "
Assignee | ||
Comment 27•23 years ago
|
||
Assignee | ||
Comment 28•23 years ago
|
||
This fix will make it so that it keeps prompting the user for a new password
if the previous password entered is blank or incorrect, until the server
does not close the connection on mozilla. I need review, david.
Comment 29•23 years ago
|
||
r=bienvenu - can you get an sr from mscott, since he knows this code more than I
do (send him mail)
Comment 30•23 years ago
|
||
the fix looks good to me. naving, can you do me a favor and take out the following:
if (/* ||MSG_Biff_Master_NikiCallingGetNewMail() */
from the if clause you modified in this patch?
sr=mscott
Assignee | ||
Updated•23 years ago
|
Whiteboard: [nsbeta1+] → [nsbeta1+]Have fix
Comment 31•23 years ago
|
||
marking pdt+. Please check into the trunk as soon as possible.
Whiteboard: [nsbeta1+]Have fix → [nsbeta1+][PDT+]Have fix
Comment 32•23 years ago
|
||
@@ -1018,7 +1018,9 @@
}
else if (NS_FAILED(rv) || !password || !(* (const char *) password))
{
- return Error(POP3_PASSWORD_UNDEFINED);
+ if (!(* (const char *) password))
+ SetFlag(POP3_PASSWORD_FAILED);
+ return Error(POP3_PASSWORD_UNDEFINED);
}
nsCAutoString cmd;
This defeats the point of the null check for password. If it can never be null
here, they you shouldn't have the null check, but if it can be null, then this
will crash (right?).
And it looks much less scary to use .get() instead of an old-style cast to
|(const char *)| that to the quick reader could be a reinterpret-cast.
Assignee | ||
Comment 33•23 years ago
|
||
Assignee | ||
Comment 34•23 years ago
|
||
Nice catch, dbaron. I have removed those lines because they are not needed to
fix this bug. ( I was just trying to prompt the user on a blank password.)
Comment 35•23 years ago
|
||
a=dbaron for trunk checkin (on behalf of drivers)
Assignee | ||
Comment 36•23 years ago
|
||
fix checked in.
Status: REOPENED → RESOLVED
Closed: 24 years ago → 23 years ago
Resolution: --- → FIXED
Comment 37•23 years ago
|
||
Builds used in verifying above:
2001061807 win98,
2001061808 mac
2001061808 linux
Prompts user with the password dialog again when a wrong password is entered.
Password dialog does not appear when you click on cancel button.
With the blank password and click on ok button. Gives a dlg "Error getting
mail password and the password dialog goes away.
According to this bug entering the wrong password bring back the password dlg
untill user clicks on cancel dialog.
Status: RESOLVED → VERIFIED
Updated•20 years ago
|
Product: MailNews → Core
Updated•16 years ago
|
Product: Core → MailNews Core
You need to log in
before you can comment on or make changes to this bug.
Description
•