🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #79316

Re: Questions about MODE

#79316
From: Julien ÉLIE
Date: Sat, 23 Aug 2008 18:27
79 lines
4310 bytes
Hi Russ,

>> I wonder why there is only "MODE READER" and not a "MODE" command.
>> Because "MODE TRANSIT" could have also been specified (why not be
>> symmetric?).
>
> It could have, but all of the news servers that implement MODE READER
> couldn't actually do the thing that MODE TRANSIT would indicate they
> should do.  You can't go back from nnrpd to innd.

"*All* of the news servers"?  Strange.
So it is a limitation design.


>> Is it mentioned that "MODE" is a base command in the RFC?
>> According to what I understand, "MODE READER" is the base command.
>
> Hm.  That's sort of an odd wart, isn't it?

Well...  I had to look up in my dictionary to understand "wart" :)
Indeed, I think that MODE READER is a base command according to the RFC 3977
and the problem is that MODE STREAM is another base command...
So their handling is trickier than other base commands!


>> 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 :)


>> The extension "STREAMING" (available with "MODE STREAM") states that 401
>> must not be returned for commands called while not in streaming mode.
>
> That's because the intention of RFC 4644 is to get rid of the entire
> concept of "streaming mode."  Servers should not be modal, and MODE STREAM
> should not be required to use streaming commands.  Instead, the commands
> should simply be supported and advertised in CAPABILITIES if they're
> available.  MODE STREAM is supported only for backward compatibility.

Thanks for the explanation.  It makes it clearer in my mind.


>>    POST <test@test>
>>    401 MODE-READER
>
> 502 is the correct return code if MODE READER is not available (innd
> running in noreaders mode).  If MODE READER is available, 401 is the
> correct response as you mention above.

The problem is that I read:

 401: The client must change the state of the connection in some other
      manner.  The first argument of the response MUST be the capability
      label (see Section 5.2) of the facility that provides the
      necessary mechanism (usually an extension, which may be a private
      extension).  The server MUST NOT use this response code except as
      specified by the definition of the capability in question.


But I do not find in the definition of the MODE-READER capability that
401 should be used...  Maybe I missed something...

In RFC 4644, it is clear for STREAMING:

   o  The extension does not cause any pre-existing command to produce a
      401, 480, or 483 response.

But for MODE-READER...

-- 
Julien ÉLIE

« You know it's love when all you want is that person to be happy;
  even if you're not part of their happiness. »
Technical Details
Message-ID: <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!club-internet.fr!feedme-small.clubint.net!usenet-fr.net!gegeweb.org!news.trigofacile.com!not-for-mail
References: <g8ovaf$155$1@news.trigofacile.com> <87tzdby6d6.fsf@windlord.stanford.edu>

Show Full Headers
Complete Article Headers
Message-ID: <g8pkqk$1t7$1@news.trigofacile.com>
Subject: Re: Questions about MODE
Date: Sat, 23 Aug 2008 20:27:32 +0200
From: Julien ÉLIE <iulius@nom-de-mon-site.com.invalid>
References: <g8ovaf$155$1@news.trigofacile.com> <87tzdby6d6.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!newsfeed00.sul.t-online.de!t-online.de!club-internet.fr!feedme-small.clubint.net!usenet-fr.net!gegeweb.org!news.trigofacile.com!not-for-mail
Newsgroups: news.software.nntp
Organization: TrigoFACILE -- http://www.trigofacile.com/
Lines: 79
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=original
Content-Transfer-Encoding: 8bit
X-Trace: news.trigofacile.com 1219516053 1959 83.114.140.55 (23 Aug 2008
X-Complaints-To: abuse@trigofacile.com
NNTP-Posting-Date: Sat, 23 Aug 2008 18:27:33 +0000 (UTC)
In-Reply-To: <87tzdby6d6.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