1/8/09 Update: If you tried installing the .xpi and got “Firefox could not install the file at [...] because: Not a valid install package -207,” please see the revised download instructions below.
I like Firefox’s Password Exporter Add-on, but recently I noticed a bug with version 1.1 (released January 5, 2008) when importing into Firefox 3. Several entries return the following error:
'Can't add a login with both a httpRealm and formSubmitURL.' when calling method: [nsILoginManager::addLogin]
I’ve posted the .xpi at http://www.vicshih.com/files/password_exporter-1.1-fx_tb-formSubmitURL-fix.xpi (90.1KB).
Here’s the diff, in case you are queasy about installing my unsigned version.
Within the file
chrome/content/passwordexporter.jar
, in the file content/pwdex-loginmanager.js
,
540,541c540,549
<
< var bogusLoginInfo = new nsLoginInfo(entries[i].hostname, 'http://passwordexporter',
---
> var doModify = false;
>
> var formSubmitURL = entries[i].formSubmitURL;
>
> if (formSubmitURL) {
> formSubmitURL = '';
> doModify = true;
> }
>
> var bogusLoginInfo = new nsLoginInfo(entries[i].hostname, formSubmitURL,
548c556
< loginManager.modifyLogin(bogusLoginInfo, entries[i]);
---
> if (doModify) loginManager.modifyLogin(bogusLoginInfo, entries[i]);
Hi Vic,
ReplyDeleteDo you have a fix for the:
"XML parsing error. Passwords could not be imported."
Error?
Sorry, no, I didn't see that error myself so I don't know anything about that.
ReplyDeleteHave you tried opening the file in another XML reader or Firefox itself to see if it's well formed?
Thank you for your quick reply :D
ReplyDeleteWhich other xml readers are there out there?
Try just opening the .xml file in Firefox via File | Open File...
ReplyDeleteIf you're still having trouble, go ahead and email me directly; my email address can be found at www.vicshih.com.
Vic! You Legend!
ReplyDeleteThere was one obsolete password that was jamming it it seemed!
I am gonna see if I can do it to other exports and see if that is what was holding my particular exports back from being imported!
If it is, I will report it here :D
Thank you.
Screenshot of when I opened up the xml in Firefox:
ReplyDeletehttp://img357.imageshack.us/img357/3193/4012009100841pmqa1.png
I deleted it, and since have been able to open the xml file, and import my few hundred passwords!
Again, a warm, heartfelt thank you Vic :)
Glad to be able to help :)
ReplyDeleteI dunno Vic I tried it and got:
ReplyDeleteFirefox could not install the file at
file:///E:/2--GOLD_code%20snippets/Format%20stuff%20PENTING!/Password%20stuff/password_exporter-1.1-fx_tb-formSubmitURL-fix.xpi
because: Not a valid install package
-207
LETTERS NOT EDITORS, sorry about that. There's something weird about my web page when handling the redirect.
ReplyDeleteInstead of right-clicking and saving, try left-clicking, which should prompt Firefox to save to disk.
I'll update the blog instructions now.
Vic, your fix works like a charm, even in 3.1 beta.
ReplyDeleteThanks!
Wow, Vic, you are a life saver!
ReplyDeleteI've been fighting to find a way around this xml parsing error for hours now.. lol Finally found your page and now I have all my MANY passwords saved in my new Firefox profile! Whew!!
I hope you don't mind, I've posted the fix with a link to your page in a few forums because I see there are a LOT of people with the same problem, and YOU have the only fix!
Thank you, Thank you, Thank you, and God bless you!!
~ MomRee ~
I'm still getting xml parsing error even with your download. is there something i'm missing here?
ReplyDeleteCarlo, you're talking about the exported xml file?
ReplyDeleteDoes it open in Firefox?
You can try chatting with me with the chat bubble.
ah. actually, i've been exporting to csv (Mac OS) - perhaps that's my problem?
ReplyDelete@Carlo, ah. Give the XML export a try -- the CSV export won't allow you to use the technique described to catch the XML parse errors.
ReplyDeleteDude,
ReplyDeleteThanks for this.
Had some passes I couldn't import. Your fix worked perfect.
Stay Cool.
Vic, real thanks for this fix! The recent FF 3.5 has a bug and will not import my passwords from the previous 3.0 profile, no fixes with signons.sql worked and I was left with the password exporter. However, it did not import passwords for basic authentication, with your fix everything went smoothly!
ReplyDeleteThanks :o) it works
ReplyDeleteWorks well. Any chance you could update it for 3.5? So far as I can tell, it works just fine in 3.5 (I turned off my compatibility check to try it), but a quickie update to flag it as compatible would be nice. Also, have you communicated at all with the original author? Having this fixed version available from the main mozilla add-on site would be nice.
ReplyDelete@worlebird, I've updated maxVersion to 3.5.*. Thanks!
ReplyDeleteI posted to the author's forum, and I believe I emailed him, but haven't heard anything.
"XML parsing error. Passwords could not be imported." > solved or better say with workaround. Issue with the codding for the xml.Using CZECH, ENGLISH and BULGARIAN keyboards causes saving passwords in other codding where xml shows this error.
ReplyDeleteI tried following.
1. Export passwords from the new extension where one can be saved.
2. Open the xml with the old saved passwords.
3. Copy from the old to the new xml by taking not more then 10 lines so if the error appear while importing to see which line contain characters as "+ a" or similar so to remove them.
4. Once the error appear you need to export again the newer passwords and save them to new file, the characters already changed the xml coding so wont work anymore.
It works for me, exported from Firefox portable 2.X to 3.X installed version.
VirusRemovalTeam@McAfee
Pretty! This has been an incredibly wonderful article.
ReplyDeleteThank you for supplying this information.
NY