πŸš€ go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #81136

Re: Have I to issue a GROUP command before POSTing?

#81136
From: Mateusz Viste
Date: Sat, 30 May 2009 11:23
128 lines
5476 bytes
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi!

Many thanks for your impressive analyse :-)
I didn't expected so much :-D

BasicNews is still buggy in some aspects, as it is the very first version so
far (v0.10). It will be better soon.

On Saturday 30 May 2009 00:23, Julien Γ‰LIE wrote:
> In case it helps...  Quickly glancing at your code:
> 
>             CASE "HEAD"   ' nnn or <msgid>
>               PRINT "501 Sorry, not implemented yet..." + CRLF; ' WRITE
>               ME!
> 
> Be careful it is not 501 to send (syntax error on a recognized command,
> for instance "HEAD 1a2" or "HEAD msg-id-without-brackets" or
> "HEAD <msg-id-with-300-octets>").  Here, it would be 500.

Yes, you are right. The RFC 3977 is quite explicit about that:
"501 MUST be used when the base command is implemented
   but the requested variant is not, and 500 MUST be used only when the
   base command itself is not implemented."

I probably done it the wrong way, as it is a highly beta version, and those
commands will be supported in the next version anyway...

>             CASE "XOVER", "OVER"
>               Xover(LastCommand(2))
> 
> Be careful XOVER and OVER are not the same commands.

Again, you're right... I though that RFC 3977 simply took OVER from the
XOVER specification (RFC 2980), but indeed, I see now that XOVER works only
on ranges, while OVER may also take a MsgID as a parameter... I will fix
that.

> GROUP fr.test
> 211 7501 1760 10030 fr.test
> OVER 1
> 423 No articles in 1
> XOVER 1
> 224 No articles in 1
> .

Seems wrong there..
RFC 2980 states that: "If no articles are in the range specified, a 420
error response is returned by the server." (about the XOVER command).

>   PRINT "101 Capability list:" + CRLF;
>   PRINT "VERSION 2" + CRLF;
>   PRINT "READER" + CRLF;
>   PRINT "LIST ACTIVE NEWSGROUPS OVERVIEW.FMT" + CRLF;
>   PRINT "OVER" + CRLF;
>   PRINT "." + CRLF;
> 
> No "POST"?  (when WriteAccess = 1)

I though about that, but I found no mention in any RFC, telling that "POST"
may be advertised, so I assumed that advertising "READER" is implicitly
telling that the POST command is supported...
Do you have any sources which would indicate POST as a valid advertisment?

> And "AUTHINFO USER", in case you wish to advertise it?

Good idea! I missed that one :)

>   PRINT "502 Authentication rejected."
> 
> Not a valid answer.  It must be 481 (see RFC 4643).  

Ooops, yet another bug!

> GROUP is not required and 412 is not a valid answer to POST!

Argh, now I now that. I was sure that there must be a group selected before
POST, my fault. So okay, I will always respond to POST with a 340 (unless
the whole server is read-only), and then I will check what are the
destination groups...

> By the way, there is "dot-stuffing" to handle (maybe you already takes
> care of that but better warn you):

Yeah, I do know about that, but as far as I understand, I doesn't have to
care about that (dot-stuffing is done by the sending NewsReader, and
dot-unstuffing is done by the receiving NewsReader). Am I right?

> 340 :)
> He sends his article and you see afterwards.

Yup. Understood.

> Incidentally, I have a question which will show you why GROUP is not
> required: ** how do you handle crossposts? :) **

Ah, good question. It doesn't came to my mind, but indeed - it explain much
things... :)

>> S: 200 Welcome to the BasicNews Server!
>> C: MODE READER
>> S: 200 Reader mode, posting permitted.
>> C: POST
>> S: 412 No newsgroup selected.
> 
> You shouldn't have answered 412.

Thank you for your help! I will fix my server and release a (hopefully)
better version soon. :-)

Best regards,
Mateusz Viste
- -- 
You'll find my public OpenPGP key at
http://www.viste-family.net/mateusz/pub_key
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.9 (GNU/Linux)

iQEcBAEBAgAGBQJKIRdVAAoJEC30Ty9xnkvbVM8IAKtPq4JGp/7E3PQmVRZykx0I
lSHKxhqdnilfUliDYTdnjasHcymzCevE3MDeTJSB0W5MrBfl6igU/cIpN2NQpoJR
kJm0K6XpIkhrXc3AQYFV2BI6S7a50Lo6Al2+UKfeX4NpyKH1yQ0EMrbfFCZK7Uzl
OEbl/RSXUiST9P6U5n6ei0/mo66cwR8N+MeyL8tkCj7U4LedpBwvMDFTw8W2yZY1
y0poNsBg/TsbE7iPwHBYPK8pvUpn6austZDRSGJdX3Ne9Wzx4eYt28MGsG5ue1k2
qZb699AK83TIQ2Yep+5r4H2jEehuskqlco0Z686toIiIE4DVyMXrtDpqcQCGTok=
=O66w
-----END PGP SIGNATURE-----
Technical Details
Message-ID: <4kh7f6-g24.ln1@mail.viste-family.net>
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!newsfeed01.sul.t-online.de!t-online.de!newsfeed.straub-nv.de!proxad.net!feeder1-2.proxad.net!cleanfeed1-a.proxad.net!nnrp5-2.free.fr!not-for-mail
References: <3l06f6-ji1.ln1@mail.viste-family.net> <gvpn99$37q$1@news.trigofacile.com>

Show Full Headers
Complete Article Headers
Message-ID: <4kh7f6-g24.ln1@mail.viste-family.net>
Subject: Re: Have I to issue a GROUP command before POSTing?
Date: Sat, 30 May 2009 13:23:58 +0200
From: Mateusz Viste <mateusz@NoSpamForMe.invalid>
References: <3l06f6-ji1.ln1@mail.viste-family.net> <gvpn99$37q$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!newsfeed01.sul.t-online.de!t-online.de!newsfeed.straub-nv.de!proxad.net!feeder1-2.proxad.net!cleanfeed1-a.proxad.net!nnrp5-2.free.fr!not-for-mail
Newsgroups: news.software.nntp
User-Agent: KNode/0.10.9
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8Bit
Lines: 128
Organization: Guest of ProXad - France
NNTP-Posting-Date: 30 May 2009 13:25:04 MEST
NNTP-Posting-Host: 82.225.72.113
X-Trace: 1243682704 news-1.free.fr 10865 82.225.72.113:56877
X-Complaints-To: abuse@proxad.net