🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #80427

Re: Questions about datastream answers (especially to TAKETHIS)

#80427
From: Julien ÉLIE
Date: Sat, 21 Mar 2009 08:03
90 lines
4502 bytes
Hi Russ,

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

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.

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?
The protocol does not allow that (no problem to POST them, but
IHAVE/TAKETHIS cannot propagate them).



> You can always send 400 replies.  I'm not sure if I'd send 501 or 400 for
> this -- although the risk of sending 400 and closing the connection is
> that the client will keep retrying the same bad message ID.  (That's the
> reason why you don't want to use 400 for any problem with the article
> itself, only for more general system problems.)

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



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

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?

-- 
Julien ÉLIE

« Les femmes forment un sexe purement décoratif. Elles n'ont jamais rien
  à dire, mais elles le disent d'une facon charmante. »
  (Oscar Wilde, _The Picture of Dorian Gray_, IV) 
Technical Details
Message-ID: <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!nntp.giganews.com!de-l.enfer-du-nord.net!gegeweb.org!news.trigofacile.com!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: <gq273p$s8o$1@news.trigofacile.com>
Subject: Re: Questions about datastream answers (especially to TAKETHIS)
Date: Sat, 21 Mar 2009 09:03:53 +0100
From: Julien ÉLIE <iulius@nom-de-mon-site.com.invalid>
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!nntp.giganews.com!de-l.enfer-du-nord.net!gegeweb.org!news.trigofacile.com!not-for-mail
Newsgroups: news.software.nntp
Organization: TrigoFACILE -- http://www.trigofacile.com/
Lines: 90
NNTP-Posting-Host: aaubervilliers-151-1-14-78.w83-114.abo.wanadoo.fr
Mime-Version: 1.0
Content-Type: text/plain; format=flowed; charset="iso-8859-1";
 reply-type=original
Content-Transfer-Encoding: 8bit
X-Trace: news.trigofacile.com 1237622714 28952 83.114.13.78 (21 Mar 2009
X-Complaints-To: abuse@trigofacile.com
NNTP-Posting-Date: Sat, 21 Mar 2009 08:05:14 +0000 (UTC)
In-Reply-To: <87wsajk9lu.fsf@windlord.stanford.edu>
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Windows Mail 6.0.6001.18000
X-MimeOLE: Produced By Microsoft MimeOLE V6.0.6001.18049