Closed Bug 134994 Opened 24 years ago Closed 24 years ago

Replication keeps going into my personal address book

Categories

(MailNews Core :: LDAP Integration, defect, P1)

x86
Windows 2000
defect

Tracking

(Not tracked)

VERIFIED FIXED
mozilla1.0

People

(Reporter: mscott, Assigned: rdayal)

Details

(Keywords: dataloss, Whiteboard: [adt2])

Attachments

(1 file)

I have a test LDAP server in my profile called seamonkey.mcom.com. Every time i try to replicate it, it ends up dumping a bunch of replicated entries into my PAB. If I replicate again, my PAB gets yet another set of the same entries dumped into it. So after every replication it grows by n where n is the # of entries in the directory.
Using a win32 release build: 2002032803
Assignee: srilatha → dmose
Keywords: nsbeta1
Here are my prefs: user_pref("ldap_2.servers.pab.filename", "abook.mab"); user_pref("ldap_2.servers.pab.replication.lastChangeNumber", 0); user_pref("ldap_2.servers.seamonkey.description", "seamonkey"); user_pref("ldap_2.servers.seamonkey.filename", "abook.mab"); user_pref("ldap_2.servers.seamonkey.replication.lastChangeNumber", 0); user_pref("ldap_2.servers.seamonkey.uri", "ldap://seamonkey.mcom.com:389/o=mcom.com??sub?(objectclass=*)"); Seth says Rajiv checked in a fix for something similar to this. Is my build from the 28th too old?
re-assign to rdayal. I can reproduce this as well. There is code in there to prevent this scenario, but it doesn't seem to be working.
Assignee: dmose → rdayal
Priority: -- → P1
Target Milestone: --- → mozilla1.0
even worse: if you replicate again, I think you will lose your addresses in your pab. replication does a "clean slate" on the .mab it uses, right Rajiv?
Keywords: dataloss
I saw the same problem with 04-02 build. Rajiv is looking into it.
Keywords: dataloss
Priority: P1 → --
Target Milestone: mozilla1.0 → ---
Yulian, did you intend to remove the mozilla 1.0 milestone, the P1 priority and the dataloss keyword or was it just a merge conflict?
Keywords: dataloss
Priority: -- → P1
Target Milestone: --- → mozilla1.0
Keywords: nsbeta1nsbeta1+
Whiteboard: [adt2]
the replication code calls nsDirPrefs to set the new server filename but it seems it is not doing so, it does not use the leafName parameter passed to it and generates a new filename only in case the DirSever::filename is null. Also it is replicating and adding to the same replication file rather than clean slate and then replicate since the CreateUnique creates a zero byte size file and thus MoveTo fails. Please find below the patch to fix the problems seen here.
marking fixed. the fix for this landed with #128087
Status: NEW → RESOLVED
Closed: 24 years ago
Resolution: --- → FIXED
Verified with 20020411 branch builds on various platforms.
Status: RESOLVED → VERIFIED
Keywords: verified1.0.0
Product: MailNews → Core
Product: Core → MailNews Core
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: