RE: #295: Applying original fragment to "plain" redirected URI (also #43)

Eric Lawrence <ericlaw@exchange.microsoft.com> Sat, 28 May 2011 01:00 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 25A78E06C7 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Fri, 27 May 2011 18:00:02 -0700 (PDT)
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 RZsRAsuDba9A for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Fri, 27 May 2011 18:00:01 -0700 (PDT)
Received: from frink.w3.org (frink.w3.org [128.30.52.56]) by ietfa.amsl.com (Postfix) with ESMTP id AE33FE0734 for <httpbisa-archive-bis2Juki@lists.ietf.org>; Fri, 27 May 2011 18:00:00 -0700 (PDT)
Received: from lists by frink.w3.org with local (Exim 4.69) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1QQ7sg-0001p6-1n for ietf-http-wg-dist@listhub.w3.org; Sat, 28 May 2011 00:59:54 +0000
Received: from maggie.w3.org ([128.30.52.39]) by frink.w3.org with esmtp (Exim 4.69) (envelope-from <ericlaw@exchange.microsoft.com>) id 1QQ7rb-0001iE-5a for ietf-http-wg@listhub.w3.org; Sat, 28 May 2011 00:58:47 +0000
Received: from mail7.exchange.microsoft.com ([131.107.1.27] helo=mail.exchange.microsoft.com) by maggie.w3.org with esmtp (Exim 4.72) (envelope-from <ericlaw@exchange.microsoft.com>) id 1QQ7rY-0006U2-Su for ietf-http-wg@w3.org; Sat, 28 May 2011 00:58:46 +0000
Received: from df-h14-01.exchange.corp.microsoft.com (157.54.78.139) by DF-G14-02.exchange.corp.microsoft.com (157.54.87.56) with Microsoft SMTP Server (TLS) id 14.1.218.12; Fri, 27 May 2011 17:58:18 -0700
Received: from df-m14-03.exchange.corp.microsoft.com ([169.254.3.38]) by DF-H14-01.exchange.corp.microsoft.com ([157.54.78.139]) with mapi id 14.01.0289.008; Fri, 27 May 2011 17:58:18 -0700
From: Eric Lawrence <ericlaw@exchange.microsoft.com>
To: Adam Barth <w3c@adambarth.com>, Mark Nottingham <mnot@mnot.net>
CC: httpbis Group <ietf-http-wg@w3.org>
Thread-Topic: #295: Applying original fragment to "plain" redirected URI (also #43)
Thread-Index: AQHMHB6tLrJ8Ddu8bUWMRr1ys2njSJSgfmwAgADtMiA=
Date: Sat, 28 May 2011 00:58:17 +0000
Deferred-Delivery: Sat, 28 May 2011 00:58:00 +0000
Message-ID: <479CAD406474484E8FA0E39E694732C017C0C353@DF-M14-03.exchange.corp.microsoft.com>
References: <6A53E99A-019D-4F6D-A33D-24524CD34E17@mnot.net> <BANLkTinkgsBO6JhWZUGWhGu+6DRidLwLog@mail.gmail.com>
In-Reply-To: <BANLkTinkgsBO6JhWZUGWhGu+6DRidLwLog@mail.gmail.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
x-originating-ip: [157.54.51.110]
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
Received-SPF: pass client-ip=131.107.1.27; envelope-from=ericlaw@exchange.microsoft.com; helo=mail.exchange.microsoft.com
X-W3C-Hub-Spam-Status: No, score=-6.9
X-W3C-Hub-Spam-Report: BAYES_00=-1.9, RCVD_IN_DNSWL_HI=-5, SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01
X-W3C-Scan-Sig: maggie.w3.org 1QQ7rY-0006U2-Su 037a81d1047061f9e78406fba35a9c64
X-Original-To: ietf-http-wg@w3.org
Subject: RE: #295: Applying original fragment to "plain" redirected URI (also #43)
Archived-At: <http://www.w3.org/mid/479CAD406474484E8FA0E39E694732C017C0C353@DF-M14-03.exchange.corp.microsoft.com>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/10575
X-Loop: ietf-http-wg@w3.org
Sender: ietf-http-wg-request@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>
Resent-Message-Id: <E1QQ7sg-0001p6-1n@frink.w3.org>
Resent-Date: Sat, 28 May 2011 00:59:54 +0000

I've filed an issue in our database for consideration in IE10.

Having HTTPBIS clearly call for this behavior will definitely help support the case for making a change.

thanks,
Eric Lawrence

-----Original Message-----
From: ietf-http-wg-request@w3.org [mailto:ietf-http-wg-request@w3.org] On Behalf Of Adam Barth
Sent: Thursday, May 26, 2011 8:46 PM
To: Mark Nottingham
Cc: httpbis Group
Subject: Re: #295: Applying original fragment to "plain" redirected URI (also #43)

My understanding is that preserving the fragment across the redirect is a net positive for compatibility on the web.  In fact, Eric's blog post mentions that he learned about the behavior by investigating compat problems that IE faces because it lacks this behavior.  I certainly agree that it would be nice to make the specs less cloudy in this regard.  :)

Adam


On Thu, May 26, 2011 at 8:32 PM, Mark Nottingham <mnot@mnot.net> wrote:
> New issue: <http://trac.tools.ietf.org/wg/httpbis/trac/ticket/295>
>
> As Eric Lawrence pointed out on his blog:
>  
> http://blogs.msdn.com/b/ieinternals/archive/2011/05/17/url-fragments-a
> nd-redirects-anchor-hash-missing.aspx
>
> we don't define what happens when a request-URI has a fragment identifier and is redirected, but the Location header payload doesn't.
>
> As mentioned in #43, an old I-D did specify behaviour here:
>  http://tools.ietf.org/html/draft-bos-http-redirect-00
>
> Specifically:
>
> """
> If the server returns a response code of 300 ("multiple choice"), 301 ("moved permanently"), 302 ("moved temporarily") or 303 ("see other"), and if the server also returns one or more URIs where the resource can be found, then the client SHOULD treat the new URIs as if the fragment identifier of the original URI was added at the end.
> """
>
> By my testing <https://gist.github.com/330963>*, IE (6 to 9)** and Safari do not apply the fragid (T4 and T8), whereas Opera, Chrome and Firefox do. If anyone has results from other implementations, they'd be most welcome.
>
> I see two possible ways forward:
>  1) As with #43, explicitly state that there isn't interop here.
>  2) Define interop along the lines of draft-bos-http-redirect.
>
> I realise that #2 would break some existing implementations, but I've seen evidence of some real interop pain here, and defining interop where the spec is cloudy *is* within our charter.
>
> However, I'd really like to hear from implementers as to whether they'd be willing to change their implementations before going down that path.
>
>
> Regarding #43 <http://trac.tools.ietf.org/wg/httpbis/trac/ticket/43>, my most recent testing indicates that, putting aside T4 and T8, there *is* interop on fragment combination for IE6-9, Safari 5, Chrome (current), FF4, FF3.6.15, FF3.0.11, and Opera 11.10.
>
> This makes me wonder if we should, given this new information, re-open #43 and define precedence rules for fragment combination upon redirects. Thoughts?
>
> Regards,
>
>
> * Note that the "PASS/FAIL" terminology in those tests is misleading, as it assumes the semantics defined in draft-bos-http-redirect.
>
> ** IE 6-9 are interesting, in that the location bar URI does not reflect the fragment, nor is it available in JavaScript's location.hash; however the document *does* scroll to the appropriate place on the page when following the link.
>
> --
> Mark Nottingham   http://www.mnot.net/
>
>
>
>
>