Closed
Bug 99124
Opened 23 years ago
Closed 23 years ago
when I create an ldap addressbook, it sets the filename pref to "abook.mab"
Categories
(SeaMonkey :: MailNews: Address Book & Contacts, defect)
Tracking
(Not tracked)
VERIFIED
FIXED
mozilla0.9.9
People
(Reporter: sspitzer, Assigned: sspitzer)
References
Details
(Whiteboard: nab-ldap)
I created an ldap addressbook "test" and here are the prefs it created: user_pref("ldap_2.servers.test.description", "test"); user_pref("ldap_2.servers.test.filename", "abook.mab"); user_pref("ldap_2.servers.test.replication.lastChangeNumber", 0); user_pref("ldap_2.servers.test.uri", "ldap://test:389/test??sub"); the .filename pref of "abook.mab" scares me, since that's the filename for my personal address book.
Comment 1•23 years ago
|
||
I'm seeing this in my profile too. This is happening because of the code in nsDirPrefs.cpp. http://lxr.mozilla.org/seamonkey/source/mailnews/addrbook/src/nsDirPrefs.cpp#288 5 By default server->position is set to 1 and so filename is being set to abbok.mab. 2897 /* set default personal address book file name*/ 2898 if (server->position == 1) 2899 server->fileName = nsCRT::strdup(kPersonalAddressbook);
Comment 4•23 years ago
|
||
I believe a good way to deal with this bug is to have a unified integrated method of adding LDAP Address Books from the Preferences and the Address Book UI. The proposed fix for bug #83091 attempts to deal with this.
Assignee | ||
Comment 5•23 years ago
|
||
I believe I've fixed this. now we should be setting the file name to something unique. see my recent changes to nsDirPrefs.cpp (for checkin #83091) note to rdayal, you can now use this fileName for the local .mab that you'll need for replication. you might consider investigating this: when offline, treat all LDAPDirectory types as PABDirectory types. see nsDirPrefs.cpp
Depends on: 83091
Whiteboard: nab-ldap
Assignee | ||
Comment 7•23 years ago
|
||
fixed.
Status: NEW → RESOLVED
Closed: 23 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla0.9.9
Updated•20 years ago
|
Product: Browser → Seamonkey
You need to log in
before you can comment on or make changes to this bug.
Description
•