Article View: news.software.nntp
Article #81128Re: Have I to issue a GROUP command before POSTing?
From: Antti-Juhani Kaijanaho
Date: Sat, 30 May 2009 08:22
Date: Sat, 30 May 2009 08:22
26 lines
2288 bytes
2288 bytes
Mateusz Viste kirjoitti: > On the other hand, it seems weird to me, because: If my server holds two > groups, one called X, which is read-only, and the second called Y, which is > read-write, how could I possibly know what I have to answer to a client > which tries to POST without specifying the group first? You check if the connection has posting authority in general, and issue your response to POST based on that. If you give the client the leave to post, you then have to receive the post and do the usual injection checks (see the soon-to-be-RFC draft-ietf-usefor-usepro for what checks are expected), including checking that it does not violate local policy (eg. post to a read-only group). You decide whether to accept or reject based on *these* checks. > Of course, I could answer "Ok, give me your stuff", receive the message, > check the Newsgroups header, and then answer with an error if he tried to > post to the read-only group, but such behavior seems tricky to me... There is no trickiness - it is what you'll have to do anyway. There is no requirement that a POST be directed to the currently selected group even if a group is selected, and, like Julien says, how else do you handle crossposts? -- Mr. Antti-Juhani Kaijanaho, Jyväskylä, Finland
Technical Details
Message-ID:
<78c8n1F1l7m6tU1@mid.individual.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.ams.giganews.com!nntp.giganews.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mailReferences:
<3l06f6-ji1.ln1@mail.viste-family.net>Show Full Headers
Complete Article Headers
Message-ID: <78c8n1F1l7m6tU1@mid.individual.net> Subject: Re: Have I to issue a GROUP command before POSTing? Date: Sat, 30 May 2009 11:22:56 +0300 From: Antti-Juhani Kaijanaho <antti-juhani@kaijanaho.fi> References: <3l06f6-ji1.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.ams.giganews.com!nntp.giganews.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail Newsgroups: news.software.nntp Lines: 26 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Trace: individual.net myKqstNfIhk4nLWgOsEcngYfVrDUtY1IkfbpbwFX05eFdv7mUX Cancel-Lock: sha1:YHhQmuppTNBbq+uDhDrZMfTTN2M= User-Agent: Mozilla-Thunderbird 2.0.0.19 (X11/20090103) In-Reply-To: <3l06f6-ji1.ln1@mail.viste-family.net>