Closed Bug 316995 Opened 19 years ago Closed 18 years ago

When migrating from Internet Explorer http auth passwords are not migrated

Categories

(Firefox :: Migration, enhancement, P3)

x86
Windows 2000
enhancement

Tracking

()

RESOLVED FIXED
Firefox 2 beta2

People

(Reporter: gf_bugz, Assigned: mwu)

Details

(Keywords: fixed1.8.1)

Attachments

(1 file)

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.8) Gecko/20051118 Firefox/1.5
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.8) Gecko/20051118 Firefox/1.5

When testing IE migration and starting with clean slate I noticed that not all passwords were migrated. I also checked the "saved passwords" dialog and it had no trace of some of the passwords. The passwords that were not migrated are HTTP protocols basic authentication based passwords that I have saved in IE.

Reproducible: Always

Steps to Reproduce:
1. Visit some HTTP protocol password protected site in Internet Explorer.
2. Save the password and then close and open it again to make sure it's saved.
3. Now do a clean install of Firefox 1.5rc3 and do migration from Internet Explorer.
4. Visit the same site with Firefox. It should have the password prefilled?

Actual Results:  
The password is not migrated and not filled in.

Expected Results:  
The password should show up just like it does in Internet Explorer
Status: UNCONFIRMED → NEW
Ever confirmed: true
Migration and import of passwords seems boken on Win 2k
Status: NEW → ASSIGNED
Could you try a build from before 2005-10-25? Bug 316634 is about proxy settings no longer being imported after that build, maybe it's related to this bug. Getting a regression range would be helpful :).
Possibly a regression from bug 313529.
Nominating for next release(es) since this might be a regression from mconner's
latest migration code changes. Assigning to him for more investigation.
Assignee: nobody → mconners
Status: ASSIGNED → NEW
Keywords: regression
Flags: blocking1.8.1?
Flags: blocking1.8.0.1?
Assignee: mconners → mconnor
Flags: blocking1.8.0.1? → blocking1.8.0.1-
Status: NEW → ASSIGNED
Flags: blocking-firefox2+
Target Milestone: --- → Firefox 2 beta1
Priority: -- → P3
Need some testing on this, I can't reproduce.
Keywords: qawanted
This WFM on Win 2K with Bon Echo nightly from 2006-06-06
Status: ASSIGNED → RESOLVED
Closed: 18 years ago
Resolution: --- → WORKSFORME
I am still getting problems. I just tried latest nightly:
Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.8.1a3) Gecko/20060606 BonEcho/2.0a3

created new profile and selected Import under File menu. After selecting Internet Explorer I let it import things. Then I went into Tools->Options Privacy->Passwords and did "Show Passwords" out of list >30 items only 1 password was shown, all others are blank?
Ok. I see a list of 30 imported sites/passwords. However only 2 actual passwords are there when I do "Show passwords" button. Also it only prefills the login for those sites whos password wasn't imported. 

