🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
6 messages
6 total messages Started by The Archiver Wed, 15 Aug 2001 19:57
Dots in the grouplist
#53774
Author: The Archiver
Date: Wed, 15 Aug 2001 19:57
44 lines
2159 bytes
Hello NNTP-specialists,

one of my users is not able to download the grouplist
from his news-host. The problem is in my own software,
but the list from the server does not look very good, too.
Here a few lines from the logfile:

InS :{microsoft.public.windowsmedia.player.windowsce 0000000001 0000000002 y}
InS :{microsoft.public.windowsce.developer.embedded.beta 0000000003 0000000002 y}
InS :{.development_environment 0000000231 0000000219 y}
-----> 35 groups (file:C:\ProgramFiles\MyNews\hosts\GrpList-news.gte.net.txt)

That host delivers a line:
    .development_environment 000000231  00000219  y

If the groupname would really start with a dot then the log (which displays
the stream data) shouldn't be this:  ..development_environment   ....
with 2 dots at the start of line.

I did not forsee this special case. So my own software stops reading 
the grouplist in this case (a bad solution - I know this now).


Could you please help me with your own experience how to react 
properly to the situation:

Is it possible that the host software sends out the grouplist without 
the 'doubling dot mechanism' ? Or could this be a transmission error.

Should such groups be accepted (to the own grouplist) or rejected ?
With one dot at the beginning ?
Removing the dot ?


The case of a single dot in column #1 followed by text is normally not
possible in NNTP. How to react properly on other incoming data?
In Xover, Articles, other lists ?


TIA
-- 
The Archiver

Re: Dots in the grouplist
#53780
Author: Russ Allbery
Date: Thu, 16 Aug 2001 00:20
33 lines
2121 bytes
The Archiver <archiver@i3w.com> writes:

> That host delivers a line:
>     .development_environment 000000231  00000219  y

> If the groupname would really start with a dot then the log (which
> displays the stream data) shouldn't be this:  ..development_environment
> ....  with 2 dots at the start of line.

Right.

> Could you please help me with your own experience how to react properly
> to the situation:

> Is it possible that the host software sends out the grouplist without 
> the 'doubling dot mechanism' ? Or could this be a transmission error.

The remote host is broken.

> The case of a single dot in column #1 followed by text is normally not
> possible in NNTP. How to react properly on other incoming data?
> In Xover, Articles, other lists ?

It's a syntax error by the remote host; the data is invalid.  It should
probably be handled using whatever mechanism that you already have to
handle nonsensical or syntactically invalid data from the remote host.

-- 
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: Dots in the grouplist
#53781
Author: Curt Welch
Date: Thu, 16 Aug 2001 02:02
75 lines
4373 bytes
archiver@i3w.com (The Archiver) wrote:
> Hello NNTP-specialists,
>
> one of my users is not able to download the grouplist
> from his news-host. The problem is in my own software,
> but the list from the server does not look very good, too.
> Here a few lines from the logfile:
>
> InS :{microsoft.public.windowsmedia.player.windowsce 0000000001
> 0000000002 y} InS :{microsoft.public.windowsce.developer.embedded.beta
> 0000000003 0000000002 y} InS :{.development_environment 0000000231
> 0000000219 y} -----> 35 groups
> (file:C:\ProgramFiles\MyNews\hosts\GrpList-news.gte.net.txt)
>
> That host delivers a line:
>     .development_environment 000000231  00000219  y
>
> If the groupname would really start with a dot then the log (which
> displays the stream data) shouldn't be this:  ..development_environment
> .... with 2 dots at the start of line.
>
> I did not forsee this special case. So my own software stops reading
> the grouplist in this case (a bad solution - I know this now).
>
> Could you please help me with your own experience how to react
> properly to the situation:
>
> Is it possible that the host software sends out the grouplist without
> the 'doubling dot mechanism' ? Or could this be a transmission error.

I'm sure that's what happened.  They assumed the group list could never
have a line which begins with dot so they didn't write the code to test
for lines beginning with dot.  But then they let someone create a group
which began with a dot.  So it failed twice.

Posting clients are well know for making this same mistake on uuencoded
data.  They (fasely) assume that uucencoded data will never produce
a line beginning with a dot so they don't check for it.  But the last
(short) line of the data can begin with a dot if the file is just the
right length.  And they end up producing the same type of stuff you saw
above.  Lines beginning with one dot followed by other characters in the
NNTP stream.

> Should such groups be accepted (to the own grouplist) or rejected ?
> With one dot at the beginning ?
> Removing the dot ?

I'd vote for rejecting the group as invalid. (i.e pretend it wasn't
even in the list - but spit out an error if you have a resonable way
to do that without bugging the user too much.)

> The case of a single dot in column #1 followed by text is normally not
> possible in NNTP. How to react properly on other incoming data?
> In Xover, Articles, other lists ?

It shouldn't happen in Xover (unless the server is really really broken and
sending total crap out because every line will begin with an article
number).

It shouldn't ever happen in LIST. Your example is the first time I've heard
of that.

In articles, it's known to happen on POSTS with broken clients.

How you deal with it will be function of the needs of your software.

It's clear the server is "broken", but you don't want to prevent your user
from using the server just because it's got a bogus group in the active
file and is unable to dot stuff the name correctly.  At least I don't think
you do.  But it's all up to you.  Can do do whatever you want with it. :)

-- 
Curt Welch                                            http://CurtWelch.Com/
curt@kcwc.com                          Webmaster for http://NewsReader.Com/
Re: Dots in the grouplist
#53827
Author: The Archiver
Date: Fri, 17 Aug 2001 09:52
13 lines
1148 bytes
Russ Allbery <rra@stanford.edu> wrote:

>It's a syntax error by the remote host; the data is invalid.  It should
>probably be handled using whatever mechanism that you already have to
>handle nonsensical or syntactically invalid data from the remote host.

Thanks for the reply.
I'll do that.

-- 
The Archiver

Re: Dots in the grouplist
#53821
Author: The Archiver
Date: Fri, 17 Aug 2001 09:59
35 lines
1811 bytes
curt@kcwc.com (Curt Welch) wrote:

>> Should such groups be accepted (to the own grouplist) or rejected ?
>> With one dot at the beginning ?
>> Removing the dot ?
>
>I'd vote for rejecting the group as invalid. (i.e pretend it wasn't
>even in the list - but spit out an error if you have a resonable way
>to do that without bugging the user too much.)

This is what I would do.
And the 'error-log' is the best place for such a user-message.

>It shouldn't ever happen in LIST. Your example is the first time I've heard
>of that.

For me this was also the first time since three years of programming
and testing. Hundreds of users find a lot more strange things than 
all beta testers can.

And I'm sure other NNTP-Programmers should know this.
This is one of the reasons why I'm posting such messages
to n.s.nntp   I hope this is appreciated generally.

>But it's all up to you.  Can do do whatever you want with it. :)

Discarding with an entry to the error-log seems to be always
a good choice.

Thanks for the tips.

-- 
The Archiver

Re: Dots in the grouplist
#53866
Author: The Archiver
Date: Sat, 18 Aug 2001 07:00
17 lines
1060 bytes
archiver@i3w.com (The Archiver) wrote:

>one of my users is not able to download the grouplist
>from his news-host. 

Update:

That user reported the problem to his newsadmin.
He removed the group which caused the problem quickly.

Now everybody is happy 
- and future software releases can be fixed.

-- 
The Archiver

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