Closed Bug 584618 Opened 16 years ago Closed 3 years ago

password not kept : storage not working with blank/empty password

Categories

(Thunderbird :: Security, defect)

x86
All
defect

Tracking

(Not tracked)

RESOLVED WONTFIX

People

(Reporter: nls.pct, Unassigned)

References

(Blocks 1 open bug)

Details

User-Agent: Mozilla/5.0 (X11; U; Linux i686; fr; rv:1.9.2.8) Gecko/20100722 Firefox/3.6.8 Build Identifier: Mozilla/5.0 (X11; U; Linux i686; fr; rv:1.9.2.7) Gecko/20100713 Lightning/1.0b2 Thunderbird/3.1.1 Thunderbird keeps asking for password even if you click "remember password" if you leave password blank. Reproducible: Always Steps to Reproduce: 1. Start thunderbird 2. Account will ask you username / password ; Put username, leave password blank 3. Check "remember password" checkbox 4. Close thunderburd 5. Restart thunderbird Actual Results: Thunderbird asks for password. Expected Results: Thunderbird shouldn't ask for password. Same problem announced here : http://forums-test.mozillazine.org/viewtopic.php?f=39&t=543095 and here ... http://forums.mozillazine.org/viewtopic.php?f=31&t=51181 Here is what contains signons.txt file about this account : trac.xxxxxxxxxxxxxxx.com:80 (Trac authentication) \=username=\ ~bcljd2xhcw== *\=password=\ ~ .
Hum does launching Tb in safemode helps ? (http://support.mozillamessaging.com/en-US/kb/Safe+Mode) Anything in Tools -> Error console when this happens ?
Component: General → Security
QA Contact: general → thunderbird
Safe mode does not help. Error console is empty.
do you have a signons.sqlite file next to signons.txt ?
No, I don't. Here are the files present in the directory : abook.mab extensions.ini mailViews.dat urlclassifier2.sqlite blocklist.xml extensions.rdf mimeTypes.rdf us cert8.db GoogleContacts panacea.dat US compatibility.ini history.mab prefs.js virtualFolders.dat compreg.dat ImapMail secmod.db XPC.mfasl cookies.txt install.log signons.txt xpti.dat downloads.rdf key3.db SpamAssassin.sfd XUL.mfasl extensions localstore.rdf storage.sdb extensions.cache Mail training.dat
Is this a regression from Thunderbird 2? I believe that we generally assume that an empty password is the same as not being supplied a password, and therefore we need to prompt for one. I'm not sure we'd easily be able to fix this. The work around would be to make your local server require a password...
(In reply to comment #5) > I believe that we generally assume that an empty password is the same as not > being supplied a password, and therefore we need to prompt for one. This is true for POP (Empty password == "Cancel"), not sure about IMAP.
Summary: password not kept : storage not working with empty password → password not kept : storage not working with blank/empty password

Thoughts on where to take this?

Flags: needinfo?(kaie)
OS: Linux → All

Not sure I understand.

Is this about email accounts which are configured with an "empty password" on the server?
Are you saying:

  • an empty password is exactly what the server expects
  • thunderbird doesn't expect that a password might be emtpy, and concludes "password not yet entered/set"
    ?
Flags: needinfo?(kaie)
Blocks: 604997
See Also: → 578001
Severity: normal → S3

(In reply to Mark Banner (:standard8) from comment #5)

...
I'm not sure we'd easily be able to fix this. The work around would be to
make your local server require a password...

(In reply to Kai Engert (:KaiE:) from comment #9)

Not sure I understand.

Is this about email accounts which are configured with an "empty password" on the server?

yes

Then I'd like to ask for advice from Alessandro how we should handle this on the UI side.

This is about email accounts that are configured with an empty password.
Apparently Thunderbird code assumes this will never happen, and forces the user to enter a non-empty password, which means the user cannot connect to the account.

I see two possible ways here:
(1) remove the existing checks. Silently allow empty passwords.
(2) add a checkbox next to the password field saying something like "no password required / empty password"

What should we do?

Flags: needinfo?(alessandro)

I would be more inclined to just straight WONTFIX this now that I know it exists than actually expend even 5 minutes on a fix.

Flags: needinfo?(alessandro)

(In reply to Andrei Hajdukewycz [:sancus] from comment #12)

I would be more inclined to just straight WONTFIX this now that I know it exists than actually expend even 5 minutes on a fix.

Andrei, please confirm:
You are suggesting that Thunderbird should continue to not support email accounts with empty passwords?

Flags: needinfo?(sancus)

I agree.
This looks like a pretty silly edge case. More burden for us to support something borderline useless than for the user setting their own local server to set a 1 character password.

Status: UNCONFIRMED → RESOLVED
Closed: 3 years ago
Resolution: --- → WONTFIX

(In reply to Kai Engert (:KaiE:) from comment #13)

(In reply to Andrei Hajdukewycz [:sancus] from comment #12)

I would be more inclined to just straight WONTFIX this now that I know it exists than actually expend even 5 minutes on a fix.

Andrei, please confirm:
You are suggesting that Thunderbird should continue to not support email accounts with empty passwords?

Yes, I agree with Alessandro. The reason is pretty simple: "fixing" this would involve complicating Thunderbird in some way to recognize a difference between intentionally empty and accidentally empty passwords. But this distinction is irrelevant for nearly all accounts, and the fix on the user's side is trivial - put a password on it.

We should not add unnecessary complication to save a negligible number of users from doing something trivial.

Flags: needinfo?(sancus)

Just as a final thought, it sounds like Thunderbird already supports storing an empty password for the account configuration?

If that's true, then potentially it could be a backend code change to try connecting with an empty password, prior to prompting the user to enter a password.

I don't think that's a high priority, but if anyone would contribute a patch for that, together with a test account that we could easily use to test it, then potentially we could consider to take the patch.

You need to log in before you can comment on or make changes to this bug.