Re-opening per conversation w/ tracy.
Status: RESOLVED → REOPENED
Resolution: WORKSFORME → ---
Whiteboard: 181b1+
-> mwu
Assignee: mconnor → michael.wu
Status: REOPENED → NEW
Target Milestone: Firefox 2 beta1 → Firefox 2 beta2
The IE migrator checks PStore for its password and form data. HTTP auth saved login data isn't stored there, AFAICT, so the migrator never did this at any point. That's one bug (not regression). The other problem is that many passwords don't actually get migrated, which I'm still looking into. (regression?)
I don't really see any changes in the IE migrator that would cause a regression in password importing. Removing regression keyword for now.
Keywords: regression
mwu, is there anything that indicates why this is happening?
Whiteboard: 181b1+ → [at risk]
(In reply to comment #12)
> mwu, is there anything that indicates why this is happening?
> 
The original bug - HTTP auth passwords not getting imported - is because we don't implement importing that info. It has never worked because that info is not stored in PStore. I'm not sure where it's stored.

Comment #7 and comment #8 suggests that there are other problems with importing passwords, but there's not much to go on besides "a lot of passwords don't import". FWIW, my test logins+passwords imported correctly. I'll take another look at this.
Taking off the list - I don't think we have time for this in FF2
Flags: blocking-firefox2+ → blocking-firefox2-
Severity: normal → enhancement
Keywords: qawanted
Summary: When migrating from Internet Explorer some of the passwords are not migrated → When migrating from Internet Explorer http auth passwords are not migrated
Whiteboard: [at risk] → [patch ready]
Ok, so I was wrong about http auth info not being stored in PStore. This patch adds support for importing HTTP auth data from IE. It only does HTTP auth for now since FTP is a bit more complicated. (and I don't think that many people know how to login with FTP in firefox)
Attachment #229907 - Flags: superreview?(mconnor)
Attachment #229907 - Flags: review?(mconnor)
Comment on attachment 229907 [details] [diff] [review]
Add support for importing HTTP auth passwords from IE

Good work, thanks!
Attachment #229907 - Flags: superreview?(mconnor)
Attachment #229907 - Flags: review?(mconnor)
Attachment #229907 - Flags: review+
Whiteboard: [patch ready] → [checkin needed]
Checking in nsIEProfileMigrator.cpp;
/cvsroot/mozilla/browser/components/migration/src/nsIEProfileMigrator.cpp,v  <--
  nsIEProfileMigrator.cpp
new revision: 1.40; previous revision: 1.39
done
Checking in nsIEProfileMigrator.h;
/cvsroot/mozilla/browser/components/migration/src/nsIEProfileMigrator.h,v  <--
nsIEProfileMigrator.h
new revision: 1.6; previous revision: 1.5
done

Checked into trunk.
Status: NEW → RESOLVED
Closed: 18 years ago18 years ago
Resolution: --- → FIXED
Whiteboard: [checkin needed]
Comment on attachment 229907 [details] [diff] [review]
Add support for importing HTTP auth passwords from IE

This should be fairly safe, and it improves the migration experience quite a lot for users who save http authentication passwords.
Attachment #229907 - Flags: approval1.8.1?
Comment on attachment 229907 [details] [diff] [review]
Add support for importing HTTP auth passwords from IE

a=drivers. Please land on the MOZILLA_1_8_BRANCH.
Attachment #229907 - Flags: approval1.8.1? → approval1.8.1+
Whiteboard: [checkin needed (1.8 branch)]
mozilla/browser/components/migration/src/nsIEProfileMigrator.cpp 	1.29.4.10
mozilla/browser/components/migration/src/nsIEProfileMigrator.h 	1.4.18.2
Keywords: fixed1.8.1
Whiteboard: [checkin needed (1.8 branch)]
Comment on attachment 229907 [details] [diff] [review]
Add support for importing HTTP auth passwords from IE


>+        nsAutoString tmp(itemName);
>+        tmp.Truncate(6);
>+        if (tmp.Equals(NS_LITERAL_STRING("DPAPI:"))) // often FTP logins
          if (tmp.EqualsLiteral("DPAPI:"))


>+          if (idx) {
>+            realm.Replace(idx, 1, NS_LITERAL_STRING(" ("));
>+            realm.Append(NS_LITERAL_STRING(")"));

              realm.AppendLiteral(")");

>+          pwmgr->AddUser(NS_ConvertUTF16toUTF8(realm),
>+                         NS_ConvertUTF8toUTF16((char *)data),
>+                         NS_ConvertUTF8toUTF16((char *)password));

Are 'data' and 'password' in UTF-8? I doubt they're.  If they're always in ASCII, NS_ConvertASCIItoUTF16 should be used instead. If they're in the default system codepage and contain characters outside the ASCII, they should be converted using NS_CopyNativeToUnicode.
(In reply to comment #21)
I'll fix issues raised in the previous comment in bug 352365 along with other similar problems in IE profile migrator.
sorry for bug spam.
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: