Re: [OAUTH-WG] Encoding of Errors in the Base and in the Bearer Spec

Eran Hammer <eran@hueniverse.com> Wed, 09 May 2012 23:04 UTC

Return-Path: <eran@hueniverse.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 4B48F11E80D1 for <oauth@ietfa.amsl.com>; Wed, 9 May 2012 16:04:47 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.551
X-Spam-Level:
X-Spam-Status: No, score=-2.551 tagged_above=-999 required=5 tests=[AWL=0.048, BAYES_00=-2.599]
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 GuEDJlFXGTwV for <oauth@ietfa.amsl.com>; Wed, 9 May 2012 16:04:46 -0700 (PDT)
Received: from p3plex2out04.prod.phx3.secureserver.net (p3plex2out04.prod.phx3.secureserver.net [184.168.131.18]) by ietfa.amsl.com (Postfix) with ESMTP id 2F5DE11E8086 for <oauth@ietf.org>; Wed, 9 May 2012 16:04:46 -0700 (PDT)
Received: from P3PWEX2HT003.ex2.secureserver.net ([184.168.131.11]) by p3plex2out04.prod.phx3.secureserver.net with bizsmtp id 7z4l1j0030EuLVk01z4lQr; Wed, 09 May 2012 16:04:45 -0700
Received: from P3PWEX2MB008.ex2.secureserver.net ([169.254.8.88]) by P3PWEX2HT003.ex2.secureserver.net ([184.168.131.11]) with mapi id 14.02.0247.003; Wed, 9 May 2012 16:04:45 -0700
From: Eran Hammer <eran@hueniverse.com>
To: Mike Jones <Michael.Jones@microsoft.com>, Hannes Tschofenig <hannes.tschofenig@gmx.net>, "oauth@ietf.org WG" <oauth@ietf.org>
Thread-Topic: [OAUTH-WG] Encoding of Errors in the Base and in the Bearer Spec
Thread-Index: AQHNLjANNsFaP6agWkmJphYfo3JtRpbCBDOQgAB+e4D//4880A==
Date: Wed, 09 May 2012 23:04:44 +0000
Message-ID: <0CBAEB56DDB3A140BA8E8C124C04ECA201026CA8@P3PWEX2MB008.ex2.secureserver.net>
References: <7D98C51F-84D8-48AA-B94D-EABE4D0921DB@gmx.net> <0CBAEB56DDB3A140BA8E8C124C04ECA201026B48@P3PWEX2MB008.ex2.secureserver.net> <4E1F6AAD24975D4BA5B1680429673943664CE3AE@TK5EX14MBXC283.redmond.corp.microsoft.com>
In-Reply-To: <4E1F6AAD24975D4BA5B1680429673943664CE3AE@TK5EX14MBXC283.redmond.corp.microsoft.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
x-originating-ip: [64.74.213.174]
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
Subject: Re: [OAUTH-WG] Encoding of Errors in the Base and in the Bearer Spec
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: Wed, 09 May 2012 23:04:47 -0000

There was no such discuss on the core specification.

The only open discuss on the core specification related to character sets is to translate the EXISTING prose into ABNF which will not have any implementation impact.

The proper response to the bearer specification discuss was to simply add a registry there, and to clearly state that this matter was discussed extensively by the WG and the design committee. Instead of representing this information to the IESG, you failed to do your job as editor and offered your personal view which was rejected by the WG and recorded in the issue tracker at the time.

You don't get a second chance to insert your personal position during the IESG review process. As editor, you only get to represent the WG consensus when addressing issues. If you go and read my responses to the long list of discuss items on the core specification you will see that I represented views I personally did not agree with (the lack of interop, undefined security, etc.) because as editor, I don't get to go to the IESG and disrespect the WG's decision.

The IESG members rely on the editor to represent the WG decisions to them when addressing issues. You failed to do that, promoted your personal view, and now we are having this discussion all over again - a discussion that last time was only resolved by creating the design committee.

EH


