Re: [OAUTH-WG] Possible alternative resolution to issue 26

Julian Reschke <julian.reschke@gmx.de> Mon, 10 October 2011 06:30 UTC

Return-Path: <julian.reschke@gmx.de>
X-Original-To: oauth@ietfa.amsl.com
Delivered-To: oauth@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 3E73121F8472 for <oauth@ietfa.amsl.com>; Sun, 9 Oct 2011 23:30:14 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -104.599
X-Spam-Level:
X-Spam-Status: No, score=-104.599 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, GB_I_LETTER=-2, USER_IN_WHITELIST=-100]
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 CZ3NxF-5JKUP for <oauth@ietfa.amsl.com>; Sun, 9 Oct 2011 23:30:13 -0700 (PDT)
Received: from mailout-de.gmx.net (mailout-de.gmx.net [213.165.64.23]) by ietfa.amsl.com (Postfix) with SMTP id 3563821F8557 for <oauth@ietf.org>; Sun, 9 Oct 2011 23:30:12 -0700 (PDT)
Received: (qmail invoked by alias); 10 Oct 2011 06:30:11 -0000
Received: from p5DCC9826.dip.t-dialin.net (EHLO [192.168.178.36]) [93.204.152.38] by mail.gmx.net (mp021) with SMTP; 10 Oct 2011 08:30:11 +0200
X-Authenticated: #1915285
X-Provags-ID: V01U2FsdGVkX1++xTM4rhe+HRGabamTCp0OZmYt6eV+5nKHVrNjtN TRD6UyQnID5EmA
Message-ID: <4E9290ED.6070403@gmx.de>
Date: Mon, 10 Oct 2011 08:30:05 +0200
From: Julian Reschke <julian.reschke@gmx.de>
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:7.0.1) Gecko/20110929 Thunderbird/7.0.1
MIME-Version: 1.0
To: "Manger, James H" <James.H.Manger@team.telstra.com>
References: <4E1F6AAD24975D4BA5B16804296739435C21DD2C@TK5EX14MBXC284.redmond.corp.microsoft.com> <255B9BB34FB7D647A506DC292726F6E1129015546C@WSMSG3153V.srv.dir.telstra.com> <1317621663.4810.YahooMailNeo@web31813.mail.mud.yahoo.com> <4E1F6AAD24975D4BA5B16804296739435C226298@TK5EX14MBXC284.redmond.corp.microsoft.com> <4E1F6AAD24975D4BA5B16804296739435C22CA77@TK5EX14MBXC284.redmond.corp.microsoft.com> <4E8EC720.8030909@gmx.de> <255B9BB34FB7D647A506DC292726F6E112904F03C7@WSMSG3153V.srv.dir.telstra.com> <4E8F0D09.3020601@gmx.de> <255B9BB34FB7D647A506DC292726F6E1129060277B@WSMSG3153V.srv.dir.telstra.com>
In-Reply-To: <255B9BB34FB7D647A506DC292726F6E1129060277B@WSMSG3153V.srv.dir.telstra.com>
Content-Type: text/plain; charset="ISO-8859-1"; format="flowed"
Content-Transfer-Encoding: 7bit
X-Y-GMX-Trusted: 0
Cc: "oauth@ietf.org" <oauth@ietf.org>
Subject: Re: [OAUTH-WG] Possible alternative resolution to issue 26
X-BeenThere: oauth@ietf.org
X-Mailman-Version: 2.1.12
Precedence: list
List-Id: OAUTH WG <oauth.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/oauth>, <mailto:oauth-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/oauth>
List-Post: <mailto:oauth@ietf.org>
List-Help: <mailto:oauth-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/oauth>, <mailto:oauth-request@ietf.org?subject=subscribe>
X-List-Received-Date: Mon, 10 Oct 2011 06:30:14 -0000

On 2011-10-10 01:08, Manger, James H wrote:
>> You can't "replace" quoted-string.
>>
>> A recipient will have to be able to parse multiple challenges in a
>> single header field value. To do so, it has to understand the syntax of
>> params using double quotes. It can't special-case the parsing based on
>> what part of the set of challenges it currently is looking at (because
>> to do so, it needs to have parsed them first).
>
> Parsing is not affected. Only un-escaping after parsing.
>
> Even if you did generic un-escaping before reaching code that
> understood a specific parameter (and I'm not sure that is likely),

It is possible. There is code out there that does it.

> you still don't need to special-case the un-escaping. You can interpret it
> all like JSON as no quoted-string value in practise will escape an
> alphabetic letter (a-z). Not only would it be pointless for the sender to
> do so, they would also be violating a "SHOULD NOT" in the spec.
>
>     Senders SHOULD NOT escape octets in quoted-strings that do not
>     require escaping (i.e., other than DQUOTE and the backslash octet).
>     [draft-ietf-httpbis-p1-messaging-16#section-3.2.3]

It still is a violation of the spec if you do so.

>> If we were free to change things, we'd simply state that everything is
>> UTF-8.
>
> But that would break things.
> I am only suggesting changing the interpretation of \u because
> I don't believe it will break any existing values.
>
>
>> But that argument doesn't change the fact how it is defined.
>
> Changing defined behaviour is not great.
> Changing defined behaviour that is *never used* (eg "\u" as an
> escape sequence for "u") doesn't sound so unreasonable.

Again, if you believe this is a good idea, the place to argue this is 
the HTTPbis WG, and not inventing something specific for OAuth.

Best regards, Julian