πŸš€ go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #80533

Re: Questions about datastream answers (especially to TAKETHIS)

#80533
From: Curt Welch
Date: Thu, 09 Apr 2009 18:22
45 lines
3780 bytes
Russ Allbery <rra@stanford.edu> wrote:
> Julien Γ‰LIE <iulius@nom-de-mon-site.com.invalid> writes:
>
> > Oh hmm...  If that's so, should we really send 501 to:
> >
> >   [C] TAKETHIS bad-mid and/or four arguments
> >   [C] From: ...
> >   [C] (with a valid article)
> >   [C] .
> >
> > We will get desynchronized the same way.
> > If 501 can be sent in that case, so does 403...
>
> I think we didn't discuss this in the working group since this case is so
> much less common.  In this case, the TAKETHIS client is actually broken,
> so who knows what horrible thing it's going to do.  We don't have as good
> of a chance of doing the right thing.

An old bug I remember having to code around related to this was that Diablo
used to (and maybe still does?) allow spaces in message-ids.  Every once in
a great while, a Diablo server would try to send an article with a space in
it.  My code incorrectly rejected the TAKETHIS as an invalid command (too
many arguments) and as such, never tried to read the article which
followed.  That of course broke the protocol and all hell broke loose.  Or
it would reject the CHECK as invlid, and Diablo would keep resending the
same article over and over.

To fix this, I had to write the code to accept and deal with those
otherwise very invalid Message-IDs and reject them correctly.  So, for
CHECK and TAKETHIS, and IHAVE I had to use completely different argument
parsing code to make this work correctly.

Though it's fine to say Diablo was broken, the fact was that a lot of my
peers used it, and as such, I had to deal with it.

These are some of the things you just can't specify with the RFC because
it's stupid to require servers to deal with broken Message-IDs in the RFC
but yet when you find your server is talking to one, you have to do
something to make it work.   It's just the stuff you have to deal with when
you find it in the wild.  I don't know if it's possible to write a working
server from the spec alone.  It certainly didn't used to be.

-- 
Curt Welch                                            http://CurtWelch.Com/
curt@kcwc.com                                        http://NewsReader.Com/
Technical Details
Message-ID: <20090409142256.646$sI@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.20141118.mbox.gz!border1.nntp.ams.giganews.com!border2.nntp.ams.giganews.com!nntp.giganews.com!news-out1.kabelfoon.nl!newsfeed.kabelfoon.nl!bandi.nntp.kabelfoon.nl!198.186.194.249.MISMATCH!transit3.readnews.com!news-xxxfer.readnews.com!transit4.readnews.com!news-out.readnews.com!postnews3.readnews.com!nr5-q1.newsreader.com.POSTED!not-for-mail
References: <gq0tnk$kp3$1@news.trigofacile.com> <877i2knd8m.fsf@windlord.stanford.edu> <gq10do$n5p$1@news.trigofacile.com> <87ab7fnbjk.fsf@windlord.stanford.edu> <gq18h4$un2$1@news.trigofacile.com> <87wsajk9lu.fsf@windlord.stanford.edu>

Show Full Headers
Complete Article Headers
Message-ID: <20090409142256.646$sI@newsreader.com>
Subject: Re: Questions about datastream answers (especially to TAKETHIS)
Date: Thu, 09 Apr 2009 18:22:54 +0000
From: curt@kcwc.com (Curt Welch)
References: <gq0tnk$kp3$1@news.trigofacile.com> <877i2knd8m.fsf@windlord.stanford.edu> <gq10do$n5p$1@news.trigofacile.com> <87ab7fnbjk.fsf@windlord.stanford.edu> <gq18h4$un2$1@news.trigofacile.com> <87wsajk9lu.fsf@windlord.stanford.edu>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.20141118.mbox.gz!border1.nntp.ams.giganews.com!border2.nntp.ams.giganews.com!nntp.giganews.com!news-out1.kabelfoon.nl!newsfeed.kabelfoon.nl!bandi.nntp.kabelfoon.nl!198.186.194.249.MISMATCH!transit3.readnews.com!news-xxxfer.readnews.com!transit4.readnews.com!news-out.readnews.com!postnews3.readnews.com!nr5-q1.newsreader.com.POSTED!not-for-mail
Organization: NewsReader.Com
Newsgroups: news.software.nntp
X-NRC-Trace: NewsReader.Com 5,h50xmMykqJ+Px.tkAVzsLNVpqU9Y4VV@5g_t6k9kJ+fd
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: 45
NNTP-Posting-Host: 27c8b0bd.nr5-q1.newsreader.com
X-Trace: DXC=4I7nE?Y@eW[n:DZ=<3bMH^bgZaH`e<A[YZ?:i9<JJBS^1gO>3COORV_iJ;
 iV2YAoGUEQk>; k`]RAQiBNBdb<62_Y
X-Complaints-To: abuse@newsreader.com
X-Original-Bytes: 3498