Closed Bug 235360 Opened 21 years ago Closed 21 years ago

Password Manager API changes to facilitate import/export

Categories

(SeaMonkey :: Passwords & Permissions, defect, P1)

defect

Tracking

(Not tracked)

RESOLVED FIXED
mozilla1.7beta

People

(Reporter: bugs, Assigned: bugs)

References

Details

Attachments

(2 files, 2 obsolete files)

We need to be able to read in password entries from an arbitrary file to support import/export in Firefox. This requires changes to nsIPasswordManagerInternal.
Assignee: dveditz+bmo → bugs
Status: NEW → ASSIGNED
taking, targeting, setting dependencies
Blocks: 215094
Priority: -- → P1
Target Milestone: --- → mozilla1.7beta
Attachment #142083 - Flags: superreview?(darin)
Attachment #142083 - Flags: review?(dveditz+bmo)
Attached patch this one actually compiles! (obsolete) — Splinter Review
Attachment #142083 - Attachment is obsolete: true
Comment on attachment 142106 [details] [diff] [review] this one actually compiles! r=dveditz (or sr= if you need Darin's r= for the netwerk code)
Attachment #142106 - Flags: review+
Attachment #142083 - Flags: superreview?(darin)
Attachment #142083 - Flags: review?(dveditz+bmo)
Comment on attachment 142106 [details] [diff] [review] this one actually compiles! so, do you need the WritePasswords function? i ask because you determined that you don't need it for cookies. also, i might rename |aHost| to something more accurate, like |aKey| since aHost is not a simple hostname. it is a password entry key ;-) i know, i know... all the singsign code refers to it as the host field. that's just unfortunate.
Attached patch newer patchSplinter Review
Yeah, I didn't turn out to need writePasswords after all. I suppose symmetry isn't so important. Also add a "encrypt vs. obscure" param at darin's suggestion in case this is implemented for Single Signon
Attachment #142106 - Attachment is obsolete: true
Attachment #142106 - Attachment is obsolete: false
Attached patch a newer patchSplinter Review
This one doesn't clutter up the API for (what I can tell) no reason with Seamonkey implementation details. Use "key" instead of "host" in terminology as well. Darin, you choose.
Attachment #142106 - Attachment is obsolete: true
in the newer patch, is aPassword plaintext, obscured or encrypted? Can you document that?
Attachment #142697 - Flags: superreview?(darin)
Comment on attachment 142697 [details] [diff] [review] a newer patch >Index: netwerk/base/public/nsIPasswordManagerInternal.idl >+ * @param aUser The username portion of the login >+ * @param aPassword The password portion of the login ... >+ void addUserFull(in AUTF8String aKey, >+ in AString aUser, >+ in AString aPassword, yeah, i agree with mvl. please document the fact that the username and password must be passed in plain text. it's not obvious in the context of importing usernames and passwords. >+ /** >+ * Reads logins from a Mozilla Password Manager file, augmenting the current >+ * in-memory set. augmenting is a vague term. can you be more specific? like, perhaps we want to mention what happens when a conflict occurs. e.g., suppose we already have a password for a given key+username combo, but suppose the new password is different. we should document this behavior. sr=darin with those things documented.
Attachment #142697 - Flags: superreview?(darin) → superreview+
Fix checked in.
Status: ASSIGNED → RESOLVED
Closed: 21 years ago
Resolution: --- → FIXED
Is there a bug for a UI to use this? Bug 256406 asks for the export funtionality. Bug 250160 asks for import. They could serve this purpose. pi
Product: Browser → Seamonkey
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: