Re: [OAUTH-WG] Preliminary OAuth Core draft -29

Dick Hardt <dick.hardt@gmail.com> Thu, 12 July 2012 16:16 UTC

Return-Path: <dick.hardt@gmail.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 5B53921F86D3 for <oauth@ietfa.amsl.com>; Thu, 12 Jul 2012 09:16:30 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -3.584
X-Spam-Level:
X-Spam-Status: No, score=-3.584 tagged_above=-999 required=5 tests=[AWL=0.015, BAYES_00=-2.599, RCVD_IN_DNSWL_LOW=-1]
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 R086DC1FI6sv for <oauth@ietfa.amsl.com>; Thu, 12 Jul 2012 09:16:29 -0700 (PDT)
Received: from mail-pb0-f44.google.com (mail-pb0-f44.google.com [209.85.160.44]) by ietfa.amsl.com (Postfix) with ESMTP id 9CFDB21F86D0 for <oauth@ietf.org>; Thu, 12 Jul 2012 09:16:29 -0700 (PDT)
Received: by pbcwy7 with SMTP id wy7so4208938pbc.31 for <oauth@ietf.org>; Thu, 12 Jul 2012 09:17:03 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=subject:mime-version:content-type:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to:x-mailer; bh=YDvGM0rtb7qyKrnuL9Qo/wnnXkBuNG5soYT9UeUoAQo=; b=fBDRocK9T4PFstHQQBJgj3PZpOixuRwzUct7djs2+MM9xGaMjPHJY+cV/PgwJY2A2M LrngQa5YPVf9seLrhouXrLmtEh5kDH2RrKoZXIkEkHYswk4gvL5Djnia/Dn4rxwivpEu mHzdsyjNxwAo3ztmMhtAj4vbZX0Li/+4YAq1YC0HNPg97qyVSbyGdRwSAU4e2d0D8oYt 7kSNJfNNid393ZUqmlq78xf5FS7lBe8GO4ppV3zLRWypDOUyjbD6ag2IuxGTMQF9nrfj VeWxdqejTOi4JbQpWrSNnTWksTPPT8iMddEpM83dn0U0uLkbcfth5sV9FmGUREZKyXBP VoqA==
Received: by 10.68.194.169 with SMTP id hx9mr6828418pbc.8.1342109823208; Thu, 12 Jul 2012 09:17:03 -0700 (PDT)
Received: from [10.0.0.4] (c-24-5-69-173.hsd1.ca.comcast.net. [24.5.69.173]) by mx.google.com with ESMTPS id gh9sm4122615pbc.20.2012.07.12.09.17.01 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 12 Jul 2012 09:17:02 -0700 (PDT)
Mime-Version: 1.0 (Apple Message framework v1278)
Content-Type: text/plain; charset="us-ascii"
From: Dick Hardt <dick.hardt@gmail.com>
In-Reply-To: <4FFE8B56.6030306@gmx.de>
Date: Thu, 12 Jul 2012 09:17:00 -0700
Content-Transfer-Encoding: quoted-printable
Message-Id: <792D4868-D54D-4127-B0AF-ED2FEC14EC09@gmail.com>
References: <4E1F6AAD24975D4BA5B16804296739436657C93A@TK5EX14MBXC283.redmond.corp.microsoft.com> <4FFAE2C8.5000109@gmx.de> <4E1F6AAD24975D4BA5B16804296739436657CE30@TK5EX14MBXC283.redmond.corp.microsoft.com> <4FFAF24D.5050805@gmx.de> <4FFE8B56.6030306@gmx.de>
To: Julian Reschke <julian.reschke@gmx.de>
X-Mailer: Apple Mail (2.1278)
Cc: "oauth@ietf.org" <oauth@ietf.org>
Subject: Re: [OAUTH-WG] Preliminary OAuth Core draft -29
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: Thu, 12 Jul 2012 16:16:30 -0000

Much appreciated Julian!

On Jul 12, 2012, at 1:31 AM, Julian Reschke wrote:

> On 2012-07-09 17:01, Julian Reschke wrote:
>> On 2012-07-09 16:48, Mike Jones wrote:
>>> HTML5 is not cited because it's a working draft - not an approved
>>> standard.  In what way is "the definition of the media type in HTML4
>>> is known to be insufficient"?  People have been successfully
>>> implementing form-urlencoding with it for quite some time. :-)  Is
>>> there a specific wording change that you'd suggest that we make that
>>> doesn't involve citing a working draft, rather than an approved standard?
>> 
>> For instance, the HTML4 "definition" doesn't even mention what to do
>> with non-ASCII characters.
>> 
>> I understand that it's not particularly attractive, but citing HTML4
>> just because it's a "standard" isn't really helpful for people who
>> actually follow the link and try to understand what needs to be
>> implemented.
>> ...
> 
> Here's an attempt to describe the encoding in terms of HTML4, plus additional instruction. This would need to be referenced anyway where the spec currently refers to the HTML4 media type definition:
> 
> -- snip --
> Appendix X. Use of the application/x-www-form-urlencoded Media Type
> 
> At the time of publication of this specification, the "application/x-www-form-urlencoded" media type was defined in Section 17.13.4 of [HTML4], but not registered in the IANA media types registry (<http://www.iana.org/assignments/media-types/index.html>). Furthermore, the definition is incomplete as it does not consider non-US-ASCII characters.
> 
> To address this shortcoming, when generating payloads using this media type, names and values MUST be encoded using the "UTF-8" character encoding scheme ([RFC3629]) first; the resulting octet sequence then needs to be further encoded using the escaping rules defined in [HTML4].
> 
> When parsing data from a payload using this media type, the names and values resulting from reversing the name/value encoding consequently need to be treated as octet sequences, to be decoded using the "UTF-8" character encoding scheme.
> 
> Example: A value consisting of the six Unicode code points (1) U+0020 (SPACE), (2) U+0025 (PERCENT SIGN), (3) U+0026 (AMPERSAND), (4) U+002B (PLUS SIGN), (5) U+00A3 (POUND SIGN), and (6) U+20AC (EURO SIGN) would be encoded into the octet sequence below (using hexadecimal notation):
> 
>  20 25 26 2B C2 A3 E2 82 AC
> 
> and then represented in the payload as:
> 
>  +%25%26%2B%C2%A3%E2%82%AC
> 
> -- snip --
> 
> Best regards, Julian
> _______________________________________________
> OAuth mailing list
> OAuth@ietf.org
> https://www.ietf.org/mailman/listinfo/oauth