Article View: news.software.nntp
Article #87534Re: Case-sensitive SASL mechanisms and compression algorithms?
From: Julien ÉLIE
Date: Mon, 03 Oct 2016 20:58
Date: Mon, 03 Oct 2016 20:58
61 lines
3298 bytes
3298 bytes
Hi Michael,
>> What should we do for NNTP compression algorithms?
>> As we'll create a specific registry for NNTP, should we also enforce
>> case sensitivity? That is to say "COMprEss deFLAte" is not valid,
>> whereas "COMprEss DEFLATE" is?
>>
>> Any thoughts about that?
>
> In general:
> Case insensitive definitions require an additional processing step for
> the parser on the receiving side. And on the sending side I see no
> advantage too: A command or other protocol keyword is implemented into
> the programs (and nothing that a user will enter via keyboard - with
> potentially wrong case).
>
> For the NNTP protocol:
> The commands itself are case insensitive, so it may look inconsequent
> to define the compression algorithms case sensitive.
>
> I'm not sure what is the better option. Personally I would vote for
> defining it the SASL way (case sensitive).
Thanks for your detailed point of view.
I'll follow your conclusion (that I also share), and define compression
algorithms case sensitive.
It is consistent with RFC 3977:
Section 3.1
Commands in NNTP MUST consist of a keyword, which MAY be followed
by one or more arguments.
[...]
Commands may have variants; if so, they use a second keyword
immediately after the first to indicate which variant is required.
The only such commands in this specification are LIST and MODE.
[...]
Keywords are case insensitive; the case of keywords for commands MUST
be ignored by the server. Command and response arguments are case or
language specific only when stated, either in this document or in
other relevant specifications.
In the case of COMPRESS:
- the command (COMPRESS) is case insensitive (like any keyword),
- the command has an argument (e.g., DEFLATE), that is not a keyword,
and therefore can be said to be case sensitive.
--
Julien ÉLIE
« On ne peut jamais être neutre. Le silence est une opinion. »
(Henri Moret)
Technical Details
Message-ID:
<nsugpf$3va$1@news.trigofacile.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.(19219).mbox.7z!not-for-mailReferences:
<ns6ol2$e95$1@news.trigofacile.com> <AABX6PiXFZ8AAArO.A1.flnews@WStation5.stz-e.de>Show Full Headers
Complete Article Headers
Message-ID: <nsugpf$3va$1@news.trigofacile.com> Subject: Re: Case-sensitive SASL mechanisms and compression algorithms? Date: Mon, 3 Oct 2016 22:58:56 +0200 From: Julien ÉLIE <iulius@nom-de-mon-site.com.invalid> References: <ns6ol2$e95$1@news.trigofacile.com> <AABX6PiXFZ8AAArO.A1.flnews@WStation5.stz-e.de> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.(19219).mbox.7z!not-for-mail Newsgroups: news.software.nntp Organization: TrigoFACILE -- http://www.trigofacile.com/ Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 8bit Injection-Date: Mon, 3 Oct 2016 20:58:23 -0000 (UTC) Injection-Info: news.trigofacile.com; posting-account="julien"; posting-host="2a01cb08012ff80029ae182b4081e9d4.ipv6.abo.wanadoo.fr:2a01:cb08:12f:f800:29ae:182b:4081:e9d4"; logging-data="4074"; mail-complaints-to="abuse@trigofacile.com" User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:45.0) Gecko/20100101 Thunderbird/45.3.0 In-Reply-To: <AABX6PiXFZ8AAArO.A1.flnews@WStation5.stz-e.de> X-Received-Bytes: 3189 X-Received-Body-CRC: 274488415