πŸš€ go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #79329

Re: Questions about MODE

#79329
From: Russ Allbery
Date: Sat, 23 Aug 2008 22:22
54 lines
3235 bytes
Julien Γ‰LIE <iulius@nom-de-mon-site.com.invalid> writes:

> RFC 4644:
>
>   Example of a client checking the ability to stream articles on a
>   server which does not support this extension:
>
>      [C] MODE STREAM
>      [S] 501 Unknown MODE variant
>
> :(

Heh.  Great.

> It looks as though we were both wrong...  After reading thoroughly again
> the introduction of the RFC 3977, I found out:
>
>   Commands in NNTP MUST consist of a keyword, which MAY be followed by one or
>   more arguments. Keywords and arguments MUST each be separated by
>   one or more space or TAB characters.
>
>   Commands may have variants; if so, they use a second keyword
>   immediately after the first to indicate which variant is required.
>   The only such commands in this specification are LIST and MODE.  Note
>   that such variants are sometimes referred to as if they were commands
>   in their own right: "the LIST ACTIVE" command should be read as
>   shorthand for "the ACTIVE variant of the LIST command".
>
> However, it is not very clear because of the syntax which then defines
> mode-reader-command (and not mode-command):
>
>     list-command = "LIST" [WS list-arguments]
>     list-arguments = keyword [WS token]
>     mode-reader-command = "MODE" WS "READER"
>
> LIST is obviously allowed.
> And MODE seems to be a real command, according to that unique sentence
> in the while RFC...  But not allowed by the syntax.
>
> Consequently, maybe MODE and MODE BADMODE must return 501
> because 500 is for an "unknown command" (and MODE seems to be a command)
> whereas 501 is for a "syntax error in the command".

I think this is a case where the specification is really just
inconsistent.  It's probably more consistent to call MODE a base command
and use 501, particularly since that's the example in the streaming RFC.

I should start an errata page for RFC 3977.

-- 
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: <87abf3v0b3.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: <g8ovaf$155$1@news.trigofacile.com> <87tzdby6d6.fsf@windlord.stanford.edu> <g8pkqk$1t7$1@news.trigofacile.com> <g8q093$lks$1@news.trigofacile.com>

Show Full Headers
Complete Article Headers
Message-ID: <87abf3v0b3.fsf@windlord.stanford.edu>
Subject: Re: Questions about MODE
Date: Sat, 23 Aug 2008 15:22:40 -0700
From: Russ Allbery <rra@stanford.edu>
References: <g8ovaf$155$1@news.trigofacile.com> <87tzdby6d6.fsf@windlord.stanford.edu> <g8pkqk$1t7$1@news.trigofacile.com> <g8q093$lks$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: 54
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 1219530160 19953 171.64.19.147 (23 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:XEDsQqLqB++XqTh8njFbLZNe4AA=