🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #63128

Re: NNTP and YENC

#63128
From: Bart Crane
Date: Tue, 14 Jan 2003 23:30
127 lines
6528 bytes
Rene <invalid@email.addr> wrote in message
news:20030114080852.917$xx@newsreader.com...
> "Bart Crane" <svcrane@attbi.com> wrote:
> > Deciding to include all ANSI-defined control-codes
> > in the NNTP Response Data, in addition to those
> > explicitly defined in RFC 977, is more than just
> > upgrading the protocol to transfer 8-bit data.
>
> Just a little comment: Your problem character 1Ah is 26decimal, and has
> nothing what so ever to do with allowing the 8th bit to be set, because
> that bit covers the range 128-255. Never the less, using 8 bit data is
> directly violating or ignoring RFC 977. Its being done because RFC 977 is
> not representing todays status - as many already told you so.
>
> Also, you didn't answer my message where I showed you that RFC 822 -
> Standard Internet Message Format explicitly allows in a message *any* char
> within the range 1-127. No matter that this RFC is also badly outdated, it
> was always allowed in RFC 822.

Sorry for not answering your message specifically, but in another
response I refer to ANSI X3.4, which excludes 00h..1Fh as
control-codes.

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.

(Again, not a standards expert, I just read specs so as to build
systems that work across operating systems and platforms.)


>
> If you want to be prepared for the future (well actually its probably
> almost 100% today) read RFC 2822. Its still 7bit even for the body but the
> definition of what is text is very clear: RFC 2822 / Section 3.2.1
> primitive Tokens:
>
> text            =       %d1-9 /         ; Characters excluding CR and LF
>                         %d11 /
>                         %d12 /
>                         %d14-127 /
>                         obs-text
>
> 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!!!

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.


>
> > NNTP is a text-based protocol, not a binary protocol.
>
> Right.
> Read definition of text in RFC 2822 or RFC822.
> RFC 822 says in Section 3.3 :
>
>      CHAR        =  <any ASCII character>        ; (  0-177,  0.-127.)
> [..]
>
>      text        =  <any CHAR, including bare    ; => atoms, specials,
>                      CR & bare LF, but NOT       ;  comments and
>                      including CRLF>             ;  quoted-strings are
>                                                  ;  NOT recognized.
>
> 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.

RFC 977, Section 1.4:

  "While it is possible that such a ...
   implementation might work well with a group of similar
   computers running nearly identical operating systems, such a scheme
   is not general enough to offer service to a wide range of client
   systems, especially when many diverse operating systems may be in use
   among a group of clients.  There are few (if any) ...
   systems that can offer the generality of service ...  , particularly
   when a wide range of host hardware and operating systems are
   considered."

It is clear that the intentions of RFC 977 were to serve the needs
of a network that consisted of clients with different hardware and
operating systems.

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.

Bart.


>
> --
> -------------------- http://NewsReader.Com/ --------------------
> Usenet Newsgroup Service              New Rate! $9.95/Month 50GB


Technical Details
Message-ID: <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!cyclone.bc.net!sjc70.webusenet.com!news.webusenet.com!feed.news.qwest.net!news.uswest.net.POSTED!not-for-mail
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>

Show Full Headers
Complete Article Headers
Message-ID: <r11V9.71$2r2.60729@news.uswest.net>
Subject: Re: NNTP and YENC
Date: Tue, 14 Jan 2003 15:30:10 -0800
From: "Bart Crane" <bcrane@iready.com>
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>
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!cyclone.bc.net!sjc70.webusenet.com!news.webusenet.com!feed.news.qwest.net!news.uswest.net.POSTED!not-for-mail
Newsgroups: news.software.nntp
Lines: 126
Organization: iReady Corp.
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.00.2314.1300
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300
NNTP-Posting-Host: 65.115.68.98
X-Trace: news.uswest.net 1042586839 65.115.68.98 (Tue, 14 Jan 2003 17:27:19 CST)
NNTP-Posting-Date: Tue, 14 Jan 2003 17:27:19 CST