Closed Bug 621024 Opened 14 years ago Closed 13 years ago

nsILoginManager::addLogin: Can't add a login with a null or empty password

Categories

(Firefox :: Sync, defect)

x86_64
Linux
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 609380

People

(Reporter: wolfiR, Unassigned)

References

Details

Not really UI but also not server. Feel free to move where it belongs.

Fehler: [Exception... "'Can't add a login with a null or empty password.' when calling method: [nsILoginManager::addLogin]"  nsresult: "0x8057001e (NS_ERROR_XPC_JS_THREW_STRING)"  location: "JS frame :: resource://services-sync/engines/passwords.js :: PasswordStore__create :: line 192"  data: no]
Quelldatei: resource://services-sync/engines/passwords.js
Zeile: 192

This is what I currently get when I try to sync one of my machines.
(it's displayed as an unknown error in the UI.

While I'm not aware of the fact that I would have an empty password in my password store it shouldn't break sync completely anyways.
Seems related to bug 619427
Component: Firefox Sync: UI → Firefox Sync: Backend
QA Contact: sync-ui → sync-backend
Summary: Can't add a login with a null or empty password → nsILoginManager::addLogin: Can't add a login with a null or empty password
Probably similar reason but other location?

Anyway, I've deleted the entries with empty passwords in my main Firefox and sync to the other one works again.
I have no idea how those entries got added over the last years but apparently it was possible. nsLoginManager doesn't allow that anymore so it fails.
The problem is that the whole sync seems to be cancelled what shouldn't be the case.
Just try .. catch it?
Had another user hit this tonight; his profile had lots of empty passwords. Would be nice to get a simple try/catch fix out there...
Oh, and don't upload records with null or empty values.
For those trying to work around this, the server data has to be overwritten with good data, not merged.
I morphed bug 609380 into dealing properly with broken password records.
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → DUPLICATE
I'm experiencing this or a similar bug (ie "Unknown error"). Not sure what I need to do to make my bug report more useful? I haven't had a chance to check on other computers but I am experiencing this on Ubuntu 10.04 running Firefox 3.6.13
(In reply to comment #9)
> I'm experiencing this or a similar bug (ie "Unknown error").

That could be anything so I wouldn't jump to conclusions here about similarity.

> Not sure what I need to do to make my bug report more useful?

Please always file a *new* bug. Go to about:sync-log in your browser, save it as a file and attach it to that bug. Thanks!
Component: Firefox Sync: Backend → Sync
Product: Cloud Services → Firefox
You need to log in before you can comment on or make changes to this bug.