Closed
Bug 29894
Opened 25 years ago
Closed 25 years ago
newsrc corruption
Categories
(MailNews Core :: Backend, defect, P3)
Tracking
(Not tracked)
VERIFIED
FIXED
M14
People
(Reporter: sspitzer, Assigned: sspitzer)
Details
as reported by Ken Dowling in n.p.m.mail-news I started clean, no .mozilla directory. I set up this news server, subscriped to the newsgroups and exited. Checked the newsrc file and it was ok. I hadn't yet downloaded any article listings and all the newsgroups were listed, sans article numbers... netscape.public.mozilla.announce: netscape.public.mozilla.mail-news: netscape.public.mozilla.seamonkey: netscape.public.mozilla.unix: netscape.public.mozilla.general: netscape.public.mozilla.layout: netscape.public.mozilla.prefs: netscape.public.mozilla.ui: netscape.public.mozilla.xpcom: Then I started mozilla back up, clicked on the first newsgroup, n.p.m.announce, and downloaded the article listing. Then marked all read. Looked in the newsrc, the article numbers were listed, but the mark all read had not yet been committed. No corruption yet. Clicked on the next newsgroup, n.p.m.general, and downloaded it's article listing. Checked the newsrc. The mark all read from the first newsgroup had been committed and the article numbers were listed for the second newsgroup. However, the file was now corrupted with addition lines at the end of the file.... (Ignore the wrapping in the article numbers, it was pasted from my xterm) netscape.public.mozilla.announce: 1-188 netscape.public.mozilla.mail-news: netscape.public.mozilla.seamonkey: netscape.public.mozilla.unix: netscape.public.mozilla.general: 2-16357,16432,16435,16445,16463,16464,16586,16587,16634,16653,16658,16732,16772,16778,16779,16812 netscape.public.mozilla.layout: netscape.public.mozilla.prefs: netscape.public.mozilla.ui: netscape.public.mozilla.xpcom: ayout: netscape.public.mozilla.prefs: netscape.public.mozilla.ui: netscape.public.mozilla.xpcom: Notice the extra lines after the first n.p.m.xpcom. This continued and got worse as I continued to download the rest of the newsgroups.
Assignee | ||
Comment 1•25 years ago
|
||
marking as beta1, accepting. I'll work on reproducing and fixing it tonight.
Assignee | ||
Comment 2•25 years ago
|
||
adding the reporter (ken) to the cc list.
Assignee | ||
Comment 3•25 years ago
|
||
i'm seeing the corruption, and I have a guess at what's causing it. I'll report back in a minute.
Assignee | ||
Comment 4•25 years ago
|
||
I'm so ashamed. here's the problem. when you mark all read, it compresses the newsrc line. in some cases, that can make a two line newsrc file entry an one line entry. I was not truncating the file when I re-opened it for writing, I would write one line where two were, and it was leaving garbage at the end. the simple fix is to truncate the file. testing the fix now. nice catch, Ken!
Assignee | ||
Comment 5•25 years ago
|
||
fixed. thanks again to ken for finding this nasty bug. ken, to get a quicker response (that using the newsgroup) you can log all news bugs directly to me.
Status: ASSIGNED → RESOLVED
Closed: 25 years ago
Resolution: --- → FIXED
Comment 6•25 years ago
|
||
This one is back in 2000030316.
Assignee | ||
Comment 7•25 years ago
|
||
ken, same steps to reproduce? same platform?
Comment 8•25 years ago
|
||
Was same platform, same steps. Now it works properly again with build 2000030409. Strange.
As per reporter's last comments, marking VERIFIED.
Status: RESOLVED → VERIFIED
QA Contact: lchiang → stephend
Updated•20 years ago
|
Product: MailNews → Core
Updated•16 years ago
|
Product: Core → MailNews Core
You need to log in
before you can comment on or make changes to this bug.
Description
•