Re: #428 Accept-Language ordering for identical qvalues

Amos Jeffries <squid3@treenet.co.nz> Fri, 18 January 2013 08:48 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 9BF5721F8877 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Fri, 18 Jan 2013 00:48:44 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -10.599
X-Spam-Level:
X-Spam-Status: No, score=-10.599 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, 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 tsliwQ28GOBV for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Fri, 18 Jan 2013 00:48:43 -0800 (PST)
Received: from frink.w3.org (frink.w3.org [128.30.52.56]) by ietfa.amsl.com (Postfix) with ESMTP id A995721F887F for <httpbisa-archive-bis2Juki@lists.ietf.org>; Fri, 18 Jan 2013 00:48:43 -0800 (PST)
Received: from lists by frink.w3.org with local (Exim 4.72) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1Tw7bZ-0005oR-Ba for ietf-http-wg-dist@listhub.w3.org; Fri, 18 Jan 2013 08:47:17 +0000
Resent-Date: Fri, 18 Jan 2013 08:47:17 +0000
Resent-Message-Id: <E1Tw7bZ-0005oR-Ba@frink.w3.org>
Received: from maggie.w3.org ([128.30.52.39]) by frink.w3.org with esmtp (Exim 4.72) (envelope-from <squid3@treenet.co.nz>) id 1Tw7bV-0005nh-1n for ietf-http-wg@listhub.w3.org; Fri, 18 Jan 2013 08:47:13 +0000
Received: from ip-58-28-153-233.static-xdsl.xnet.co.nz ([58.28.153.233] helo=treenet.co.nz) by maggie.w3.org with esmtp (Exim 4.72) (envelope-from <squid3@treenet.co.nz>) id 1Tw7bT-0002Vf-Oo for ietf-http-wg@w3.org; Fri, 18 Jan 2013 08:47:12 +0000
Received: from [192.168.1.109] (unknown [14.1.64.4]) by treenet.co.nz (Postfix) with ESMTP id AF9A4E70F1 for <ietf-http-wg@w3.org>; Fri, 18 Jan 2013 21:46:42 +1300 (NZDT)
Message-ID: <50F90BEF.8080604@treenet.co.nz>
Date: Fri, 18 Jan 2013 21:46:39 +1300
From: Amos Jeffries <squid3@treenet.co.nz>
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/20130107 Thunderbird/17.0.2
MIME-Version: 1.0
To: ietf-http-wg@w3.org
References: <50F6CD98.8080802@gmx.de> <2BF19800-66E0-42DC-B0B5-0F8CA6AE6379@gbiv.com> <50F7C0DC.90906@gmx.de> <838B1C13-3170-4BA1-8F1F-E171137E0BC8@gbiv.com> <50F86739.40302@gmx.de>
In-Reply-To: <50F86739.40302@gmx.de>
Content-Type: text/plain; charset="ISO-8859-1"; format="flowed"
Content-Transfer-Encoding: 7bit
Received-SPF: pass client-ip=58.28.153.233; envelope-from=squid3@treenet.co.nz; helo=treenet.co.nz
X-W3C-Hub-Spam-Status: No, score=-4.4
X-W3C-Hub-Spam-Report: AWL=-2.499, BAYES_00=-1.9, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001
X-W3C-Scan-Sig: maggie.w3.org 1Tw7bT-0002Vf-Oo abea5f93a5547b733ba95eeecf904f6a
X-Original-To: ietf-http-wg@w3.org
Subject: Re: #428 Accept-Language ordering for identical qvalues
Archived-At: <http://www.w3.org/mid/50F90BEF.8080604@treenet.co.nz>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/15988
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>

On 18/01/2013 10:03 a.m., Julian Reschke wrote:
> On 2013-01-17 11:17, Roy T. Fielding wrote:
>> On Jan 17, 2013, at 1:14 AM, Julian Reschke wrote:
>>
>>> On 2013-01-17 09:59, Roy T. Fielding wrote:
>>>> The change is to improve interoperability when the preferences sent
>>>> result in a tie or contain no qvalues.
>>>>
>>>> http://www.w3.org/International/questions/qa-lang-priorities.en.php
>>>>
>>>> Firefox and Chrome have an ordered language UI that takes whatever
>>>> list the user comes up with and creates q-values to associate with
>>>> each language tag after the first.  The languages are always listed
>>>> in order of preference.  I've heard that Opera and MSIE do the same
>>>
>>> But they have different qvalues, so these UAs do *not* rely on 
>>> ordering.
>>
>> They order them *and* they send qvalues, because of broken sites like
>>
>>     http://wiki.nginx.org/AcceptLanguageModule
>
> ...so they do not rely on recipients treating the list as ordered.
>
>> and the change I made has no effect on UAs that send qvalues.
>
> Agreed.
>
>> It does, however, improve the lot for users of other user agents
>> that either do not send qvalues or allow the user to specify the
>> value by hand, either of which can result in same-valued tags.
>
> Well, it's doing that at the cost of making recipients non-compliant 
> that implement RFC 2068/2616. So this is a change that would need to 
> be listed in the Changes section.
>

I'm with Roy on this one. It's not adding any new requirement about 
interpretation, simply stating that the list is ordered, as is actually 
the case from most senders.
There is no requirement added/removed about server interpretation so 
those servers implementing random selection out of the ordered set are 
still compliant. Those servers implementing ordered interpretation are 
now compliant - where before with the list defined as un-ordered they 
would be non-compliant due to mis-interpreting an un-ordered list as 
ordered.


>>>> but haven't tested.  Chrome has a bug with the ordering of tags to
>>>> match the UI, but that's orthogonal to this issue.
>>>>
>>>> ...
>>>>
>>>> Older browsers did not send qvalues. Hence, server implementations
>>>> of language negotiation do use the ordering provided as I described
>>>> in the change.
>>>
>>> Some, apparently. But not all. Servers have been written according 
>>> to the spec, ignoring ordering. If we make ordering significant, 
>>> these will not interoperate anymore.
>>
>> In what way do they interoperate now, and in what way does that
>> change?  As far as I can tell, the only effect this change has
>> is a suggestion that they not respond randomly.
>
> Right now they interoperate as specified by the spec. If we change the 
> spec, they do not anymore (or only some of the time).
>

The new spec does not forbid random selection. Merely states that the 
client *wants* it to be interpreted non-randomly. Obeying that client 
preference is still optional.

Amos