🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #81681

Re:  INN developers, why won't INN accept raw·binary ?

#81681
From: Russ Allbery
Date: Wed, 26 Aug 2009 21:03
43 lines
3367 bytes
_@Jeff_Relf.Seattle.inValid writes:

> INN developers, why won't INN accept raw·binary ?
> On Diablo servers, this is OK:

> “ Content-Type: Image/PNG

>   Content-Transfer-Encoding: Binary
>   Content-Disposition: Attachment; fileName="UTF-8.PNG" ”.

> In the body, null bytes are OK and there's no such thing as “lines”;
> so line·length isn't an issue, "\r\n.\r\n" terminates the post.

> P.S. I'm subscribed to Alt.Free.Newsservers, not News.software.NNTP.

There are two problems.

One is that INN internally is not binary-clean.  It would truncate
articles at the first nul.  Changing this is possible, but it's not
trivial and requires thoroughly auditing the code and writing some
corresponding test cases.

The other is that the NNTP protocol does not allow binary data and cannot
correctly without introducing a new command.  It forces a CRLF at the end
of the article, which could corrupt a binary at the end of the message.
We shouldn't deploy a solution that works 99% of the time via some
hand-waving.  If we're going to support the binary CTE over NNTP, we
should do it properly and define an extension with a separate command that
takes the length of the message and doesn't require either dot-stuffing or
scanning the article for a terminator.

In practice, given the existence of things like yEnc and a somewhat
general lack of interest in putting a lot of effort into binary article
handling, there doesn't seem to be enough enthusiasm on anyone's part to
do the work required.  During the NNTP IETF working group discussions,
binary article transport came up several times and several people said
that NNTP should handle it, but no one wrote a specification.

-- 
Russ Allbery (rra@stanford.edu)             <http://www.eyrie.org/~eagle/>

          Please post questions rather than mailing me directly.
     <http://www.eyrie.org/~eagle/faqs/questions.html> explains why.
Technical Details
Message-ID: <87ocq2479l.fsf@windlord.stanford.edu>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-alt.free.newsservers.20150605.mbox.gz!border1.nntp.ams.giganews.com!nntp.giganews.com!pe2.news.blueyonder.co.uk!blueyonder!news.astraweb.com!border5.newsrouter.astraweb.com!news-xfer.nntp.sonic.net!news.kjsl.com!newsfeed.stanford.edu!news.stanford.edu!not-for-mail
References: <r28t85t83harnfictlht08lia7t4u7n2cm@shared-secrets.com> <slrnh8tegg.pb8.steve@news.mixmin.net> <h6mgsr$3q2$2@tioat.net> <slrnh8tine.bqe.steve@news.mixmin.net> <_@Jeff_Relf.Seattle.2009_Aug25.6.54pm.W4> <slrnh99sq6.bqe.steve@news.mixmin.net> <_@Jeff_Relf.Seattle.2009_Aug26.1.46pm.5X>

Show Full Headers
Complete Article Headers
Message-ID: <87ocq2479l.fsf@windlord.stanford.edu>
Subject: Re:  INN developers, why won't INN accept raw·binary ?
Date: Wed, 26 Aug 2009 14:03:50 -0700
From: Russ Allbery <rra@stanford.edu>
References: <r28t85t83harnfictlht08lia7t4u7n2cm@shared-secrets.com> <slrnh8tegg.pb8.steve@news.mixmin.net> <h6mgsr$3q2$2@tioat.net> <slrnh8tine.bqe.steve@news.mixmin.net> <_@Jeff_Relf.Seattle.2009_Aug25.6.54pm.W4> <slrnh99sq6.bqe.steve@news.mixmin.net> <_@Jeff_Relf.Seattle.2009_Aug26.1.46pm.5X>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-alt.free.newsservers.20150605.mbox.gz!border1.nntp.ams.giganews.com!nntp.giganews.com!pe2.news.blueyonder.co.uk!blueyonder!news.astraweb.com!border5.newsrouter.astraweb.com!news-xfer.nntp.sonic.net!news.kjsl.com!newsfeed.stanford.edu!news.stanford.edu!not-for-mail
Newsgroups: alt.free.newsservers,news.software.nntp
Followup-To: news.software.nntp
Organization: The Eyrie
Lines: 43
NNTP-Posting-Host: windlord.stanford.edu
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
X-Trace: news.stanford.edu 1251320638 11931 171.67.225.134 (26 Aug 2009
X-Complaints-To: news@news.stanford.edu
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux)
Cancel-Lock: sha1:Wb56wtm+U0FFqyOk/IhmL0QSK78=