🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #80421

Re: Questions about datastream answers (especially to TAKETHIS)

#80421
From: Julien ÉLIE
Date: Fri, 20 Mar 2009 21:03
59 lines
3608 bytes
Hi Russ,

>>   [C] TAKETHIS bad-mid
>>   [S] 501 Syntax error in message-ID
>>
>> Or should we wait for the final
>>   [C] .
>> and then send
>>   [S] 501 Syntax error in message-ID
>
> The response can be sent immediately, but we have to continue consuming
> lines from the client until we see a period on a line by itself because
> TAKETHIS immediately sends data and hence the data always has to be
> consumed even if the command is syntactically invalid.

OK, that's wise.


>> I also see that 403 is not a valid answer to TAKETHIS in case the server
>> does not want to accept or reject the article.  As a matter of fact:
>>
>>   The server MUST return either a 239 response, indicating that the
>>   article was successfully transferred, or a 439 response, indicating
>>   that the article was rejected.  If the server encounters a temporary
>>   error that prevents it from processing the article but does not want
>>   to reject the article, it MUST reply with a 400 response to the client
>>   and close the connection.
>
> Generally, the Generic Response Codes are always allowed in
> response to any command when they're appropriate.

OK.  I found out in RFC 3977:

   The server MUST respond to any command with the appropriate generic
   response (given in Section 3.2.1) if it represents the situation.
   Otherwise, each recognized command MUST return one of the response
   codes specifically listed in its description or in an extension.


> I don't see a reason why 403 wouldn't be fine if that represents the
> situation.

OK, though it is difficult to make a clear difference between a RFC 4644
"temporary error" which leads to answer 400 and close the connection
and a RFC 3977 "internal fault or problem that means it is unable to
carry out the command (for example, a necessary file is missing or
a necessary service could not be contacted)" which leads to answer
a mere 403.

I guess the question is more "do we need to close the connection"
than discussing the error.  (And it can be extended to other
commands, not only TAKETHIS.)

-- 
Julien ÉLIE

« -- Depuis quelque temps, Zérozérosix n'attire plus les mouches !
  -- Espérons qu'il ne nous attirera pas d'ennuis ! » (Astérix)
Technical Details
Message-ID: <gq10do$n5p$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>

Show Full Headers
Complete Article Headers
Message-ID: <gq10do$n5p$1@news.trigofacile.com>
Subject: Re: Questions about datastream answers (especially to TAKETHIS)
Date: Fri, 20 Mar 2009 22:03:37 +0100
From: Julien ÉLIE <iulius@nom-de-mon-site.com.invalid>
References: <gq0tnk$kp3$1@news.trigofacile.com> <877i2knd8m.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: 59
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 1237583096 23737 83.114.13.78 (20 Mar 2009
X-Complaints-To: abuse@trigofacile.com
NNTP-Posting-Date: Fri, 20 Mar 2009 21:04:56 +0000 (UTC)
In-Reply-To: <877i2knd8m.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