🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
6 messages
6 total messages Started by Rick Pasotto Mon, 03 Dec 2001 22:46
corrupted xover data
#55447
Author: Rick Pasotto
Date: Mon, 03 Dec 2001 22:46
22 lines
2113 bytes
I'm working on a program to deal with multi-part binaries and in my
testing got a corrupted xover response. The second and third fields
(supposed to be subject and poster) were missing so everything got
shifted two slots. The date was where the subject was supposed to be,
the article_id was where the poster was supposed to be, etc.

This happened on only *one* article:
(telocity: alt.binaries.mp3.audiobooks: 239671)

Is this sort of thing to be expected from time to time? How do other
programs handle it? Do they just ignore the article?

BTW, my program is in a very usable alpha stage and I'd be interested in
having comments on its usability. It's written in python and so it works
on any machine that has python (free download from www.python.org)
installed. I've tested on Win95 and linux.

-- 
The proper domain of law and government is justice
	-- Fr�d�ric Bastiat (1801-1850)
    Rick Pasotto    rickp@telocity.com    http://www.niof.net
Re: corrupted xover data
#55452
Author: The Archiver
Date: Tue, 04 Dec 2001 08:35
37 lines
2046 bytes
Rick Pasotto <rickp@telocity.com> wrote:

>I'm working on a program to deal with multi-part binaries and in my
>testing got a corrupted xover response. 
>[...]
>Is this sort of thing to be expected from time to time? 

Yes - there are corrupt Xover-Lines all the time.
(Some hosts seem to filter corrupt xover-lines - some dont).

>How do other programs handle it? 

My own software is checking the validity of the MsgID-Field.
If that string does not start and end with '<' and '>' or the 
'@' is missing then the line treated as corrupt.

The only other fields which must contain correct data
are the article number, lines and bytesize. 
If they are not plain numerical then the line if broken.

>Do they just ignore the article?

Yes - I am also writing a warning to the logfile.


A last hint:
Sometimes there are extremely LONG xover lines
(1000-3000 chars). Especially if the message contains
insane subjects, extreme amounts of references or 
a cross-reference for 50 groups.
Be prepared to have a HUGE line buffer.

HTH
-- 
The Archiver
 
Re: corrupted xover data
#55457
Author: Andrew - Supernews
Date: Tue, 04 Dec 2001 15:16
19 lines
1541 bytes
In article <44359.4c1200@archiver.winews.net>, The Archiver wrote:
> Rick Pasotto <rickp@telocity.com> wrote:
> 
>>I'm working on a program to deal with multi-part binaries and in my
>>testing got a corrupted xover response. 
>>[...]
>>Is this sort of thing to be expected from time to time? 
> 
> Yes - there are corrupt Xover-Lines all the time.
> (Some hosts seem to filter corrupt xover-lines - some dont).

You've got this backwards. Overviews are generated by the server locally,
so any corruption you see is the sole responsibility of _that server_.
There is no question of "filtering" corrupt overviews.

-- 
Andrew, Supernews
http://www.supernews.com - individual and corporate NNTP services
Re: corrupted xover data
#55462
Author: Greg Andrews
Date: Tue, 04 Dec 2001 18:20
33 lines
2236 bytes
archiver@i3w.com (The Archiver) writes:
>
>My own software is checking the validity of the MsgID-Field.
>If that string does not start and end with '<' and '>' or the 
>'@' is missing then the line treated as corrupt.
>

Don't forget that the string must not have a separator
character inside it (IIRC a tab).  Depending on how you
parse the overview entry, this may or may not be important.

>
>The only other fields which must contain correct data
>are the article number, lines and bytesize. 
>If they are not plain numerical then the line if broken.
>

The lines field in the overview data is not consistent
across different NNTP server software.  Some software
creates its own lines field, so it's always present and
always accurate.  Other software will use the message's
Lines: header if it exists, or create its own when it
doesn't, so it's always present but not always reliable.
Other software will allow the lines field to be empty
if the article had no line count in a Lines: header.


  -Greg
-- 
+++++ Greg Andrews +++ gerg@panix.com +++++
I have a map of the United States that's actual size
		 -- Steven Wright
Re: corrupted xover data
#55465
Author: Russ Allbery
Date: Tue, 04 Dec 2001 20:07
19 lines
1824 bytes
Greg Andrews <gerg@panix.com> writes:

> The lines field in the overview data is not consistent across different
> NNTP server software.  Some software creates its own lines field, so
> it's always present and always accurate.  Other software will use the
> message's Lines: header if it exists, or create its own when it doesn't,
> so it's always present but not always reliable.  Other software will
> allow the lines field to be empty if the article had no line count in a
> Lines: header.

Software which does anything other than the first option is, however,
broken.  At least in my opinion.

-- 
Russ Allbery (rra@stanford.edu)             <http://www.eyrie.org/~eagle/>

          Please post questions rather than mailing me directly.
     <http://www.eyrie.org/~eagle/faqs/questions.html> explains why.
Re: corrupted xover data
#55480
Author: Greg Andrews
Date: Wed, 05 Dec 2001 05:09
25 lines
2012 bytes
Russ Allbery <rra@stanford.edu> writes:
>Greg Andrews <gerg@panix.com> writes:
>
>> The lines field in the overview data is not consistent across different
>> NNTP server software.  Some software creates its own lines field, so
>> it's always present and always accurate.  Other software will use the
>> message's Lines: header if it exists, or create its own when it doesn't,
>> so it's always present but not always reliable.  Other software will
>> allow the lines field to be empty if the article had no line count in a
>> Lines: header.
>
>Software which does anything other than the first option is, however,
>broken.  At least in my opinion.
>

I agree.  It's been a year since I discovered the third option,
so I don't remember the software clearly.  I think it was Verio's
or @Home's Typhoon.

  -Greg
-- 
+++++ Greg Andrews +++ gerg@panix.com +++++
I have a map of the United States that's actual size
		 -- Steven Wright
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads