Closed Bug 140850 Opened 24 years ago Closed 24 years ago

importing an LDIF address book hangs the browser

Categories

(MailNews Core :: Import, defect)

x86
Windows 2000
defect
Not set
normal

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: gagan, Assigned: cavin)

Details

(Keywords: dataloss, hang, Whiteboard: [adt2 rtm])

Attachments

(2 files, 1 obsolete file)

Attempted to import an address book in LDIF format. It hangs the browser. Build Id: 2002042806.
Keywords: dataloss, hang
This is BTW the branch build :-(
Branch build 2002-04-30-06: WinMe I imported an LDIF file with about 500 records and do not experience a hang. Stephen, can you try this on your Win2k system?
Attached file hangs on import —
When I import this ldif file, it "hangs" the browser. I use quotes because the behaviour is really this: The progross meter is stuck and the cpu meter is pegged. You can cancel the import, but the cpu usage remains at 100%. I can't verify the validity of the ldif file format, but it shouldn't hang like this regardless. I created the ldif by exporting a ureach.com address book.
I can't make it to hang using the attached ldif file. I'm running 1.0rc3 (20020523). Branch build 20020528 works fine too. The imported card has a nickname, work phone and work address.
Commercial Branch build 2002-05-28: WinMe I also imported the attached file and it imported one record without a hang.
Using 1.0RC3, I still get a hang when I try to import the attached file.
Hey, Steve can you email me your ldif file (the one you have problems with) so that I can see if I can reproduce it here? Thanks. The one you used may be different from mine in some chars, which can make a difference. Just a guess.
Using Steve's test ldif file I was able to see the hang problem and it's caused by the two sets of leading CR/LF at the beginning of the ldif file. Not sure if it's the same problem as Gagan's though since I don't have Gagan's ldif file to look at. A patch is coming.
Change component to Import and taking from racham.
Assignee: racham → cavin
Component: Address Book → Import
Attached patch Proposed fix, v1 (obsolete) — — Splinter Review
In AddLdifRowToDatabase(), reset CR/LF counters and return if there's no data in the ldif buffer to process (for example, space lines in the ldif file).
Comment on attachment 86414 [details] [diff] [review] Proposed fix, v1 R=ducarroz
Attachment #86414 - Flags: review+
Comment on attachment 86414 [details] [diff] [review] Proposed fix, v1 instead of !m_ldifLine.Length(), you should probably do: m_ldifLine.IsEmpty() can you try that instead? sr=sspitzer
OK, will do that before checking it in.
Use IsEmpty() instead of !Length() call.
Attachment #86414 - Attachment is obsolete: true
Nominating for nsbeta1.
Keywords: nsbeta1
Comment on attachment 86508 [details] [diff] [review] Incorporated comment. carrying over r/sr
Attachment #86508 - Flags: superreview+
Attachment #86508 - Flags: review+
Comment on attachment 86508 [details] [diff] [review] Incorporated comment. a=asa (on behalf of drivers) for checkin to the 1.1 trunk.
Attachment #86508 - Flags: approval+
Fix checked into the trunk.
Status: NEW → RESOLVED
Closed: 24 years ago
Resolution: --- → FIXED
Keywords: adt1.0.1
Keywords: nsbeta1 → nsbeta1+
Whiteboard: [adt2 rtm]
adding adt1.0.1+. Please get drivers approval before checking into the branch.
Comment on attachment 86508 [details] [diff] [review] Incorporated comment. Please land this on the 1.0.1 branch. Once there, remove the "mozilla1.0.1+" keyword, and add the "fixed1.0.1"
Fix checked in to the branch.
Branch build 2002-06-17: WinMe, ok, verified1.0.1 Trunk build 2002-06-17: WinMe, ok, Verified/Fixed
Status: RESOLVED → VERIFIED
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

Created:
Updated:
Size: