Re: #428 Accept-Language ordering for identical qvalues

"Martin J. Dürst" <duerst@it.aoyama.ac.jp> Mon, 28 January 2013 02:53 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 BBBBB21F84B6 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Sun, 27 Jan 2013 18:53:47 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -7.672
X-Spam-Level:
X-Spam-Status: No, score=-7.672 tagged_above=-999 required=5 tests=[AWL=2.627, 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 qyfSGGy0gRWp for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Sun, 27 Jan 2013 18:53:47 -0800 (PST)
Received: from frink.w3.org (frink.w3.org [128.30.52.56]) by ietfa.amsl.com (Postfix) with ESMTP id 26DA721F8455 for <httpbisa-archive-bis2Juki@lists.ietf.org>; Sun, 27 Jan 2013 18:53:47 -0800 (PST)
Received: from lists by frink.w3.org with local (Exim 4.72) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1Tzeov-0003qk-Ny for ietf-http-wg-dist@listhub.w3.org; Mon, 28 Jan 2013 02:51:41 +0000
Resent-Date: Mon, 28 Jan 2013 02:51:41 +0000
Resent-Message-Id: <E1Tzeov-0003qk-Ny@frink.w3.org>
Received: from maggie.w3.org ([128.30.52.39]) by frink.w3.org with esmtp (Exim 4.72) (envelope-from <duerst@it.aoyama.ac.jp>) id 1Tzeoq-0003pS-6T for ietf-http-wg@listhub.w3.org; Mon, 28 Jan 2013 02:51:36 +0000
Received: from scintmta01.scbb.aoyama.ac.jp ([133.2.253.33]) by maggie.w3.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.72) (envelope-from <duerst@it.aoyama.ac.jp>) id 1Tzeoo-0002A6-IK for ietf-http-wg@w3.org; Mon, 28 Jan 2013 02:51:36 +0000
Received: from scmse01.scbb.aoyama.ac.jp ([133.2.253.231]) by scintmta01.scbb.aoyama.ac.jp (secret/secret) with SMTP id r0S2p597017746 for <ietf-http-wg@w3.org>; Mon, 28 Jan 2013 11:51:05 +0900
Received: from (unknown [133.2.206.133]) by scmse01.scbb.aoyama.ac.jp with smtp id 7659_5a0e_8f25f860_68f5_11e2_9854_001d096c566a; Mon, 28 Jan 2013 11:51:04 +0900
Received: from [IPv6:::1] ([133.2.210.1]:39502) by itmail.it.aoyama.ac.jp with [XMail 1.22 ESMTP Server] id <S162F8D3> for <ietf-http-wg@w3.org> from <duerst@it.aoyama.ac.jp>; Mon, 28 Jan 2013 11:51:05 +0900
Message-ID: <5105E795.7030905@it.aoyama.ac.jp>
Date: Mon, 28 Jan 2013 11:51:01 +0900
From: "\"Martin J. Dürst\"" <duerst@it.aoyama.ac.jp>
Organization: Aoyama Gakuin University
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.1.9) Gecko/20100722 Eudora/3.0.4
MIME-Version: 1.0
To: Julian Reschke <julian.reschke@gmx.de>
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> <51028EE4.8070303@gmx.de>
In-Reply-To: <51028EE4.8070303@gmx.de>
Content-Type: text/plain; charset="UTF-8"; format="flowed"
Content-Transfer-Encoding: 8bit
Received-SPF: none client-ip=133.2.253.33; envelope-from=duerst@it.aoyama.ac.jp; helo=scintmta01.scbb.aoyama.ac.jp
X-W3C-Hub-Spam-Status: No, score=-4.6
X-W3C-Hub-Spam-Report: AWL=-2.253, BAYES_00=-1.9, RP_MATCHES_RCVD=-0.422
X-W3C-Scan-Sig: maggie.w3.org 1Tzeoo-0002A6-IK bbbe2468526f6590c8ae6eac5b9c4317
X-Original-To: ietf-http-wg@w3.org
Subject: Re: #428 Accept-Language ordering for identical qvalues
Archived-At: <http://www.w3.org/mid/5105E795.7030905@it.aoyama.ac.jp>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/16225
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 22:55, Julian Reschke wrote:
> 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:

>> 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]."

Sorry, but I'm not yet happy with this. It doesn't mention the random 
return problem at all, and puts all responsibility on the client.

So I propose adding the following:

Note that it would be allowed for servers to return a version at random 
if they receive language tags with equal quality values. However, this 
can be very confusing for human users. A more deterministic behavior, 
e.g. treating the order in which language tags are listed as an 
indication of descending priority for tags that are assigned equal 
quality values, is preferable.

Regards,   Martin.