Article View: news.software.nntp
Article #44507Re: [NNTP Draft] 4. Basic Operation
From: Curt Welch
Date: Sun, 27 Feb 2000 00:00
Date: Sun, 27 Feb 2000 00:00
50 lines
3301 bytes
3301 bytes
Andrew Gierth <andrew@erlenstar.demon.co.uk> wrote: > Pete> If not, does it sound reasonable to allow the client the option > Pete> of not discarding the termination octet if it's not followed by > Pete> either a second termination octet or a CR/LF pair? > > Provided that there is still a 'MUST NOT' restriction on _generating_ > such malformed lines, it seems reasonable to allow the flexibility to > interpret them correctly regardless. That's the type of hack that I think is fine for a server author to put into his code to try and deal with real-world problems. But I would strongly argue that we should not put that into the RFC as an OK thing to do. Servers MUST delete ALL leading DOTS not followed but A CRLF. If you put that hack in your server, then you are violating the RFC. But that's fine - all servers violate the RFC in minor places like that. For example, my server accepts Message-Ids with spaces in them as arguments to an IHAVE command. As in: IHAVE <crap with spaces@bogus.server.com> By the RFC, I MUST reject that with a 5xx message for being a syntactically invalid command (3 arguments instead of one). Instead, I parse it as the sending system intended (as per 1036 Message-IDs BTW), and then reject the offer because of an invalid Message-ID. As I recall, Diablo got confused when I rejected that with a 5xx code and I think it keept re-offering the article to me. But I forget the exact details here. This is actually an issue that might deserve mention in the IHAVE and TAKETHIS commands. You don't want those broken newsreaderes to work on _MOST_ servers. You want it to break on the server that the newsreader author users so instead of thinking it's OK, he fixes the code to follow the RFC. In addition, your hack doesn't even solve the problem for the newsreader. It only reduces the probability further (further hiding the bug from the author). Not only is it possible for the first character of the last line to be a ., but if the data is correct, the second character may be a dot as well, and you hack won't catch it in that case. Do do a good job there, you have to basically do full UUDECOD parsing to make a "really good" guess as to whether the hack applies to the line or not. -- Curt Welch http://CurtWelch.Com/ curt@kcwc.com Webmaster for http://NewsReader.Com/
Technical Details
Message-ID:
<20000227151854.574$m6@newsreader.com>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mailReferences:
<87u2ivd36l.fsf@erlenstar.demon.co.uk> <aGeu4.15827$PA2.1395538@bgtnsc06-news.ops.worldnet.att.net> <873dqe780l.fsf@erlenstar.demon.co.uk>Show Full Headers
Complete Article Headers
Message-ID: <20000227151854.574$m6@newsreader.com>
Subject: Re: [NNTP Draft] 4. Basic Operation
Date: Sun, 27 Feb 2000 00:00:00 +0000
From: curt@kcwc.com (Curt Welch)
References: <87u2ivd36l.fsf@erlenstar.demon.co.uk> <aGeu4.15827$PA2.1395538@bgtnsc06-news.ops.worldnet.att.net> <873dqe780l.fsf@erlenstar.demon.co.uk>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mail
X-Deja-AN: 590566565
X-Face: "p}G*1KH{+F7EYGKLb>ogDguabZ+%,?^epeFB!nzu`)`$=QcvL1KF6<0GH!Tbc!Sqo[|tV5 %IW48mQf3K=Ci&gZ7]]aazx@]Y-nq!r5{yH/#,?@lDdUDvOfByB2hVW0.@OM%{l/{cT'{w
X-User: Curt@NewsReader.Com
Organization: NewsReader.Com
X-Url: http://CurtWelch.Com/
Newsgroups: news.software.nntp