πŸš€ go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #80425

Re: Questions about datastream answers (especially to TAKETHIS)

#80425
From: Russ Allbery
Date: Sat, 21 Mar 2009 00:22
54 lines
3405 bytes
Julien Γ‰LIE <iulius@nom-de-mon-site.com.invalid> writes:

> Oh hmm...  If that's so, should we really send 501 to:
>
>   [C] TAKETHIS bad-mid and/or four arguments
>   [C] From: ...
>   [C] (with a valid article)
>   [C] .
>
> We will get desynchronized the same way.
> If 501 can be sent in that case, so does 403...

I think we didn't discuss this in the working group since this case is so
much less common.  In this case, the TAKETHIS client is actually broken,
so who knows what horrible thing it's going to do.  We don't have as good
of a chance of doing the right thing.

You can always send 400 replies.  I'm not sure if I'd send 501 or 400 for
this -- although the risk of sending 400 and closing the connection is
that the client will keep retrying the same bad message ID.  (That's the
reason why you don't want to use 400 for any problem with the article
itself, only for more general system problems.)

> The same goes for CHECK:
>
>   [C] CHECK <good@mid>
>   [C] CHECK bad-mid
>   [C] CHECK <another@good-mid>
>
>   [S] 238 <good@mid>
>   [S] 501 Syntax error in message-ID
>   [S] 238 <good@mid>
>
> The client will not know what it should do with "bad-id".  Besides, it
> may (but should not) keep sending CHECK in an endless loop for
> "bad-id"...

Yeah.  This is kind of nasty, and there isn't a good solution for it.

> OK.  But it would be the same if, for instance, a client is not allowed
> to send articles to "private.group"; we should answer 480 to TAKETHIS if
> the newsgroup the article is sent to is "private.group".  Or if
> encryption is needed for that group, 483.  Other *unlikely* scenarii
> could not happen with that design.

Agreed.  I'm not sure what the right thing to do is.  Really, ideally,
every reply to TAKETHIS or CHECK should include the message ID, but that's
not how the protocol currently works.

-- 
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: <87wsajk9lu.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!border2.nntp.ams.giganews.com!nntp.giganews.com!feeder.news-service.com!postnews.google.com!news2.google.com!newsfeed.stanford.edu!news.stanford.edu!not-for-mail
References: <gq0tnk$kp3$1@news.trigofacile.com> <877i2knd8m.fsf@windlord.stanford.edu> <gq10do$n5p$1@news.trigofacile.com> <87ab7fnbjk.fsf@windlord.stanford.edu> <gq18h4$un2$1@news.trigofacile.com>

Show Full Headers
Complete Article Headers
Message-ID: <87wsajk9lu.fsf@windlord.stanford.edu>
Subject: Re: Questions about datastream answers (especially to TAKETHIS)
Date: Fri, 20 Mar 2009 17:22:53 -0700
From: Russ Allbery <rra@stanford.edu>
References: <gq0tnk$kp3$1@news.trigofacile.com> <877i2knd8m.fsf@windlord.stanford.edu> <gq10do$n5p$1@news.trigofacile.com> <87ab7fnbjk.fsf@windlord.stanford.edu> <gq18h4$un2$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!border2.nntp.ams.giganews.com!nntp.giganews.com!feeder.news-service.com!postnews.google.com!news2.google.com!newsfeed.stanford.edu!news.stanford.edu!not-for-mail
Newsgroups: news.software.nntp
Organization: The Eyrie
Lines: 54
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 1237594973 959 171.67.225.134 (21 Mar 2009 00:22:53
 GMT)
X-Complaints-To: news@news.stanford.edu
User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.2 (gnu/linux)
Cancel-Lock: sha1:QEkNKn5cYqERKlMa2CNIspoai5g=
X-Original-Bytes: 3128