Article View: news.software.nntp
Article #79327Re: Questions about MODE
From: Julien ÉLIE
Date: Sat, 23 Aug 2008 21:42
Date: Sat, 23 Aug 2008 21:42
55 lines
3261 bytes
3261 bytes
>>> So "MODE" and "MODE BADMODE" must return 500, mustn't they? (And not
>>> 501.)
>>
>> That's the way that I'd implement it. In retrospect, MODE probably
>> should have been a base command, but we didn't write it that way.
>
> All right, we have the same reading of the specification then :)
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
:(
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".
--
Julien ÉLIE
« Sum, ergo bibo ; bibo, ergo sum. »
Technical Details
Message-ID:
<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!newsfeed00.sul.t-online.de!t-online.de!news.albasani.net!news.trigofacile.com!not-for-mailReferences:
<g8ovaf$155$1@news.trigofacile.com> <87tzdby6d6.fsf@windlord.stanford.edu> <g8pkqk$1t7$1@news.trigofacile.com>Show Full Headers
Complete Article Headers
Message-ID: <g8q093$lks$1@news.trigofacile.com> Subject: Re: Questions about MODE Date: Sat, 23 Aug 2008 23:42:58 +0200 From: Julien ÉLIE <iulius@nom-de-mon-site.com.invalid> References: <g8ovaf$155$1@news.trigofacile.com> <87tzdby6d6.fsf@windlord.stanford.edu> <g8pkqk$1t7$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!newsfeed00.sul.t-online.de!t-online.de!news.albasani.net!news.trigofacile.com!not-for-mail Newsgroups: news.software.nntp Organization: TrigoFACILE -- http://www.trigofacile.com/ Lines: 55 NNTP-Posting-Host: aaubervilliers-151-1-21-55.w83-114.abo.wanadoo.fr Mime-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=response Content-Transfer-Encoding: 8bit X-Trace: news.trigofacile.com 1219527780 22172 83.114.140.55 (23 Aug 2008 X-Complaints-To: abuse@trigofacile.com NNTP-Posting-Date: Sat, 23 Aug 2008 21:43:00 +0000 (UTC) In-Reply-To: <g8pkqk$1t7$1@news.trigofacile.com> X-MSMail-Priority: Normal X-Newsreader: Microsoft Windows Mail 6.0.6001.18000 X-MimeOLE: Produced By Microsoft MimeOLE V6.0.6001.18049