paramname in draft-reschke-basicauth-enc-04

Julian Reschke <julian.reschke@gmx.de> Tue, 31 January 2012 21:19 UTC

Return-Path: <ietf-http-wg-request@listhub.w3.org>
X-Original-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Delivered-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 8CC1921F84C4 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Tue, 31 Jan 2012 13:19:57 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -8.075
X-Spam-Level:
X-Spam-Status: No, score=-8.075 tagged_above=-999 required=5 tests=[AWL=2.224, BAYES_00=-2.599, MIME_8BIT_HEADER=0.3, RCVD_IN_DNSWL_HI=-8]
Received: from mail.ietf.org ([12.22.58.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id M8NPtWOp9SWI for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Tue, 31 Jan 2012 13:19:56 -0800 (PST)
Received: from frink.w3.org (frink.w3.org [128.30.52.56]) by ietfa.amsl.com (Postfix) with ESMTP id D74FE21F84C2 for <httpbisa-archive-bis2Juki@lists.ietf.org>; Tue, 31 Jan 2012 13:19:56 -0800 (PST)
Received: from lists by frink.w3.org with local (Exim 4.69) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1RsL6w-0001RQ-2u for ietf-http-wg-dist@listhub.w3.org; Tue, 31 Jan 2012 21:19:30 +0000
Received: from lisa.w3.org ([128.30.52.41]) by frink.w3.org with esmtp (Exim 4.69) (envelope-from <julian.reschke@gmx.de>) id 1RsL6l-0001QZ-62 for ietf-http-wg@listhub.w3.org; Tue, 31 Jan 2012 21:19:19 +0000
Received: from mailout-de.gmx.net ([213.165.64.22]) by lisa.w3.org with smtp (Exim 4.72) (envelope-from <julian.reschke@gmx.de>) id 1RsL6j-00029S-Ic for ietf-http-wg@w3.org; Tue, 31 Jan 2012 21:19:19 +0000
Received: (qmail invoked by alias); 31 Jan 2012 21:18:47 -0000
Received: from mail.greenbytes.de (EHLO [192.168.1.140]) [217.91.35.233] by mail.gmx.net (mp024) with SMTP; 31 Jan 2012 22:18:47 +0100
X-Authenticated: #1915285
X-Provags-ID: V01U2FsdGVkX1+FJM8FQq+FDE6mVY6G+l8C3PXJ7jVGUZsxn5WDGO Bweica4jf5wL9L
Message-ID: <4F285AB3.4090506@gmx.de>
Date: Tue, 31 Jan 2012 22:18:43 +0100
From: Julian Reschke <julian.reschke@gmx.de>
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:10.0) Gecko/20120129 Thunderbird/10.0
MIME-Version: 1.0
To: "\"Martin J. Dürst\"" <duerst@it.aoyama.ac.jp>
CC: Bjoern Hoehrmann <derhoermi@gmx.net>, HTTP Working Group <ietf-http-wg@w3.org>
References: <20120129152840.10536.93223.idtracker@ietfa.amsl.com> <4F2567DA.3060608@gmx.de> <visci75v85ndepsfib5qfpdqvsb84m8piu@hive.bjoern.hoehrmann.de> <4F26D337.1020507@gmx.de> <4F279977.1080705@it.aoyama.ac.jp>
In-Reply-To: <4F279977.1080705@it.aoyama.ac.jp>
Content-Type: text/plain; charset="UTF-8"; format="flowed"
Content-Transfer-Encoding: 8bit
X-Y-GMX-Trusted: 0
Received-SPF: pass client-ip=213.165.64.22; envelope-from=julian.reschke@gmx.de; helo=mailout-de.gmx.net
X-W3C-Hub-Spam-Status: No, score=-1.9
X-W3C-Hub-Spam-Report: BAYES_00=-1.9, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001
X-W3C-Scan-Sig: lisa.w3.org 1RsL6j-00029S-Ic 01dc213b73dadf30b98d99c10f9771fc
X-Original-To: ietf-http-wg@w3.org
Subject: paramname in draft-reschke-basicauth-enc-04
Archived-At: <http://www.w3.org/mid/4F285AB3.4090506@gmx.de>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/12277
X-Loop: ietf-http-wg@w3.org
Resent-Sender: ietf-http-wg-request@w3.org
Precedence: list
List-Id: <ietf-http-wg.w3.org>
List-Help: <http://www.w3.org/Mail/>
List-Post: <mailto:ietf-http-wg@w3.org>
List-Unsubscribe: <mailto:ietf-http-wg-request@w3.org?subject=unsubscribe>
Resent-Message-Id: <E1RsL6w-0001RQ-2u@frink.w3.org>
Resent-Date: Tue, 31 Jan 2012 21:19:30 +0000

On 2012-01-31 08:34, "Martin J. Dürst" wrote:
> ...
>>> to the name, `useUTF8` or `use-utf-8="yes" or some such would have been
>>> clearer).
>>
>> That's another good suggestion; we're not going to allow any other
>> encoding, so maybe making it a real flag is the best solution. What do
>> others think?
>
> I'm all in favor.
> ...

(tracked at 
<http://greenbytes.de/tech/webdav/draft-reschke-basicauth-enc-issues.html#issue.paramname>)

So

   WWW-Authenticate: Basic realm="foo", useUTF8

looks cute, but then there's

   auth-param     = token BWS "=" BWS ( token / quoted-string )

(<http://greenbytes.de/tech/webdav/draft-ietf-httpbis-p7-auth-18.html#rfc.section.2.1>)

So it needs a value. We could say

   useUTF8="yes"

but then there's always the problem of remembering whether the syntax is 
"0"/"1", "false"/"true" or "no"/"yes".

We also could say that the presence of the parameter is sufficient, such 
as with

   useUTF8=""

but then people will be confused when useUTF8="false" does the same 
thing as for "true".

So overall, I think it's better to stick to

   encoding="value"

and hard-wire the value to "UTF-8". (I'm open to renaming the parameter 
to "enc" or "charset")

Feedback on both points appreciated; in doubt, I'll leave things as they 
are now.

Best regards, Julian