πŸš€ go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #89847

Re: Generic 403 NNTP response code for TAKETHIS

#89847
From: Russ Allbery
Date: Mon, 12 Dec 2022 23:53
58 lines
3322 bytes
Julien Γ‰LIE <iulius@nom-de-mon-site.com.invalid> writes:

> Contrary to IHAVE, for which the 436 response code can be sent to defer an
> article (retry later), TAKETHIS does not have such a response code.

> From RFC 4644:

>    Responses
>       239 message-id   Article transferred OK
>       439 message-id   Transfer rejected; do not retry

>    The server MUST return either a 239 response,
>    indicating that the article was successfully transferred, or a 439
>    response, indicating that the article was rejected.  If the server
>    encounters a temporary error that prevents it from processing the
>    article but does not want to reject the article, it MUST reply with a
>    400 response to the client and close the connection.

> Yet, RFC 3977 defines a generic response code (403) for temporary internal
> problems, as we can see in the example:

>    Example of a temporary failure:

>       [C] GROUP archive.local
>       [S] 403 Archive server temporarily offline

> Is the generic code 403 really not allowed for temporary errors in
> TAKETHIS?  (It seems to be the case when reading that explicit behaviour
> to use the 400 generic code.)

Yeah, I think that's the intent.  I don't remember why, though.  I wonder
if someone tested with 403 and found it didn't work or something.

At the time, we probably couldn't imagine a situation where storing the
article fails but storing the next article is likely to succeed, so 400
and closing the connection felt pretty reasonable.

> FWIW, one of the case that can trigger the "can't store article" in innd
> is when INT_MAX is reached.  The 403 (or 400) code should really be 439
> in this specific case because it is not a temporary failure.

Yes, and indeed I think 403 or 400 would be wrong here, because the peer
would be entitled to just keep resending the same article, and it's never
going to succeed.

> Same thing for IHAVE which should answer 437 (reject) instead of defer
> (436) in this case.  We would otherwise end up with an infinite loop
> where the article is stuck and kept being proposed even though the
> maximum article number has been reached and INN won't be able to store
> more articles in the newsgroup.  (A log is also present in news.notice.)

Yup, exactly.

-- 
Russ Allbery (eagle@eyrie.org)             <https://www.eyrie.org/~eagle/>

          Please post questions rather than mailing me directly.
     <https://www.eyrie.org/~eagle/faqs/questions.html> explains why.
Technical Details
Message-ID: <877cyw5gca.fsf@hope.eyrie.org>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!apf1.newsdeef.eu!not-for-mail
References: <tn8ak2$2pnad$3@news.trigofacile.com>

Show Full Headers
Complete Article Headers
Message-ID: <877cyw5gca.fsf@hope.eyrie.org>
Subject: Re: Generic 403 NNTP response code for TAKETHIS
Date: Mon, 12 Dec 2022 15:53:41 -0800
From: Russ Allbery <eagle@eyrie.org>
References: <tn8ak2$2pnad$3@news.trigofacile.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!apf1.newsdeef.eu!not-for-mail
Newsgroups: news.software.nntp
Organization: The Eyrie
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
Injection-Info: hope.eyrie.org; logging-data="12875"; mail-complaints-to="news@eyrie.org"
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux)
Cancel-Lock: sha1:TZVrh/ex0msS6jiPXOp9II+RprA=