Closed Bug 454993 Opened 16 years ago Closed 16 years ago

saved passwords lost/gone on migration/update from 3.0.1 to 3.0.2

Categories

(Firefox :: Security, defect)

3.0 Branch
defect
Not set
major

Tracking

()

VERIFIED DUPLICATE of bug 454708

People

(Reporter: andibn63, Unassigned)

References

Details

(Keywords: dataloss, regression)

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.9.0.2) Gecko/2008090514 Firefox/3.0.2
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.9.0.2) Gecko/2008090514 Firefox/3.0.2

After Update from Mozilla 3.0.1 to 3.0.2 all Safed Passwords are lost. 

Reproducible: Didn't try

Steps to Reproduce:
1.
2.
3.
Please visit http://support.mozilla.org for technical support. This is not a support center, but a technical bug reporting database for the developers.
same here, old "signons3.txt" is still there but no more used. Also the saved password list stays empty when passwords (like for this account, luckily i could remember) are typed in again. This seems to be remarkable bug. I use the firefox from ubuntu intrepid (3.0.2).
additional information from javascript console:

Fehler: uncaught exception: [Exception... "'[JavaScript Error: "this._storage is null" {file: "file:///usr/lib/xulrunner-1.9.0.2/components/nsLoginManager.js" line: 425}]' when calling method: [nsILoginManager::getAllLogins]"  nsresult: "0x80570021 (NS_ERROR_XPC_JAVASCRIPT_ERROR_WITH_DETAILS)"  location: "JS frame :: chrome://passwordmgr/content/passwordManager.js :: LoadSignons :: line 59"  data: yes]
i tried to repro this and could only confirm this issue with my working profile, but not in a clean profile.
what i did:
1. create a new profile using 3.0.1
2. save a password for google.com
3. run 3.0.2 (build5) on the same profile
-> password was still available

so i tought it may be caused by an extension, but as an further test i repeated above steps with installing those extension one-by-one to 3.0.1 prior to testing the profile with 3.0.2
Keywords: dataloss, qawanted
OS: Windows XP → All
Summary: saved passwords lost → saved passwords lost/gone on migration/update from 3.0.1 to 3.0.2
Version: unspecified → 3.0 Branch
arrg, as addition to comment 4:
even after getting my test profile to my "working" profile concerning the base of installed extensions i still failed to repro :-/
It seems like an extension has modified something in your working profile. You can try in safe Mode, then if it does not occur then (with new passwords in the working profile) then it is 99% certain it is an extension. Disable them one by one, then if you find the one that causes it, contact the developer of the extension. i am closing as INVALID for now, since it does not seem to be a bug in Firefox, but you can reopen if you fail to find the issue. Also, you can post the name of the extension while leaving as INVALID.
Status: UNCONFIRMED → RESOLVED
Closed: 16 years ago
Resolution: --- → INVALID
(In reply to comment #4)
> so i tought it may be caused by an extension, but as an further test i repeated
> above steps with installing those extension one-by-one to 3.0.1 prior to
> testing the profile with 3.0.2
It was seemingly a freak thing that happened, with a messup modification.
@Tyler: please do *not* invalidate bugreports based on feedback by just one commenter (here: me), with other commenters not having a chance to contribute (a lot of ppl do not seach for INVALID marked bugs). e.g. maybe my testing hasn't been appropriate.
thank you.
Status: RESOLVED → UNCONFIRMED
Resolution: INVALID → ---
If this is an issue with an extension (as it certainly seems) there is no need to wait for INVALID. It is not a problem with Firefox. The reported has been given opportunity to confirm. If you can find the issue with Firefox, feel free to reopen.
Status: UNCONFIRMED → RESOLVED
Closed: 16 years ago16 years ago
Resolution: --- → INVALID
it happened with existings accounts on ubuntu on different boxes (i386, amd64) even in -safe-mode. With a clean profile passwords are saved.

Now i don't have time to investigate further but i have read going back to 3.0.1 helped another user. Maybe it is an ubuntu thing as there were 3.0.1 language extensions active in the updated 3.0.2 firefox.

Maybe this is an ubuntu bug.
What OS are you guys that have experienced this issue using. fritz said ubuntu, reporter was on XP, what about the rest?
When i delete "signons3.txt" in the profile directory the password database and an new useable "signons3.txt" is built up successive again when logging in my websites.

It seems to me that data records are separated by "---". I don't want to post this database files :-) btw.

The first record in the old database makes no sense to me but until now i found no way to repair the old database by deleting or changing lines. 

Maybe encryption has changed?
i klicked at firefox upgrade button under windows and now had the same effect (lost passwords, but i saved everything before ;-) ) also under windows XP.
reopening since after the 3.0.2 rel there are now some more reports of lost passwords after migration. moreover the error console output of comment 3 does not point to extension relevance.
Status: RESOLVED → UNCONFIRMED
Resolution: INVALID → ---
I have the same problem on mac osx 10.5.5.

after upgrading from 3.0.1 to 3.0.2 no passwords are filled anymore. in the prefs the list of stored passwords is empty. although the 'remember passwords' option is set, firefox does not show the black pw-store-bar after loggin in somewhere. unsetting and resetting the options does not show any effect.

reverting back to 3.0.1 "solves" the issue.
confirming based on the number of dupes and reports 

For anyone with this problem:

If you can still reproduce this, please enable debugging per
https://wiki.mozilla.org/Firefox:Password_Manager_Debugging and attach here.

Also it would be very interesting what extensions do you have installed?  Do you see this Problem also in Firefox Safe Mode ?
Status: UNCONFIRMED → NEW
Component: General → Security
Ever confirmed: true
QA Contact: general → firefox
Reproducable in safe mode, with all extensions disabled; Not reproducable when using a new profile.

See my comment in the dupe https://bugzilla.mozilla.org/show_bug.cgi?id=456182#c8 for the complete debugging output.
As I showed in my bugreport: https://bugzilla.mozilla.org/show_bug.cgi?id=456704

this happens when a line from signons3.txt is read and if this line contains a character with a diacritic, like: é or ü

I added a debug line before line 853 in file:///C:/Program%20Files/Mozilla%20Firefox/components/storage-Legacy.js to log the line that was read, and it crashed on the following line:

http://members.lycos.nl (Log in om de Privé directory binnen te gaan:)


This line of code fails to read that line:

            line.value = this._utfConverter.ConvertToUnicode(line.value);
Current profile : issue reproduced

Safe mode : issue reproduced

New profile : issue not reproduced.

The error log is : 
Pwmgr Prompter: ===== initialized =====
Pwmgr Prompter: ===== promptAuth called =====
Pwmgr Prompter: getAuthTarget is for proxy auth
Login Manager: Searching for logins matching host: moz-proxy://xx.xx.xx.xx:3128, formSubmitURL: null, httpRealm: moz-proxy://xx.xx.xx.xx:3128
Login Manager: No alternate nsILoginManagerStorage registered
PwMgr Storage: Checking file signons3.txt (SignonFileName3)
PwMgr Storage: Reading passwords from /Users/skuld/Library/Application Support/Firefox/Profiles/9oxsd0e0.default/signons3.txt
Login Manager: Initialization of storage component failed: [Exception... "Component returned failure code: 0x8000ffff (NS_ERROR_UNEXPECTED) [nsIScriptableUnicodeConverter.ConvertToUnicode]"  nsresult: "0x8000ffff (NS_ERROR_UNEXPECTED)"  location: "JS frame :: file:///Users/skuld/Desktop/Firefox.app/Contents/MacOS/components/storage-Legacy.js :: anonymous :: line 853"  data: no]
Erreur : this._storage is null
Fichier Source : file:///Users/skuld/Desktop/Firefox.app/Contents/MacOS/components/nsLoginManager.js
Ligne : 464
Erreur : LoginManagerPrompter: Epic fail in promptAuth: [Exception... "'[JavaScript Error: "this._storage is null" {file: "file:///Users/skuld/Desktop/Firefox.app/Contents/MacOS/components/nsLoginManager.js" line: 464}]' when calling method: [nsILoginManager::findLogins]"  nsresult: "0x80570021 (NS_ERROR_XPC_JAVASCRIPT_ERROR_WITH_DETAILS)"  location: "JS frame :: file:///Users/skuld/Desktop/Firefox.app/Contents/MacOS/components/nsLoginManagerPrompter.js :: anonymous :: line 434"  data: yes]

Fichier Source : file:///Users/skuld/Desktop/Firefox.app/Contents/MacOS/components/nsLoginManagerPrompter.js
Ligne : 454
(In reply to comment #23)
> This line of code fails to read that line:
> 
>             line.value = this._utfConverter.ConvertToUnicode(line.value);

It's dupe of Bug 454708.
Well this dupe leads to circular reference:

This Bug 454993 -> Bug 454708 -> Bug 456661 -> Bug 454993
regression of Bug 451155
Blocks: 451155
Keywords: regression
Whiteboard: This Bug will be fixed by the Patch in Bug 454708
Flags: blocking1.9.0.3?
This Bug will be fixed by the Patch in Bug 454708
Depends on: 454708
Flags: blocking1.9.0.4? → blocking1.9.0.3+
If fixed by Bug 454708, should we mark a dupe or resolve as fixed than?
Status: NEW → RESOLVED
Closed: 16 years ago16 years ago
No longer depends on: 454708
Keywords: qawanted
Hardware: PC → All
Resolution: --- → DUPLICATE
Whiteboard: This Bug will be fixed by the Patch in Bug 454708
No longer blocks: 451155
I fixed this problem in my profil by explicit saving signons3.txt in UTF-8 Format.
(In reply to comment #37)
> I fixed this problem in my profil by explicit saving signons3.txt in UTF-8
> Format.

excellent idea! works for me, too. (mac osx 10.5.5) thanks!
(In reply to comment #37)
> I fixed this problem in my profil by explicit saving signons3.txt in UTF-8
> Format.

This sounds like a workaround we should add to the KB article http://support.mozilla.com/kb/Cannot+use+or+save+passwords+after+upgrading+Firefox, unless there are risks associated with doing this.
(In reply to comment #39)
> (In reply to comment #37)
> > I fixed this problem in my profil by explicit saving signons3.txt in UTF-8
> > Format.
> 
> This sounds like a workaround we should add to the KB article
> http://support.mozilla.com/kb/Cannot+use+or+save+passwords+after+upgrading+Firefox,
> unless there are risks associated with doing this.

Of course anybody should make a backup of his profile before doing this ;)
(In reply to comment #40)
> (In reply to comment #39)
> > (In reply to comment #37)
> > > I fixed this problem in my profil by explicit saving signons3.txt in UTF-8
> > > Format.
> > 
> > This sounds like a workaround we should add to the KB article
> > http://support.mozilla.com/kb/Cannot+use+or+save+passwords+after+upgrading+Firefox,
> > unless there are risks associated with doing this.
> 
> Of course anybody should make a backup of his profile before doing this ;)

I'd like to get one more confirmation of this fix before adding it to the support article.
Blocks: 451155
Depends on: 454708
Hardware: All → PC
Resolution: DUPLICATE → FIXED
I can confirm, that the workaround with saving the signons3.txt in UTF-8
format does work. Of course, this could not be the final solution.
Um, sorry, I didn't mean to change any of the stuff in the bug... I only added a comment and added myself to the CC list.  I don't have a clue why it marked it fixed, changed the blocks and dependency.
Reverting changed states.
No longer blocks: 451155
No longer depends on: 454708
Hardware: PC → All
Resolution: FIXED → DUPLICATE
v.
Status: RESOLVED → VERIFIED
Flags: blocking1.9.0.3+
You need to log in before you can comment on or make changes to this bug.