🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #82019

Re: Spaces in NNTP commands

#82019
From: Julien ÉLIE
Date: Sun, 18 Oct 2009 16:38
60 lines
3644 bytes
Hi Curt,

> I have no clue what the specs they have written on this recently say, but
> all NNTP servers I've used, or written, always ignored empty lines.

Oh, so you've never used INN?

[S] 200 news.ecp.fr InterNetNews server INN 2.4.3 (20050407 prerelease) ready
[C]
[C]
[S] 500 Syntax error or bad command

It moans after two empty lines.
Fixed in INN 2.5.2.


> I use
> NNTP servers as command shells interactively and I like my command servers
> to not bitch at me just because I hit return. :)

That's indeed better!
INN also allows commands terminated with "\n" instead of "\r\n" for the same
reason .


> The one exception I had to deal with for that is allowing spaces in message
> ids.

And not AUTHINFO USER/PASS?


> This was required for "TAKETHIS <bad id>".  If you rejected it as an
> invalid command, you break the protocol when the sending site follows that
> with a full article.  You want to correctly take the article from the peer
> and then correctly reject it.  If you don't do that, the peer just gets
> hung as it keeps trying to send the article to you again without
> understanding why it's getting 500 errors from your server - which means
> your feed from that peer might just hang until someone on the sending side
> manually takes the bad article out of the queue.

It is what the protocol says.  After TAKETHIS, the news server should wait
for "\r\n.\r\n" before answering.  A multi-line data block is included
after TAKETHIS.  So 500/501 errors MUST only be given after that data-block.
Or with pipelining, the answer could be sent just after having received
TAKETHIS, and all the multi-line data block is then discarded by the
news server (it does not answer again after it).

Note that, as we once discussed (<20090410161411.260$qR@newsreader.com>),
we do not know well whether 501 (syntax error) or 439 (unwanted article)
should be returned after a wrong TAKETHIS command...  501 according to
RFC 3977, 439 according to the behaviour of current software...

Still an issue.  To fix an "historic misbehaviour" or not to fix it...

-- 
Julien ÉLIE

« Quelle folie, Ô Astérix, que de t'être venu fourrer
  dans la gueule de la louve romaine. » (Astérix) 
Technical Details
Message-ID: <hbfgb5$oi2$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!multikabel.net!newsfeed20.multikabel.net!news2.euro.net!feeds.phibee-telecom.net!de-l.enfer-du-nord.net!gegeweb.org!news.trigofacile.com!not-for-mail
References: <hbdap8$7e8$1@news.trigofacile.com> <20091018102618.742$eW@newsreader.com>

Show Full Headers
Complete Article Headers
Message-ID: <hbfgb5$oi2$1@news.trigofacile.com>
Subject: Re: Spaces in NNTP commands
Date: Sun, 18 Oct 2009 18:38:57 +0200
From: Julien ÉLIE <iulius@nom-de-mon-site.com.invalid>
References: <hbdap8$7e8$1@news.trigofacile.com> <20091018102618.742$eW@newsreader.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!multikabel.net!newsfeed20.multikabel.net!news2.euro.net!feeds.phibee-telecom.net!de-l.enfer-du-nord.net!gegeweb.org!news.trigofacile.com!not-for-mail
Newsgroups: news.software.nntp
Organization: TrigoFACILE -- http://www.trigofacile.com/
Lines: 60
NNTP-Posting-Host: aaubervilliers-151-1-19-158.w83-114.abo.wanadoo.fr
Mime-Version: 1.0
Content-Type: text/plain; format=flowed; charset="Windows-1252";
 reply-type=original
Content-Transfer-Encoding: 8bit
X-Trace: news.trigofacile.com 1255883941 25154 83.114.138.158 (18 Oct 2009
X-Complaints-To: abuse@trigofacile.com
NNTP-Posting-Date: Sun, 18 Oct 2009 16:39:01 +0000 (UTC)
In-Reply-To: <20091018102618.742$eW@newsreader.com>
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Windows Mail 6.0.6001.18000
X-MimeOLE: Produced By Microsoft MimeOLE V6.0.6001.18049