Article View: news.software.nntp
Article #89849Generic 403 NNTP response code for TAKETHIS
From: Julien ÉLIE
Date: Mon, 12 Dec 2022 22:40
Date: Mon, 12 Dec 2022 22:40
68 lines
3706 bytes
3706 bytes
Hi all,
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.)
Seems like a vestige from RFC 2980 which defined the following responses
for TAKETHIS:
239 article transferred ok
400 not accepting articles
439 article transfer failed
480 Transfer permission denied
500 Command not understood
As far as INN is concerned, it currently returns 403 after TAKETHIS only
in 2 cases: when innd can't store the article (empty token) or can't
write the history file.
Do you think a generic code could be possible in these cases (and then
it would be an erratum to RFC 4644 so as to add the possibility to use
the new 403 generic code introduced with RFC 3977) or should the
connection really be terminated as it was the case with obsolete RFC 2980?
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. 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.)
--
Julien ÉLIE
« Il faut mépriser l'argent, surtout la petite monnaie. »
Technical Details
Message-ID:
<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-mailShow Full Headers
Complete Article Headers
Message-ID: <tn8ak2$2pnad$3@news.trigofacile.com> Subject: Generic 403 NNTP response code for TAKETHIS Date: Mon, 12 Dec 2022 23:40:02 +0100 From: Julien ÉLIE <iulius@nom-de-mon-site.com.invalid> 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: Groupes francophones par TrigoFACILE Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Injection-Date: Mon, 12 Dec 2022 22:40:02 -0000 (UTC) Injection-Info: news.trigofacile.com; posting-account="julien"; posting-host="san13-h02-176-143-2-105.dsl.sta.abo.bbox.fr:176.143.2.105"; logging-data="2940237"; mail-complaints-to="abuse@trigofacile.com" User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0) Gecko/20100101 Thunderbird/102.5.1 Cancel-Lock: sha1:PIswu1ede0k6tmVEFht4hLJwJO8= sha256:md0Z+HQmtxvJLB34fjXd+ZHEOmA5C/JeEYqEoYMKBJ0= sha1:VQKc/xLDNemPLM20cB8ul7ygRno= sha256:+w0mYzxgYyLq7J/RJx4J0dhBDyNm/hLFecnLE3qjT5I=