Re: #428 Accept-Language ordering for identical qvalues

James M Snell <jasnell@gmail.com> Tue, 22 January 2013 06:01 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 63A8221F873C for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Mon, 21 Jan 2013 22:01:21 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -9.298
X-Spam-Level:
X-Spam-Status: No, score=-9.298 tagged_above=-999 required=5 tests=[AWL=1.300, BAYES_00=-2.599, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_HI=-8]
Received: from mail.ietf.org ([64.170.98.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id RR4tQr95ua8n for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Mon, 21 Jan 2013 22:01:20 -0800 (PST)
Received: from frink.w3.org (frink.w3.org [128.30.52.56]) by ietfa.amsl.com (Postfix) with ESMTP id 456B421F865D for <httpbisa-archive-bis2Juki@lists.ietf.org>; Mon, 21 Jan 2013 22:01:20 -0800 (PST)
Received: from lists by frink.w3.org with local (Exim 4.72) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1TxWtL-0003Gh-Jb for ietf-http-wg-dist@listhub.w3.org; Tue, 22 Jan 2013 05:59:27 +0000
Resent-Date: Tue, 22 Jan 2013 05:59:27 +0000
Resent-Message-Id: <E1TxWtL-0003Gh-Jb@frink.w3.org>
Received: from maggie.w3.org ([128.30.52.39]) by frink.w3.org with esmtp (Exim 4.72) (envelope-from <jasnell@gmail.com>) id 1TxWtG-0003Fx-6g for ietf-http-wg@listhub.w3.org; Tue, 22 Jan 2013 05:59:22 +0000
Received: from mail-ie0-f181.google.com ([209.85.223.181]) by maggie.w3.org with esmtps (TLS1.0:RSA_ARCFOUR_SHA1:16) (Exim 4.72) (envelope-from <jasnell@gmail.com>) id 1TxWtF-0005t2-7Q for ietf-http-wg@w3.org; Tue, 22 Jan 2013 05:59:22 +0000
Received: by mail-ie0-f181.google.com with SMTP id 16so11039244iea.26 for <ietf-http-wg@w3.org>; Mon, 21 Jan 2013 21:58:55 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:mime-version:in-reply-to:references:from:date:message-id :subject:to:cc:content-type; bh=PJX8pIcI8AegGIhialmZDo6vJsQmv/c5j76vIHuXS+g=; b=qi3RdRSmyR69veAPKgr9xb2eKzwA4WMPiicQMpKRsTtQxr+96NY/49gJPOpBbfVfKZ Psw6Lto0rfpZwhkP5q3l5wYFcvaB53XqUbhAlzLGMx0sxpRTiuwzXOjSG4sW5/VThqjW YPaEveo2kELO2EyI1xRe1Gx3Gcdh8u5BWrymPGHWyySm1IcTdk/h2j+nUdPzE1a1I6vR wpq5vHseiNRhYRvvIzo9Eup7T+ZLpxxrG1ANW5mmy3Nyn29uT9UKcurgb3zjwm9/LNaV waNtGmC2iZcGs6edE2tc0UNKge0rDntpBIJjHa9YZTJKXCg4NHqy6f2Qb7aHxme8IU0S WaiQ==
X-Received: by 10.50.236.38 with SMTP id ur6mr10844310igc.19.1358834335423; Mon, 21 Jan 2013 21:58:55 -0800 (PST)
MIME-Version: 1.0
Received: by 10.64.26.137 with HTTP; Mon, 21 Jan 2013 21:58:35 -0800 (PST)
In-Reply-To: <E4E8D79C-E420-45FE-82D0-00C83242F398@mnot.net>
References: <50F6CD98.8080802@gmx.de> <99A8B4D1-BE1B-4965-9B78-1EC90455E102@mnot.net> <F4C2A095-50C7-451B-9AFF-A200592CCB4D@gbiv.com> <98F554C9-4FCB-47E4-A018-FE02558FEA49@mnot.net> <6E9D9BB9-A5F5-417A-A640-AF03AFCC6496@gbiv.com> <E4E8D79C-E420-45FE-82D0-00C83242F398@mnot.net>
From: James M Snell <jasnell@gmail.com>
Date: Mon, 21 Jan 2013 21:58:35 -0800
Message-ID: <CABP7RbdECWmkcknKVaq_LPUpsEsSiKOdJ-au2aw89nQX+bKdMQ@mail.gmail.com>
To: Mark Nottingham <mnot@mnot.net>
Cc: "Roy T. Fielding" <fielding@gbiv.com>, "Julian F. Reschke" <julian.reschke@gmx.de>, HTTP Working Group <ietf-http-wg@w3.org>
Content-Type: multipart/alternative; boundary="14dae9340bb3df1bd704d3da459e"
Received-SPF: pass client-ip=209.85.223.181; envelope-from=jasnell@gmail.com; helo=mail-ie0-f181.google.com
X-W3C-Hub-Spam-Status: No, score=-4.5
X-W3C-Hub-Spam-Report: AWL=-1.760, BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001
X-W3C-Scan-Sig: maggie.w3.org 1TxWtF-0005t2-7Q 099a3b04cf53a20b3186af80ba7003b6
X-Original-To: ietf-http-wg@w3.org
Subject: Re: #428 Accept-Language ordering for identical qvalues
Archived-At: <http://www.w3.org/mid/CABP7RbdECWmkcknKVaq_LPUpsEsSiKOdJ-au2aw89nQX+bKdMQ@mail.gmail.com>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/16095
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>

+1 on this... in the end, it's far better to have all the similar things
acting in the same way. Not only does that help developers, it's going to
help us make improvements in 2.0 and beyond.


On Mon, Jan 21, 2013 at 2:41 AM, Mark Nottingham <mnot@mnot.net> wrote:

>
> On 21/01/2013, at 7:37 PM, Roy T. Fielding <fielding@gbiv.com> wrote:
>
> > On Jan 20, 2013, at 1:51 PM, Mark Nottingham wrote:
> >> On 20/01/2013, at 11:52 PM, Roy T. Fielding <fielding@gbiv.com> wrote:
> >>
> >>> On Jan 19, 2013, at 6:34 PM, Mark Nottingham wrote:
> >>>
> >>>> Julian et al,
> >>>>
> >>>> I think the important bit here is the context that we're talking
> about the semantics of an expressed preference -- which can be freely
> ignored, or selectively applied, without affecting conformance. The
> important thing is that the preference itself have clear semantics, which I
> think Roy's change does (especially in concert with changes elsewhere).
> >>>>
> >>>> As such, I think the relevant question is whether this is specific to
> A-L, or all A-* that take qvalues. Roy, thoughts?
> >>>
> >>> I am pretty sure it is specific to languages.  Accept has never been
> >>> treated as an ordered list, Accept-Encoding was originally designed
> >>> to prefer the smallest representation (changing that to qvalues was
> >>> unfortunate), and Accept-Charset is almost deprecated at this point.
> >>
> >>
> >> So, wouldn't the same arguments (minus the implementation status) apply
> to Accept?
> >>
> >> I.e., if it's just a preference, and the server is free to choose among
> the preferences anyway (or even ignore them), why *not* say Accept is
> ordered?
> >
> > I don't see any value in that given the lack of users setting the
> > values for Accept directly (outside of command-line tool usage)
> > and no assumption among UAs that Accept is ordered.
> >
> > Apache httpd resolves ties in type negotiation using the
> > internal ordering of representation variants.  That is unlike
> > languages, for which the code deliberately checks the order received
> > in Accept-Language for resolving ties.
> >
> > Regarding proactive negotiation in HTTP/2, I'll note that Waka
> > strips all negotiation fields.  I find the entire feature revolting,
> > from every architectural perspective, and would take the opportunity
> > of 2.x to remove it entirely.
>
>
> The value is that Accept-* headers all use qvalues the same way, which is
> much less confusing for pretty much everybody, and paves the way for a
> potentially simpler approach in 2.0 (your feelings about having proactive
> negotiation at all noted).
>
> Again, implementations are free to ignore it -- this is merely the
> semantics of the preference, not constraints on how it's followed.
>
>
> --
> Mark Nottingham   http://www.mnot.net/
>
>
>
>
>