🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #57009

Re: Servers and yEnc

#57009
From: Neeber
Date: Sat, 02 Mar 2002 00:59
65 lines
4010 bytes
On Fri, 01 Mar 2002 00:07:59 +0200, Nuutti Kotivuori <naked@iki.fi>
wrote:

>The Archiver wrote:
>> Dirk Nimmich <nimmich@muenster.de> wrote:
>>> You could do more. You could specify that
>>> [...]
>>> Just to mention some.
>> 
>> We agree to disagree here.
>> 
>> If yEnc would have tried to specify filenames (with a spec which
>> would be even longer than the whole yEnc draft) then implementors
>> would have ignored it entirely.
>> 
>> The method of "name=" is directly compatible to all existing
>> UUdecoders.  More specification would be up to an RFC.
>
>I agree with Dirk here, partly, and with you, partly.
>
>We do not want to specify the character set for the filename, since
>translating character sets is quite outside the scope what binary
>grabbers can do.
>
>But we do definitely want to specify the exact syntax of the filename
>- eg. the allowed characters and possible quotemark quoting, if
>wanted. Do note that the allowed characters in the field in the
>encoding are not at all the same thing as allowed characters on the
>filesystem. The latter is the decoders problem, the former is
>something that a good specification must specify.
>
>But this is all part of the process where the proposal or draft is
>gone through and every case is specified in detail. This is something
>that has to be done, atleast, even if the spec is not changed at all.
>
>-- Naked

I agree there needs to be a stronger separation of expectations
between the specification and the implementation of the spec. The yEnc
spec cannot absolutely define a set of characters that are 'legal' for
a decoded file. There's just no way of knowing without introducing
some platform dependence (or bloat) into the spec. It's called
implementation-specific for a reason, yeah? 

The spec might, at most, advise implementors to watch for weird or
scary character patterns (e.g. "../../../") in the target filename
during encoding or decoding, but even then that's a lot of handholding
for a programmer who's gone to the trouble of reading a draft spec for
the purpose of implementing it.

Everything else is indicating what is used as a delimiter for the sake
of header entity atomicity (in the case that a filename is required to
be encased in some set of delimiters (like quotation marks, etc).

Personally, I'm not a fan of the 'encase the filename in delimiters'
approach, as it tends to arbitrarily exclude characters from otherwise
legal filenames (and often requires some clunky escape sequences to
get around that limitation). If it turns out to be that offensively
unprofessional to have the spec say "Everything past the 'name='
header entity specifier is to be interpreted as the output filename,"
then a delimiter is acceptable.

Cheers.

Technical Details
Message-ID: <s1808u0d4epuf9qskmipf89jqalphl2lha@4ax.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!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.novia.net.MISMATCH!novia!novia!sequencer.newscene.com!not-for-mail
References: <200220021438285144%planb@newsreaders.com> <1014235814.538156@ok-corral.gunslinger.net> <36169.l22207@archiver.winews.net> <pan.2002.02.23.03.38.54.410120.15165@nevermind.where> <5726c.o22200@archiver.winews.net> <a5ba1k$feh$03$1@news.t-online.com> <0442a.p22204@archiver.winews.net> <a5e7ll$evu$04$1@news.t-online.com> <3007a.q22207@archiver.winews.net> <a5jmov$iiv$03$1@news.t-online.com> <5034a.s22202@archiver.winews.net> <87pu2p1cqo.fsf@iki.fi>

Show Full Headers
Complete Article Headers
Message-ID: <s1808u0d4epuf9qskmipf89jqalphl2lha@4ax.com>
Subject: Re: Servers and yEnc
Date: Sat, 02 Mar 2002 00:59:03 +0000
From: Neeber <a110y2@hotmail.com>
References: <200220021438285144%planb@newsreaders.com> <1014235814.538156@ok-corral.gunslinger.net> <36169.l22207@archiver.winews.net> <pan.2002.02.23.03.38.54.410120.15165@nevermind.where> <5726c.o22200@archiver.winews.net> <a5ba1k$feh$03$1@news.t-online.com> <0442a.p22204@archiver.winews.net> <a5e7ll$evu$04$1@news.t-online.com> <3007a.q22207@archiver.winews.net> <a5jmov$iiv$03$1@news.t-online.com> <5034a.s22202@archiver.winews.net> <87pu2p1cqo.fsf@iki.fi>
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!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.novia.net.MISMATCH!novia!novia!sequencer.newscene.com!not-for-mail
Newsgroups: news.software.nntp
Lines: 64
X-Newsreader: Forte Agent 1.8/32.553
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit