Re: #428 Accept-Language ordering for identical qvalues

Julian Reschke <julian.reschke@gmx.de> Fri, 25 January 2013 13:58 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 7B11821F85DB for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Fri, 25 Jan 2013 05:58:24 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -9.77
X-Spam-Level:
X-Spam-Status: No, score=-9.77 tagged_above=-999 required=5 tests=[AWL=0.529, BAYES_00=-2.599, MIME_8BIT_HEADER=0.3, 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 u0ZOldmeFWhB for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Fri, 25 Jan 2013 05:58:23 -0800 (PST)
Received: from frink.w3.org (frink.w3.org [128.30.52.56]) by ietfa.amsl.com (Postfix) with ESMTP id 6145B21F8DCD for <httpbisa-archive-bis2Juki@lists.ietf.org>; Fri, 25 Jan 2013 05:58:23 -0800 (PST)
Received: from lists by frink.w3.org with local (Exim 4.72) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1Tyjlp-0007IG-TY for ietf-http-wg-dist@listhub.w3.org; Fri, 25 Jan 2013 13:56:41 +0000
Resent-Date: Fri, 25 Jan 2013 13:56:41 +0000
Resent-Message-Id: <E1Tyjlp-0007IG-TY@frink.w3.org>
Received: from lisa.w3.org ([128.30.52.41]) by frink.w3.org with esmtp (Exim 4.72) (envelope-from <julian.reschke@gmx.de>) id 1Tyjle-0007HA-L3 for ietf-http-wg@listhub.w3.org; Fri, 25 Jan 2013 13:56:30 +0000
Received: from mout.gmx.net ([212.227.17.20]) by lisa.w3.org with esmtp (Exim 4.72) (envelope-from <julian.reschke@gmx.de>) id 1TyjlZ-0005cd-Sx for ietf-http-wg@w3.org; Fri, 25 Jan 2013 13:56:30 +0000
Received: from mailout-de.gmx.net ([10.1.76.33]) by mrigmx.server.lan (mrigmx001) with ESMTP (Nemesis) id 0LtTty-1UzOSB3X64-010rSz for <ietf-http-wg@w3.org>; Fri, 25 Jan 2013 14:55:59 +0100
Received: (qmail invoked by alias); 25 Jan 2013 13:55:59 -0000
Received: from mail.greenbytes.de (EHLO [192.168.1.102]) [217.91.35.233] by mail.gmx.net (mp033) with SMTP; 25 Jan 2013 14:55:59 +0100
X-Authenticated: #1915285
X-Provags-ID: V01U2FsdGVkX199idQX2rp9GbA40bP1b5Q2gEZIX2sCuCBd4AYPrP nYc92yYhWVXHoo
Message-ID: <51028EE4.8070303@gmx.de>
Date: Fri, 25 Jan 2013 14:55:48 +0100
From: Julian Reschke <julian.reschke@gmx.de>
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/20130107 Thunderbird/17.0.2
MIME-Version: 1.0
To: "\"Martin J. Dürst\"" <duerst@it.aoyama.ac.jp>
CC: Mark Nottingham <mnot@mnot.net>, "Roy T. Fielding" <fielding@gbiv.com>, HTTP Working Group <ietf-http-wg@w3.org>
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> <E5B8C951-9C05-4CA4-8A17-2636FEF2A9E9@mnot.net> <424D5D15-6D83-45D7-A957-DE19D30BAF7A@gbiv.com> <51014A2B.5070102@gmx.de> <6B222DC3-3B1B-474D-B300-01282859D26E@mnot.net> <5102189B.3030009@it.aoyama.ac.jp> <5102233B.10502@gmx.de> <51028249.90407@gmx.de>
In-Reply-To: <51028249.90407@gmx.de>
Content-Type: text/plain; charset="UTF-8"; format="flowed"
Content-Transfer-Encoding: 8bit
X-Y-GMX-Trusted: 0
Received-SPF: pass client-ip=212.227.17.20; envelope-from=julian.reschke@gmx.de; helo=mout.gmx.net
X-W3C-Hub-Spam-Status: No, score=-3.3
X-W3C-Hub-Spam-Report: AWL=-3.348, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001
X-W3C-Scan-Sig: lisa.w3.org 1TyjlZ-0005cd-Sx d28bc73a393e04986854c3e866a6c1c1
X-Original-To: ietf-http-wg@w3.org
Subject: Re: #428 Accept-Language ordering for identical qvalues
Archived-At: <http://www.w3.org/mid/51028EE4.8070303@gmx.de>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/16217
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 2013-01-25 14:02, Julian Reschke wrote:
> On 2013-01-25 07:16, Julian Reschke wrote:
>> On 2013-01-25 06:31, "Martin J. Dürst" wrote:
>>> On 2013/01/25 8:37, Mark Nottingham wrote:
>>>> Removing the text does seem like the most expedient path forward.
>>>>
>>>> That said, I don't find it particularly satisfying; our job is to
>>>> improve interop, and when there are latent semantics that aren't
>>>> documented, we have to consider whether we're doing it well.
>>>>
>>>> I propose:
>>>>
>>>> """
>>>> Note that some recipients treat language tags that have the same
>>>> quality values (including when they are both missing) to be listed in
>>>> descending order of priority. However, this behaviour cannot be relied
>>>> upon, and if their relative priority is important, it ought to be
>>>> communicated by using different quality values.
>>>> """
>>>>
>>>> ... because I think it best captures where we're at.
>>>
>>> Maybe I'm getting this wrong, but it sounds to me that Julian is
>>> insisting that it's okay to send arbitrary replies (e.g. once French,
>>> once English at random) if there are no q-values. It has been very
>>
>> It is, according to the spec. If it hurts, don't do it (thus add
>> qvalues).
>>
>>> clearly explained that this is highly confusing (in other words, bad for
>>> interoperability). Even if the current spec allows this, it would be
>>> good to have some text in the new spec that says that's a bad idea.
>>
>> We could also say that leaving the choice to the server might lead to
>> different languages being picked in subsequent requests.
>>
>>> Otherwise, I'm fine with the above Note, except for a small nit:
>>> Please change "including when they are both missing" to "including when
>>> they are missing", because there may be more than two missing (or equal)
>>> q-values.
>>>
>>> Regards,   Martin.
>>
>> Best regards, Julian
>
> Proposed change:
> <http://trac.tools.ietf.org/wg/httpbis/trac/attachment/ticket/428/428.diff>.
>
>
> This removes the new text about ordering, and adds the note below:
>
>  >       Note: Some recipients treat language tags that have the same
>  >       quality values (including when they are missing) to be listed in
>  >       descending order of priority.  However, this behavior cannot be
>  >       relied upon, and if their relative priority is important -- such
>  >       as for consistent results for a sequence of requests -- it ought
>  >       to be communicated by using different quality values.
>
> Feedback appreciated, Julian

In the meantime, Roy resolved this in 
<http://trac.tools.ietf.org/wg/httpbis/trac/changeset/2163>, which works 
for me as well:

"Note that some recipients treat the order in which language tags are 
listed as an indication of descending priority, particularly for tags 
that are assigned equal quality values (no value is the same as q=1). 
However, this behavior cannot be relied upon. For consistency and to 
maximize interoperability, many user agents assign each language tag a 
unique quality value while also listing them in order of decreasing 
quality. Additional discussion of language priority lists can be found 
in Section 2.3 of [RFC4647]."

Best regards, Julian