Article View: news.software.nntp
Article #53781Re: Dots in the grouplist
From: Curt Welch
Date: Thu, 16 Aug 2001 02:02
Date: Thu, 16 Aug 2001 02:02
75 lines
4373 bytes
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/
Technical Details
Message-ID:
<20010815220214.461$8l@newsreader.com>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!howland.erols.net!portc.blue.aol.com.MISMATCH!portc03.blue.aol.com!feed1.newsreader.com!news2.newsreader.com!ellis.newsreader.com!not-for-mailReferences:
<1757l.f81216@archiver.winews.net>Show Full Headers
Complete Article Headers
Message-ID: <20010815220214.461$8l@newsreader.com>
Subject: Re: Dots in the grouplist
Date: Thu, 16 Aug 2001 02:02:14 +0000
From: curt@kcwc.com (Curt Welch)
References: <1757l.f81216@archiver.winews.net>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!howland.erols.net!portc.blue.aol.com.MISMATCH!portc03.blue.aol.com!feed1.newsreader.com!news2.newsreader.com!ellis.newsreader.com!not-for-mail
Organization: NewsReader.Com
Newsgroups: news.software.nntp
X-Trace: NewsReader.Com 3@dRqq.pafcHqSdEakV1a5o=ajBDN8I=qb+kvLi=1S2=f-Ig
X-Face: "p}G*1KH{+F7EYGKLb>ogDguabZ+%,?^epeFB!nzu`)`$=QcvL1KF6<0GH!Tbc!Sqo[|tV5
%IW48mQf3K=Ci&gZ7]]aazx@]Y-nq!r5{yH/#,?@lDdUDvOfByB2hVW0.@OM%{l/{cT'{w
X-Url: http://CurtWelch.Com/
User-Agent: NewsReader.Com
Lines: 74