Closed Bug 97502 Opened 23 years ago Closed 23 years ago

LDAP server in prefs list of servers changes to "null".

Categories

(SeaMonkey :: MailNews: Address Book & Contacts, defect, P3)

x86
Windows 2000
defect

Tracking

(Not tracked)

VERIFIED FIXED
mozilla0.9.5

People

(Reporter: smeredith, Assigned: srilatha)

References

Details

(Whiteboard: PDT+)

Attachments

(3 files)

From the "Addressing" prefs windows, press the "Edit Directories..." button.
Press "Add" and add a new server to the list. The values here don't matter.
Now press "Edit" for one of the existing servers in the list. 
Press "Cancel" on the "Directory Server Properties" dialog which comes up.
The selected server in the list is changed to "null." It's properties are now gone.
QA Contact: fenella → yulian
Reassign to Srilatha
Assignee: chuang → srilatha
Keywords: nsbranch
Priority: -- → P3
Target Milestone: --- → mozilla0.9.5
*** Bug 98438 has been marked as a duplicate of this bug. ***
nsbranch+ per pdt triage
appears to be data loss
Keywords: nsbranchnsbranch+
OK I have a fix for this.
When a new directory is added gUpdate is set to true and we are not resetting it 
to false. In editDirectory we are checking in gUpdate is true...
gUpdate should be true only if the user has clicked ok on the Directory 
Server Properties dialog. The fix is to set gUpdate to false before we open 
Directory Server Properties dialog.
Attached patch patch v1Splinter Review
ccing sspitzer@netscape.com for review.
Status: NEW → ASSIGNED
From the "Addressing" prefs windows, press the "Edit Directories..." button.
select a server
then click on "Edit" and then click "Ok" in "Directory Server Properties" 
Dialog.
Then click on "New" and then click "Cancel" in "Directory Server Properties" 
Dialog.
a new server is added to the list of server with the same name as the one you 
just edited.

Have a fix which fixes this too.
will post a new patch right away.
Attached patch patch v2Splinter Review
Attached patch path v3Splinter Review
After discussing with Mitesh, we decided setting gUpdate to false in OnCancel is 
a better solution.  Thanks Mitesh
Mitesh please review.
Comment on attachment 50345 [details] [diff] [review]
path v3

sounds good
Attachment #50345 - Flags: review+
Whiteboard: PDT
check it in - PDT+
Whiteboard: PDT → PDT+
Fix checked into both trunk and branch.
Status: ASSIGNED → RESOLVED
Closed: 23 years ago
Resolution: --- → FIXED
Verified with 20010925 0.9.4 builda on NT, Linux and MacOS 9.2.
Status: RESOLVED → VERIFIED
Product: Browser → Seamonkey
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: