🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
5 messages
5 total messages Started by Eric Veldhuyzen Tue, 29 Jun 2004 12:13
Possible bugs in rnews (inn 2.4.1)
#69371
Author: Eric Veldhuyzen
Date: Tue, 29 Jun 2004 12:13
30 lines
2527 bytes
I just found two problems when rnews tried to process some news batches
that where send by my ISP via UUCP. Since I am not sure if they are
really bugs or simply something that should not be possible (in other
words, my ISP accepts and sends articles they should not) I'd like your
opinion first before I mail this to the inn-bugs list (and/or trying to
fix this myself).

1) rnews stops processing the newsbatch when it gets to an article which
   contains control characters. What I usually see is that some article
   contains the NULL characters (^@) en rnews breaks on it, and stops
   processing the rest of the newsbatch. Are control characters like the
   NULL character illegal in postings?

2) rnews stops processing the newsbatch when it gets to an article that
   does have an empty Subject (/^Subject: $/). It logs the message
   "rnews: bad_article missing Subject", but then doesn't process the
   rest of the newsbatch.

In both cases it might very well be that it is indeed illegal, but in my
opinion this should mean that this article should be ignored and
processing the batchfile should continue after the illegal article.
Instead the whole batchfile is placed in /var/spool/news/incoming/bad/
for manual inspection.

Opinions?
-- 
#!perl #                       Life ain't fair, but root passwords help.
# Eric Veldhuyzen                                       http://terra.nu/
$!=$;=$_+(++$_);($:,$~,$/,$^,$*,$@)=$!=~                 # eric@terra.nu
/.(.)...(.)(.)....(.)..(.)..(.)/;`$^$~$/$: $^$*$@$~ $_>&$;` #Perl Monger
Re: Possible bugs in rnews (inn 2.4.1)
#69372
Author: Russ Allbery
Date: Tue, 29 Jun 2004 17:30
34 lines
2778 bytes
Eric Veldhuyzen <eric@terra.nu> writes:

> I just found two problems when rnews tried to process some news batches
> that where send by my ISP via UUCP. Since I am not sure if they are
> really bugs or simply something that should not be possible (in other
> words, my ISP accepts and sends articles they should not) I'd like your
> opinion first before I mail this to the inn-bugs list (and/or trying to
> fix this myself).

> 1) rnews stops processing the newsbatch when it gets to an article which
>    contains control characters. What I usually see is that some article
>    contains the NULL characters (^@) en rnews breaks on it, and stops
>    processing the rest of the newsbatch. Are control characters like the
>    NULL character illegal in postings?

NUL in particular is illegal; control characters in general are not.  I
think rnews was fixed in STABLE to not stop at a NUL and just let the
server reject it instead, though, so that it doesn't break the whole
batch.

> 2) rnews stops processing the newsbatch when it gets to an article that
>    does have an empty Subject (/^Subject: $/). It logs the message
>    "rnews: bad_article missing Subject", but then doesn't process the
>    rest of the newsbatch.

This sounds like a bug.  I'll try to find time to take a look at this.  I
wonder if rnews doesn't have a way of saving specific articles out of a
batch to the bad directory or something.

-- 
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: Possible bugs in rnews (inn 2.4.1)
#69381
Author: Eric Veldhuyzen
Date: Fri, 02 Jul 2004 13:21
49 lines
3517 bytes
In article <87659as24u.fsf@windlord.stanford.edu>,
Russ Allbery  <rra@stanford.edu> wrote:
>Eric Veldhuyzen <eric@terra.nu> writes:
>
>> I just found two problems when rnews tried to process some news batches
>> that where send by my ISP via UUCP. Since I am not sure if they are
>> really bugs or simply something that should not be possible (in other
>> words, my ISP accepts and sends articles they should not) I'd like your
>> opinion first before I mail this to the inn-bugs list (and/or trying to
>> fix this myself).
>
>> 1) rnews stops processing the newsbatch when it gets to an article which
>>    contains control characters. What I usually see is that some article
>>    contains the NULL characters (^@) en rnews breaks on it, and stops
>>    processing the rest of the newsbatch. Are control characters like the
>>    NULL character illegal in postings?
>
>NUL in particular is illegal; control characters in general are not.

Ah, I wasn't able to find anything conclusive on this.

>I think rnews was fixed in STABLE to not stop at a NUL and just let the
>server reject it instead, though, so that it doesn't break the whole
>batch.

