🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #66901

Re: New NNTP draft -- Section 5

#66901
From: Graham Drabble
Date: Mon, 20 Oct 2003 23:33
75 lines
3974 bytes
On 20 Oct 2003 Russ Allbery <rra@stanford.edu> wrote in
news:87ptgredpn.fsf@windlord.stanford.edu: 

> Graham Drabble <graham.drabble@lineone.net> writes:
>> Russ Allbery <rra@stanford.edu> wrote:
> 
>>> You have to send 200 in that case; if you send 201, some clients
>>> will decide the connection is permanently read-only and refuse
>>> to ever try POST.
> 
>> Conversly if you try 200 then clients will try POST and if it
>> fails not think about authenticating. After all the client has
>> been told that posting is allowed.
> 
> No, that's not a problem.  POST will return 480, which will tell
> the client that it has to authenticate.

6.3.1 POST

6.3.1.1 Usage

   This command MUST NOT be pipelined.

   Syntax
      POST

   Responses

      Initial responses
         340   Send article to be posted
         440   Posting not permitted

No mention of 480 there. At that point it is either allowed or not.

 
>> I'm not sure what problems it would cause, especially if you
>> reversed 201 and 202 above. What would clients do now if they
>> received a 202? 
> 
> They could believe that the server is broken and abort the
> connection entirely.  I'm worried about how many people may have
> written code like: 
> 
>     if (code == 200)
>         continue_post();
>     else if (code == 201)
>         continue_nopost();
>     else
>         die_horribly();
> 
> Sure, the standard says you should proceed based on the first
> character, but it's actually somewhat harder to write code that
> works that way. 

I'm surprised at that. Either /^2/ or substr(code,0,1) == 2 (or the 
equivelent syntax for other languages) would seem to cover it (I 
assume most people treat it as a text string of numbers rather than 
as numeric data, if not then a simple code >=200 && <300 is standards 
compliant).

It would be interesting to know what clients actually do on receipt 
of such as response.

Also going back to the original 200/201 response, what do servers 
currently do and whether there are actually clients that have a 
problem with either. The readfreenews servers (diablo) respond 201 
and I've not heard of any problems. news.individual.net responds 200. 
201 feels right to me as, at the time of it being issued, posting is 
not allowed.

-- 
Graham Drabble
If you're interested in what goes on in other groups or want to find 
an interesting group to read then check news.groups.reviews for what 
others have to say or contribute a review for others to read.
Technical Details
Message-ID: <Xns941B5A6B14E1grahamdrabblelineone@ID-77355.user.dfncis.de>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.20140818.mbox.gz!news5.aus1.giganews.com!firehose2!nntp4!intern1.nntp.aus1.giganews.com!border1.nntp.aus1.giganews.com!nntp.giganews.com!feed2.newsreader.com!newsreader.com!zeus.visi.com!news-out.visi.com!green.readfreenews.net!news.readfreenews.net!authen.puce.readfreenews.net.POSTED!not-for-mail
References: <87fzhryxdc.fsf@windlord.stanford.edu> <871xta1bbb.fsf@windlord.stanford.edu> <874qy3hnhl.fsf_-_@windlord.stanford.edu> <Xns941AB877861BAgrahamdrabblelineone@ID-77355.user.dfncis.de> <87ekx7g6tb.fsf@windlord.stanford.edu> <Xns941AE6F6CF380grahamdrabblelineone@ID-77355.user.dfncis.de> <87ptgredpn.fsf@windlord.stanford.edu>

Show Full Headers
Complete Article Headers
Message-ID: <Xns941B5A6B14E1grahamdrabblelineone@ID-77355.user.dfncis.de>
Subject: Re: New NNTP draft -- Section 5
Date: Tue, 21 Oct 2003 00:33:19 +0100
From: Graham Drabble <graham.drabble@lineone.net>
References: <87fzhryxdc.fsf@windlord.stanford.edu> <871xta1bbb.fsf@windlord.stanford.edu> <874qy3hnhl.fsf_-_@windlord.stanford.edu> <Xns941AB877861BAgrahamdrabblelineone@ID-77355.user.dfncis.de> <87ekx7g6tb.fsf@windlord.stanford.edu> <Xns941AE6F6CF380grahamdrabblelineone@ID-77355.user.dfncis.de> <87ptgredpn.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.20140818.mbox.gz!news5.aus1.giganews.com!firehose2!nntp4!intern1.nntp.aus1.giganews.com!border1.nntp.aus1.giganews.com!nntp.giganews.com!feed2.newsreader.com!newsreader.com!zeus.visi.com!news-out.visi.com!green.readfreenews.net!news.readfreenews.net!authen.puce.readfreenews.net.POSTED!not-for-mail
Newsgroups: news.software.nntp
Organization: Home
User-Agent: Xnews/5.04.25 Hamster/2.0.2.1
Lines: 75
NNTP-Posting-Date: 20 Oct 2003 18:32:12 CDT
NNTP-Posting-Host: fd5a109c.authen.puce.readfreenews.net
X-Trace: DXC=dZDj3gbPVY49[bS5X\d3E60TEf1TMUA>8DdA=iLI<Fm;
 K3Si49H_iE6GE<7oB?[f70m=iPA]AfoT?iO0@J2TEGo3`; O=<L1e:c8
X-Complaints-To: abuse@readfreenews.com