Thread View: news.software.nntp
3 messages
3 total messages
Started by Ken Murchison
Fri, 20 Dec 2002 18:21
IHAVE/POST implementation question
Author: Ken Murchison
Date: Fri, 20 Dec 2002 18:21
Date: Fri, 20 Dec 2002 18:21
14 lines
1734 bytes
1734 bytes
Are IHAVE and POST required/assumed to be atomic? In other words, if an article is supposed to be posted to more than one group, and posting to any one of the groups fails, while one or more succeeds, what should the return code of the command be? Since there is no mechanism for partial success/failure reporting (unlike SMTP RCPT TO), I assume that if posting to at least one of the group succeeds, then the entire command succeeds. Is this a correct assumption? -- Kenneth Murchison Oceana Matrix Ltd. Software Engineer 21 Princeton Place 716-662-8973 x26 Orchard Park, NY 14127 --PGP Public Key-- http://www.oceana.com/~ken/ksm.pgp
Re: IHAVE/POST implementation question
Author: Curt Welch
Date: Fri, 20 Dec 2002 20:35
Date: Fri, 20 Dec 2002 20:35
31 lines
2843 bytes
2843 bytes
Ken Murchison <ken@oceana.com> wrote: > Are IHAVE and POST required/assumed to be atomic? In other words, if an > article is supposed to be posted to more than one group, and posting to > any one of the groups fails, while one or more succeeds, what should the > return code of the command be? Since there is no mechanism for partial > success/failure reporting (unlike SMTP RCPT TO), I assume that if > posting to at least one of the group succeeds, then the entire command > succeeds. Is this a correct assumption? Yes, you are correct. The return code should only indicate if the article was accepted or not. If you return an error code, you should assume that the user, or the software, will try to post it again (after maybe makeing some change to it) And if you accepted the article and posted it to a group, then you don't want them trying again. Any type of error return from a post is taken to mean the article was not accepted and will never show up anywhere on the news server. In most news servers, "posting to a group" is not something that can "fail". Either the entire article is accpeted, or the entire article is rejected. Some news servers will check things like the Newsgroups: line at post time, others will ignore it, and deal with it later when it's too late to return any type of error back to the user. A "good" news server should check everything at "POST" time and if it's going to reject the article for some reason, it will reject it when posted so it can return an error to the user. But not all servers are as "good" as they should be and will silently drop posts for reasons never to be understood by the users. -- Curt Welch http://CurtWelch.Com/ curt@kcwc.com Webmaster for http://NewsReader.Com/
Re: IHAVE/POST implementation question
Author: Andrew - Supernews
Date: Fri, 20 Dec 2002 20:42
Date: Fri, 20 Dec 2002 20:42
34 lines
2551 bytes
2551 bytes
In article <3E035FBC.ECC8CBE9@oceana.com>, Ken Murchison wrote: > Are IHAVE and POST required/assumed to be atomic? In other words, if an > article is supposed to be posted to more than one group, and posting to > any one of the groups fails, that's not a meaningful concept. There is _only one article_, regardless of how many groups are listed in the Newsgroups header. If the article can't be posted to a group due to access restrictions, local policy, groups listed 'no posting', etc., but _not_ due to mere nonexistence of the group, then the whole post fails (and appears nowhere). If one of the groups is moderated, then the article is submitted to the moderator (ideally of the leftmost group), and also appears nowhere directly. If at least one known group is listed, then the fact that other groups are not known does not normally cause rejection of the post unless site policy requires that (most sites don't). For IHAVE, some sites will transit a post even if no known groups are listed (if the site even has a list of groups at all, which many transit feeders don't). Otherwise, articles can be rejected for policy reasons, or accepted (in which case they are filed in known groups and not in unknown ones). Note that the uniqueness requirements for news message-ids mean that, unlike mail, there is no concept of splitting a message into separate copies for separate groups. Even if a particular server design requires storage of multiple copies (e.g. traditional spools spanning filesystems on systems without symlinks), the article is still treated in all external respects as a single entity. -- Andrew, Supernews http://www.supernews.com - individual and corporate NNTP services
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads