πŸš€ go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #79391

Re: 200 or 201 at initial connection?

#79391
From: Russ Allbery
Date: Sun, 31 Aug 2008 21:54
39 lines
2812 bytes
Julien Γ‰LIE <iulius@nom-de-mon-site.com.invalid> writes:

> Hi again,
>
>> May I suggest an improvement for the following example in section 5.3.3?
>
> For 6.2.1.2 too, regarding ARTICLE:
>
>   If the argument is a message-id and no such article exists, a 430
>   response MUST be returned.  If the argument is a number or is omitted
>   and the currently selected newsgroup is invalid, a 412 response MUST
>   be returned.  If the argument is a number and that article does not
>   exist in the currently selected newsgroup, a 423 response MUST be
>   returned.  If the argument is omitted and the current article number
>   is invalid, a 420 response MUST be returned.
>
> There is a race condition for the second and the fourth.  We MUST return
> two different codes :)  RFC 3977 does not mention that these sentences
> should match in order.
>
> I believe the fourth one lacks "in the currently selected newsgroup".

Yes, there are some precendence problems.  The intention, I think, is to
say:

    If (the argument is a number or is omitted) and the currently selected
    newsgroup is invalid, a 412 response MUST be returned.  If the
    currently selected newsgroup is valid but the current article number
    is invalid, a 420 response MUST be returned.

The most common reason for a 412 response is to issue ARTICLE with a
number before issuing any GROUP command.  420 is only used once a valid
current newsgroup has been established.

-- 
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: <874p50onpa.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.dca.giganews.com!nntp.giganews.com!newshub.sdsu.edu!headwall.stanford.edu!news.stanford.edu!not-for-mail
References: <g971md$r4v$1@news.trigofacile.com> <877ia0k58u.fsf@windlord.stanford.edu> <g9e16f$54a$1@news.trigofacile.com> <g9f2hn$vto$1@news.trigofacile.com>

Show Full Headers
Complete Article Headers
Message-ID: <874p50onpa.fsf@windlord.stanford.edu>
Subject: Re: 200 or 201 at initial connection?
Date: Sun, 31 Aug 2008 14:54:09 -0700
From: Russ Allbery <rra@stanford.edu>
References: <g971md$r4v$1@news.trigofacile.com> <877ia0k58u.fsf@windlord.stanford.edu> <g9e16f$54a$1@news.trigofacile.com> <g9f2hn$vto$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.dca.giganews.com!nntp.giganews.com!newshub.sdsu.edu!headwall.stanford.edu!news.stanford.edu!not-for-mail
Newsgroups: news.software.nntp
Organization: The Eyrie
Lines: 39
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 1220219649 18253 171.64.19.147 (31 Aug 2008
X-Complaints-To: news@news.stanford.edu
User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.2 (gnu/linux)
Cancel-Lock: sha1:/xnwFI+5HMkOLHjMvWiL65kzWDY=