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

"Manger, James H" <James.H.Manger@team.telstra.com> Sun, 09 October 2011 23:09 UTC

Return-Path: <James.H.Manger@team.telstra.com>
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 AD1BA21F8A6C for <oauth@ietfa.amsl.com>; Sun, 9 Oct 2011 16:09:06 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.412
X-Spam-Level:
X-Spam-Status: No, score=-1.412 tagged_above=-999 required=5 tests=[BAYES_05=-1.11, GB_I_LETTER=-2, HELO_EQ_AU=0.377, HOST_EQ_AU=0.327, RELAY_IS_203=0.994]
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 QJ8XhVgm5QVH for <oauth@ietfa.amsl.com>; Sun, 9 Oct 2011 16:09:06 -0700 (PDT)
Received: from ipxbvo.tcif.telstra.com.au (ipxbvo.tcif.telstra.com.au [203.35.135.204]) by ietfa.amsl.com (Postfix) with ESMTP id DE4F721F889A for <oauth@ietf.org>; Sun, 9 Oct 2011 16:09:04 -0700 (PDT)
X-IronPort-AV: E=Sophos;i="4.68,514,1312120800"; d="scan'208";a="48368749"
Received: from unknown (HELO ipcdvi.tcif.telstra.com.au) ([10.97.217.212]) by ipobvi.tcif.telstra.com.au with ESMTP; 10 Oct 2011 10:09:01 +1100
X-IronPort-AV: E=McAfee;i="5400,1158,6494"; a="38966028"
Received: from wsmsg3756.srv.dir.telstra.com ([172.49.40.84]) by ipcdvi.tcif.telstra.com.au with ESMTP; 10 Oct 2011 10:08:59 +1100
Received: from WSMSG3153V.srv.dir.telstra.com ([172.49.40.159]) by wsmsg3756.srv.dir.telstra.com ([172.49.40.84]) with mapi; Mon, 10 Oct 2011 10:09:00 +1100
From: "Manger, James H" <James.H.Manger@team.telstra.com>
To: Julian Reschke <julian.reschke@gmx.de>
Date: Mon, 10 Oct 2011 10:08:59 +1100
Thread-Topic: [OAUTH-WG] Possible alternative resolution to issue 26
Thread-Index: AcyE/bLVoTGOLQBCQWeLaqbQVFBTkQB07hFw
Message-ID: <255B9BB34FB7D647A506DC292726F6E1129060277B@WSMSG3153V.srv.dir.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>
In-Reply-To: <4E8F0D09.3020601@gmx.de>
Accept-Language: en-US, en-AU
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
acceptlanguage: en-US, en-AU
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.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: Sun, 09 Oct 2011 23:09:06 -0000

> 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),
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]


> 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.

--
James Manger