Article View: news.software.nntp
Article #89844Re: Generic 403 NNTP response code for TAKETHIS
From: Julien ÉLIE
Date: Tue, 13 Dec 2022 22:53
Date: Tue, 13 Dec 2022 22:53
46 lines
3185 bytes
3185 bytes
Hi Russ, >> 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. OK, I see the point. It is a bit similar to 501 (syntax error) and other generic responses that are sometimes not understood by the remote peer which will consider that the article should be proposed again and again whereas it is a permanent error. > 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. Yes that makes totally sense. >> 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. I'll have a look to fix it, and use the expected 400 response code with a connection closure. Incidentally, though TAKETHIS does not have a response code for a "retry later" in both RFC 2980 and 4644, I've just checked what Diablo does with TAKETHIS (which is to use 431 - the "retry later" of CHECK). And previously to the implementation of NNTP Version 2 in INN, it was using 436 (the "retry later" of IHAVE) - that I (wrongly) changed to 403. I'll fix it. -- Julien ÉLIE « A program should always respond to the user in the way that astonishes him least. » (Plauger's Law of Least Astonishment)
Technical Details
Message-ID:
<tnavq6$2rcn3$2@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-mailReferences:
<tn8ak2$2pnad$3@news.trigofacile.com> <877cyw5gca.fsf@hope.eyrie.org>Show Full Headers
Complete Article Headers
Message-ID: <tnavq6$2rcn3$2@news.trigofacile.com> Subject: Re: Generic 403 NNTP response code for TAKETHIS Date: Tue, 13 Dec 2022 23:53:58 +0100 From: Julien ÉLIE <iulius@nom-de-mon-site.com.invalid> References: <tn8ak2$2pnad$3@news.trigofacile.com> <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 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: Tue, 13 Dec 2022 22:53:58 -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="2994915"; 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:exavUgRwNnNfN0VOYoh3PAT/n+c= sha256:3nz4dAZaQ8mr9O2ntws7RewiDiq1M4oBPCtZGFU2Qe0= sha1:pzCMjaOj6ffabkrH9xC2Cp5cMtg= sha256:hptUgZaVNnGWE7yTe3cXIyy/dviOEchGEsPfjr1Ac6I= In-Reply-To: <877cyw5gca.fsf@hope.eyrie.org>