> -----Original Message-----
> From: Mike Jones [mailto:Michael.Jones@microsoft.com]
> Sent: Wednesday, May 09, 2012 3:41 PM
> To: Eran Hammer; Hannes Tschofenig; oauth@ietf.org WG
> Subject: RE: [OAUTH-WG] Encoding of Errors in the Base and in the Bearer
> Spec
> 
> There was a DISCUSS on the core spec asking us to cite the character set
> restrictions for scope and error values in the core spec, rather than defining
> them in the bearer spec.  It turns out that I could not do that as the core spec
> is currently written, because the character set restrictions are not present in
> the core spec.  If they are added to the core spec, I can satisfy the bearer
> DISCUSS by doing so.  If the restrictions are not added, I cannot.
> 
> This consensus call is part of resolving this DISCUSS, which affects both specs.
> 
> 				-- Mike
> 
> -----Original Message-----
> From: oauth-bounces@ietf.org [mailto:oauth-bounces@ietf.org] On Behalf
> Of Eran Hammer
> Sent: Wednesday, May 09, 2012 3:35 PM
> To: Hannes Tschofenig; oauth@ietf.org WG
> Subject: Re: [OAUTH-WG] Encoding of Errors in the Base and in the Bearer
> Spec
> 
> I am confused by the process here.
> 
> The IESG review raised a LONG list of discuss items for the core specification.
> I was able to successfully address all but three remaining issues:
> 
> 1. Lack of ABNF - I will do it myself this week since no one else bothered to
> offer their help.
> 2. Registry rules - waiting for this to be cleared; have addressed the issue but
> didn't hear back yet.
> 3. Comment on not allowing a fragment in redirection and endpoint URIs -
> waiting for text or item closed.
> 
> Every other issue for this document has been closed.
> 
> This WG cannot just go back after WG LC, IETF LC, and IESG review and make
> changes. This work is done, and any change made at this point must be for
> the sole purpose of addressing a discuss item. There are no discuss items for
> *this* document related to errors. They have all been raised in detail,
> addressed, and closed!
> 
> As for this survey -
> 
> While I am still very much opposed to adding the protected resource registry
> function to the core specification, this new issue clearly demonstrate that
> this is not simply a matter of adding another error location.
> 
> The core spec currently provides full guidance and definition for error
> extensibility. Extending the registry's scope means the need for non-trivial
> new text that:
> 
> * explains the process of adding new errors for endpoints not defined by this
> specification,
> * finds a common ground for value restrictions beyond what is already listed,
> * guide authors of future HTTP authentication schemes meant for use with
> OAuth (e.g. MAC) for their requirements for using the error registry, and
> * address the very likely scenario of the same error code carrying different
> meanings in different endpoints, or an extension that adds a location to a
> code already defined elsewhere - something very likely to happen if you
> cross the two very different domains (OAuth endpoints, Protected resource
> endpoints). This requires changing the entire structure of the registry to
> create separate records for each code/location pair.
> 
> Any change to the core specification MUST address all these items. This is
> absolutely NOT a matter of simply adding another location or throwing some
> extra ABNF. Adding such new text will require another IETF LC and another
> IESG review - which are completely unjustified based on where the
> document is in its IESG review process.
> 
> The point of IESG review is to close issues with minimal changes, not take it
> as an opportunity to sneak new functionality into the document. And it's not
> like this WG has not debated these items before, and made consensus calls
> on them.
> 
> Not adding the protected resource location to the registry was the result of
> intense negotiation both on the list and by the design committee. What was
> the point of asking a few of us to spend hours on the phone debating these
> issues and reaching a conclusion if it's another popularity contest now. We
> had FULL consensus by the design committee NOT to add the bearer errors
> to the core specification, and this recommendation was fully supported by
> the WG and documented in the issues tracker.
> 
> These WG surveys are an insult to proper process.
> 
> EH
> 
> 
> 
> 
> > -----Original Message-----
> > From: oauth-bounces@ietf.org [mailto:oauth-bounces@ietf.org] On Behalf
> > Of Hannes Tschofenig
> > Sent: Wednesday, May 09, 2012 3:07 PM
> > To: oauth@ietf.org WG
> > Subject: [OAUTH-WG] Encoding of Errors in the Base and in the Bearer
> > Spec
> >
> > Hi all,
> >
> > another issue that came up in Sean's IESG review was about the
> > encoding of the error / error_description / error_uri in the base and
> > in the bearer specification.
> >
> > As mentioned in my earlier mail about the registry for the error codes
> > there are three error fields defined in the two specification and the
> > error / error_description / error_uri fields are allowed to appear in
> > different parts of an HTTP message.
> > Depending on where they show up different encoding restrictions apply.
> >
> > For the core specification these error fields may appear in the
> > * body of the HTTP message (encoded in JSON)
> > * parameters to the query component of the redirection URI (using the
> >   "application/x-www-form-urlencoded" format)
> >
> > For the bearer specification these error fields appear in the HTTP header.
> > Consequently, http://tools.ietf.org/html/draft-ietf-oauth-v2-bearer-19
> > says 'values for the "error" and "error_description" attributes MUST
> > NOT include characters outside the set %x20-21 / %x23-5B / %x5D-7E.'
> >
> > Now, here is the question. While these errors are essentially copied
> > over from one spec to the other the different encoding restrictions
> > make them different. Do we want different encodings of errors in the two
> documents?
> >
> > So, I see two options:
> >
> > 1) Leave the encoding as it is. This means the encoding of the error /
> > error_description / error_uri in the two specifications is different.
> >
> > 2) Harmonize the encoding between the two specifications by
> > incorporating the restrictions from the bearer specification into the base
> specification.
> >
> > Please indicate your preference by the end of next week (18th May 2012).
> >
> > Ciao
> > Hannes
> >
> > _______________________________________________
> > OAuth mailing list
> > OAuth@ietf.org
> > https://www.ietf.org/mailman/listinfo/oauth
> _______________________________________________
> OAuth mailing list
> OAuth@ietf.org
> https://www.ietf.org/mailman/listinfo/oauth
>