Article View: news.software.nntp
Article #79931Re: Initial greeting on mode-switching servers
From: Russ Allbery
Date: Wed, 24 Dec 2008 22:28
Date: Wed, 24 Dec 2008 22:28
42 lines
3155 bytes
3155 bytes
Julien ΓLIE <iulius@nom-de-mon-site.com.invalid> writes:
> According to RFC 3977, section 5.1.2, for the initial greeting:
>
> If the server will accept further commands from the client including
> POST, the server MUST present a 200 greeting code. If the server
> will accept further commands from the client, but the client is not
> authorized to post articles using the POST command, the server MUST
> present a 201 greeting code.
>
> According to RFC 3977, section 5.3.2, for the response to MODE READER:
>
> If the server is mode-switching, it switches from is transit mode to
> its reader mode, indicating this by changing the capability list
> accordingly. It MUST then return a 200 or 201 response with the same
> meaning as for the initial greeting (as described in Section 5.1.1).
> Note that the response need not be the same as that presented during
> the initial greeting.
>
> I understand that for a mode-switching server, we can receive 200 at the
> initial greeting, and 201 when switching to the reader mode.
> Is it right? Because section 5.1.2 states that the server MUST present
> a 201 greeting code if POST is not allowed, be it mode-switching or not.
>
> Therefore, during the same connection, we can receive both 200 and 201 (?).
I think this is a variation of a similar issue to the one that we
discussed earlier (although I can't find a reference for sure). If the
server isn't sure whether the client will be able to post or not, it has
to return 200. In the case of INN, this is true unless noreaders is set,
since innd has no idea what nnrpd may enforce in the way of permissions.
So I think innd has to return 201 if noreaders is set and 200 otherwise.
It remains to be seen if returning 201 will cause remote clients to think
that IHAVE is not permitted. I hope not. If so, we may have a deeper
problem.
--
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:
<87bpv12oo8.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!newsfeed.freenet.de!newshub.sdsu.edu!newsfeed.stanford.edu!news.stanford.edu!not-for-mailReferences:
<git6do$f2f$1@news.trigofacile.com>Show Full Headers
Complete Article Headers
Message-ID: <87bpv12oo8.fsf@windlord.stanford.edu> Subject: Re: Initial greeting on mode-switching servers Date: Wed, 24 Dec 2008 14:28:39 -0800 From: Russ Allbery <rra@stanford.edu> References: <git6do$f2f$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!newsfeed.freenet.de!newshub.sdsu.edu!newsfeed.stanford.edu!news.stanford.edu!not-for-mail Newsgroups: news.software.nntp Organization: The Eyrie Lines: 42 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 1230157719 24229 171.67.225.134 (24 Dec 2008 X-Complaints-To: news@news.stanford.edu User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.2 (gnu/linux) Cancel-Lock: sha1:iCUmVXKnTG8WjoDG8EKBkA/uF8M=