Article View: news.software.nntp
Article #63141Re: NNTP and YENC
From: Rene
Date: Wed, 15 Jan 2003 00:33
Date: Wed, 15 Jan 2003 00:33
117 lines
6683 bytes
6683 bytes
"Bart Crane" <bcrane@iready.com> wrote: > Sorry for not answering your message specifically, but in another > response I refer to ANSI X3.4, which excludes 00h..1Fh as > control-codes. Yes, I've read through that. I do not deny that ANSI does declare them as control chars. > The NNTP spec specifically states that Response Data is "textual", > and is "usually displayed on the user's terminal." Thus, ANSI X3.4 > is relevant, as it defines a standard upon which terminal devices can > be made compatible across operating systems. No that's an jump to a conclusion on your part. I don't see why "textual" automatically means this must be ANSI X3.4. In the very same RFC which says textual, they also defined text - in clear contradiction to ANSI X3.4. What does that mean? Either they overlooked that - a mistake or they understand something other in textual than you do. In any case, RFC 977 defines what they mean with text. They have provided EBNF-formulas (extended backus naur') which exactly define what is valid for text, headers, etc. > (Again, not a standards expert, I just read specs so as to build > systems that work across operating systems and platforms.) Right, me neither, but that spec defines what text regarding nntp is. You trust all your argumentation in those two words "textual matter" which is never explained anywhere - and therefor ambigous and problematic. > > Meaning anything exluding 00h, 0Ah and 0Dh (up to 127dec). Again, this > > explicitly *includes* 1Ah. This defines *text* not binary data. > > Then this protocol is not compatible with operating systems that > use ANSI-defined control-codes for text-mode streams, but > which would be somewhat problematic for legacy applications > that presume a 1-byte character-set!!! Right. This is a problem for systems that can't cope with it. You apparently have one such. Now who was first, the spec or your system/tools ? > Note that Section 5 has this interesting wording: > > "5. Security Considerations > > Care needs to be taken when displaying messages on a terminal or > terminal emulator. Powerful terminals may act on escape sequences > and other combinations of ASCII control characters with a variety of > consequences. They can remap the keyboard or permit other > modifications to the terminal which could lead to denial of service > or even damaged data. They can trigger (sometimes programmable) > answerback messages which can allow a message to cause commands to be > issued on the recipient's behalf. They can also effect the operation > of terminal attached devices such as printers. Message viewers may > wish to strip potentially dangerous terminal escape sequences from > the message prior to display. " > > This is my position exactly. Contrasting the NNTP author's statement > that the nntp response data is usually "displayed on the user's terminal" > with that statement above. Right, and I dont disagree with it either. "Care needs to be taken when..." This care needs to be taken by *your system* or *your tools* not by the standard. The standard has no power to control what any system anywhere actually does - therefor to remain fully functional, a programmer of any tool on such a plattform has to take care that it still works - that's how I read this paragraph. As has been already pointed out to you earlier in this thread, you could include a wrapper which somehow escapes out the 1Ah code and re-injects them later, after the critical, non-coping program in your filter chain is through with it. That's what I read as "Message viewers may wish to strip potentially dangerous terminal escape sequences from the message prior to display." from above quote. NNTP is clearly no message viewer, its a transport system (that's even in the name). Your filter chain qualifies as message viewer though. > > So you see, both RFC 2822 AND 822 explicitly define the char 1Ah as > > text. If you or your OS or your tools can't cope with them, they are in > > error. > > Values between 00h..1Fh may be compatible with one aspect > of the spec, but they are invalid with another (ANSI X3.4), and > result in a true interoperability problem, which is what I am > reporting. Now I wanted to look up something on that ANSI standard and googling for it, I happen to find this one : "http://www.itl.nist.gov/fipspubs/33fipwd.htm" This document states that the FIPS 1-2 Standard publication has been withdrawn. Now I'm not quite sure what this means, but it could mean that ANSI X3.4 has been obsoleted and is of no concern any longer. It says : "These thirty-three FIPS are being withdrawn because they are obsolete, or have not been updated to adopt current voluntary industry standards. " So if I understand that right, this means all your argumentation was based on too old a fundament. > Interpretations that ignore the "user's terminal" aspect or that > equate "textual" == "binary" are not in the spirit of what NNTP > was designed to accomplish. But NNTP defines textual. The interpretation of a special char happens in your program, not in NNTP. Your terminal (console) can without any problem show 1Ah, your filter program in your pipe-chain can't. Why? Because it makes an interpretation where it should not. Replace it and all will be fine. -- -------------------- http://NewsReader.Com/ -------------------- Usenet Newsgroup Service New Rate! $9.95/Month 50GB
Technical Details
Message-ID:
<20030114193303.623$hA@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!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!bloom-beacon.mit.edu!news-out.cwix.com!newsfeed.cwix.com!prodigy.com!rip!news.webusenet.com!feed1.newsreader.com!newsreader.com!news2.newsreader.com!ellis.newsreader.com!not-for-mailReferences:
<BXLR9.432835$pN3.48082@sccrnsc03> <1041772747.319829@ok-corral.gunslinger.net> <BiqS9.160$wz1.152433@news.uswest.net> <1042007522.340079@ok-corral.gunslinger.net> <8d$Rtvs3cDD@3247.org> <aOIU9.101$qk2.63728@news.uswest.net> <QGKU9.41482$No.6059@sccrnsc04> <20030114080852.917$xx@newsreader.com> <r11V9.71$2r2.60729@news.uswest.net>Show Full Headers
Complete Article Headers
Message-ID: <20030114193303.623$hA@newsreader.com> Subject: Re: NNTP and YENC Date: Wed, 15 Jan 2003 00:33:03 +0000 From: Rene <invalid@email.addr> References: <BXLR9.432835$pN3.48082@sccrnsc03> <1041772747.319829@ok-corral.gunslinger.net> <BiqS9.160$wz1.152433@news.uswest.net> <1042007522.340079@ok-corral.gunslinger.net> <8d$Rtvs3cDD@3247.org> <aOIU9.101$qk2.63728@news.uswest.net> <QGKU9.41482$No.6059@sccrnsc04> <20030114080852.917$xx@newsreader.com> <r11V9.71$2r2.60729@news.uswest.net> 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!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!bloom-beacon.mit.edu!news-out.cwix.com!newsfeed.cwix.com!prodigy.com!rip!news.webusenet.com!feed1.newsreader.com!newsreader.com!news2.newsreader.com!ellis.newsreader.com!not-for-mail Organization: NewsReader.Com Subscriber Newsgroups: news.software.nntp X-Trace: NewsReader.Com nLqQ2.DC9RS26KjxClnL-/Pdv.pTzesmE48c0RLiF_@BPXKpnZ Lines: 116