Well, that's not what my logs tell me, but I have to admit that the
version I use isn't the STABLE version. I am using the Debian packaged
version which is a CVS snapshot version of 2004-04-03.

>> 2) rnews stops processing the newsbatch when it gets to an article that
>>    does have an empty Subject (/^Subject: $/). It logs the message
>>    "rnews: bad_article missing Subject", but then doesn't process the
>>    rest of the newsbatch.
>
>This sounds like a bug.  I'll try to find time to take a look at this.  I
>wonder if rnews doesn't have a way of saving specific articles out of a
>batch to the bad directory or something.

In both cases, I can get the whole batch fully processed by rnews when I
first fix/remove the article that rnews didn't like from the batch.
Since rnews logs the message-id's and total number accepted/refused from
a batch I can see that it didn't work good before, and is processed good
after fixing.

-- 
#!perl #                       Life ain't fair, but root passwords help.
# Eric Veldhuyzen                                       http://terra.nu/
$!=$;=$_+(++$_);($:,$~,$/,$^,$*,$@)=$!=~                 # eric@terra.nu
/.(.)...(.)(.)....(.)..(.)..(.)/;`$^$~$/$: $^$*$@$~ $_>&$;` #Perl Monger
Re: Possible bugs in rnews (inn 2.4.1)
#69383
Author: Russ Allbery
Date: Fri, 02 Jul 2004 19:57
29 lines
2525 bytes
Eric Veldhuyzen <eric@terra.nu> writes:
> Russ Allbery  <rra@stanford.edu> wrote:

>> NUL in particular is illegal; control characters in general are not.

> Ah, I wasn't able to find anything conclusive on this.

It will be made explicit in the upcoming NNTP standard.

>> I think rnews was fixed in STABLE to not stop at a NUL and just let the
>> server reject it instead, though, so that it doesn't break the whole
>> batch.

> Well, that's not what my logs tell me, but I have to admit that the
> version I use isn't the STABLE version. I am using the Debian packaged
> version which is a CVS snapshot version of 2004-04-03.

As I recall, I fixed this relatively recently (at least, after that date),
but I'm not positive that it was rnews that I fixed this in.  Originally,
none of INN could handle nul characters; innd was updated a while back so
that it should now reject them cleanly (but probably can't handle them if
the rejection is turned off), but many of the supporting utility programs
still use strlen and therefore do the wrong thing.

-- 
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: Possible bugs in rnews (inn 2.4.1)
#69396
Author: Russ Allbery
Date: Sun, 04 Jul 2004 06:16
49 lines
3625 bytes
Eric Veldhuyzen <eric@terra.nu> writes:

> I just found two problems when rnews tried to process some news batches
> that where send by my ISP via UUCP. Since I am not sure if they are
> really bugs or simply something that should not be possible (in other
> words, my ISP accepts and sends articles they should not) I'd like your
> opinion first before I mail this to the inn-bugs list (and/or trying to
> fix this myself).

> 1) rnews stops processing the newsbatch when it gets to an article which
>    contains control characters. What I usually see is that some article
>    contains the NULL characters (^@) en rnews breaks on it, and stops
>    processing the rest of the newsbatch. Are control characters like the
>    NULL character illegal in postings?

I think rnews needs to be studied a little for nul handling; it looks like
at least the wire format conversion doesn't work properly when the article
contains a nul character.  I haven't made any more fixes to this at the
moment, though.

> 2) rnews stops processing the newsbatch when it gets to an article that
>    does have an empty Subject (/^Subject: $/). It logs the message
>    "rnews: bad_article missing Subject", but then doesn't process the
>    rest of the newsbatch.

I'm a little confused how this is supposed to work.  rnews *does* have a
way of rejecting one message and then continuing on to process the rest of
the batch, and intentionally doesn't use it for this case.  I'm not sure
why that is... it seems to me that for this, and also for unterminated
message ID headers, only the one article should be rejected rather than
pushing aside the whole batch.

I may try this modification in CURRENT to see if anyone encounters trouble
with it.

> In both cases it might very well be that it is indeed illegal, but in my
> opinion this should mean that this article should be ignored and
> processing the batchfile should continue after the illegal article.
> Instead the whole batchfile is placed in /var/spool/news/incoming/bad/
> for manual inspection.

It really shouldn't be putting it in bad either; it looks like rnews -U
behaves slightly differently than regular rnews, which is odd.

-- 
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.
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