πŸš€ go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #80431

Re: Questions about datastream answers (especially to TAKETHIS)

#80431
From: Russ Allbery
Date: Sat, 21 Mar 2009 20:43
89 lines
4588 bytes
Julien Γ‰LIE <iulius@nom-de-mon-site.com.invalid> writes:

> INN 2.4.6/2.5.0-RC1 currently does:
>
>   [C] CHECK bad-mid and/or four arguments
>   [S] 438 bad-mid and/or four arguments
>
> (There is no 501 on CHECK or TAKETHIS.  Only rejects by INN.)
>
> But ABNF says it is "CHECK" WS message-id, and not a byte string until
> the end of the line.  So it is not following RFC 4644.

Right.

> The CHECK/TAKETHIS client is not necessarily all broken:  it could send
> a message-ID whose length is 300 (> 250).  How are such articles
> supposed to be propagated?

They're not.  Such messages are invalid Usenet messages.  USEFOR restricts
the length of the Message-ID field to 250 octets.

In practice, it's not much of a problem.  We saw a few messages like that
which sparked the original discussion, but I think they were spam or other
weird cases, not people generating such message IDs for some real purpose.

> Understood.  No 400 here.
> Thus:
>
>   [C] TAKETHIS
>   [C] (with article afterwards...)
>   [C] TAKETHIS bad-mid
>   [C] TAKETHIS a b c
>   [S] 439
>   [S] 439 bad-mid
>   [S] 439 a b c
>
> Such answers are not RFC-compliant (not 501, and 439 not followed
> by a message-ID) but are maybe the best thing to do.

Yeah, I guess I'd lean towards doing this because it's the least likely to
confuse the other side, although all options here are kind of eh.  I
wouldn't argue with someone who felt 501 was the right reply.

> I only see a clear 438/439 reject response for the client not to loop
> when the syntax used is not accepted.  But such a behaviour is
> documented nowhere.

Yup.

>> Agreed.  I'm not sure what the right thing to do is.  Really, ideally,
>> every reply to TAKETHIS or CHECK should include the message ID, but
>> that's not how the protocol currently works.
>
> You mean the byte string passed after CHECK/TAKETHIS then.

Right.

> And we would do:
>
>   [C] TAKETHIS
>   [C] (with article afterwards...)
>   [C] TAKETHIS bad-mid
>   [C] TAKETHIS a b c
>   [S] 501
>   [S] 501 bad-mid
>   [S] 501 a b c
>
> The advantage is that these answers are RFC 3977-compliant (501, with a
> valid response argument).  But I doubt that implementations are properly
> handling the arguments of 501 after CHECK/TAKETHIS.  The same goes for
> 400, 403, etc.

Oh, yeah, I'm sure they don't.

> The solution you suggest is the cleanest thing to do and complies with
> RFCs.  The only issue is that it is not documented ("501 bad-mid" is
> both not forbidden and not mentioned).
>
> Should we go on that way?

It makes me a little uneasy, since 501 is really the correct response, but
I can see the justification for it.  I wonder if anyone else has an
opinion on what should be done in this corner case.

-- 
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.
Technical Details
Message-ID: <87k56iip3i.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!feeder2.cambriumusenet.nl!feed.tweaknews.nl!209.197.12.242.MISMATCH!nx01.iad.newshosting.com!newshosting.com!69.16.185.11.MISMATCH!npeer01.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!cyclone1.gnilink.net!gnilink.net!newsfeed.news2me.com!headwall.stanford.edu!news.stanford.edu!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> <gq273p$s8o$1@news.trigofacile.com>

Show Full Headers
Complete Article Headers
Message-ID: <87k56iip3i.fsf@windlord.stanford.edu>
Subject: Re: Questions about datastream answers (especially to TAKETHIS)
Date: Sat, 21 Mar 2009 13:43:29 -0700
From: Russ Allbery <rra@stanford.edu>
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> <gq273p$s8o$1@news.trigofacile.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!feeder2.cambriumusenet.nl!feed.tweaknews.nl!209.197.12.242.MISMATCH!nx01.iad.newshosting.com!newshosting.com!69.16.185.11.MISMATCH!npeer01.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!cyclone1.gnilink.net!gnilink.net!newsfeed.news2me.com!headwall.stanford.edu!news.stanford.edu!not-for-mail
Newsgroups: news.software.nntp
Organization: The Eyrie
Lines: 89
NNTP-Posting-Host: windlord.stanford.edu
Mime-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit
X-Trace: news.stanford.edu 1237668209 8072 171.67.225.134 (21 Mar 2009
X-Complaints-To: news@news.stanford.edu
User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.2 (gnu/linux)
Cancel-Lock: sha1:mR6AZYnk8IlpIJkPSqB/9YE78qw=
X-Original-Bytes: 4327