Article View: news.software.nntp
Article #903Change error code: "502 Can't give that to you" to 413?
From: Nick Sayer
Date: Wed, 09 Jan 1991 03:57
Date: Wed, 09 Jan 1991 03:57
27 lines
1862 bytes
1862 bytes
I believe that the current implementation of nntpd with respect to the error code mentioned is incorrect. 502 implies a far more dire situation than is the case when someone tries an ARTICLE <foo@site.fobaz.com> and it turns out that the group where the article resides is in a group made unavailable in the nntp_access file. I believe that in common/nntp.h, this should be added: #define ERR_NGPERM 413 /* No permission for that group */ and in ahbs.c, the line that says "Can't give that to you." should have ERR_NGPERM rather than ERR_ACCESS. This would allow a differentiation between "Can't give that (single) article to you" and "you have no permission to do that sort of thing at all." Anyway, that's my two cents. I can generate context diffs if anyone wants them, but rather than do so, I'll wait for comments from the authors or people smarter about such things than I. -- Nick Sayer | Disclaimer: "Don't try this at home, | RIP: Mel Blanc mrapple@quack.sac.ca.us | kids. This should only be done by | 1908-1989 N6QQQ [44.2.1.17] | trained, professional idiots." | May he never 209-952-5347 (Telebit) | --Plucky Duck | be silenced.
Technical Details
Message-ID:
<278a949a.1452@uop.uop.edu>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp!utzoo!utgpu!watserv1!watmath!att!linac!pacific.mps.ohio-state.edu!zaphod.mps.ohio-state.edu!sdd.hp.com!ucsd!ucbvax!ucdavis!csus.edu!uop!nsayerShow Full Headers
Complete Article Headers
Message-ID: <278a949a.1452@uop.uop.edu> Subject: Change error code: "502 Can't give that to you" to 413? Date: Wed, 09 Jan 1991 03:57:15 +0000 From: nsayer@uop.edu (Nick Sayer) Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp!utzoo!utgpu!watserv1!watmath!att!linac!pacific.mps.ohio-state.edu!zaphod.mps.ohio-state.edu!sdd.hp.com!ucsd!ucbvax!ucdavis!csus.edu!uop!nsayer Newsgroups: news.software.nntp Organization: University of the Pacific, Stockton, CA [138.9.200.1] Lines: 26