Re: #322: Origin

Julian Reschke <julian.reschke@gmx.de> Wed, 14 December 2011 17:06 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 AA5BF21F8B92 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Wed, 14 Dec 2011 09:06:14 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -8.72
X-Spam-Level:
X-Spam-Status: No, score=-8.72 tagged_above=-999 required=5 tests=[AWL=1.879, BAYES_00=-2.599, RCVD_IN_DNSWL_HI=-8]
Received: from mail.ietf.org ([12.22.58.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id h5l9GjCTbh51 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Wed, 14 Dec 2011 09:06:13 -0800 (PST)
Received: from frink.w3.org (frink.w3.org [128.30.52.56]) by ietfa.amsl.com (Postfix) with ESMTP id DC60021F8AD2 for <httpbisa-archive-bis2Juki@lists.ietf.org>; Wed, 14 Dec 2011 09:06:13 -0800 (PST)
Received: from lists by frink.w3.org with local (Exim 4.69) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1RasHN-0007iA-1I for ietf-http-wg-dist@listhub.w3.org; Wed, 14 Dec 2011 17:06:05 +0000
Received: from aji.keio.w3.org ([133.27.228.206]) by frink.w3.org with esmtp (Exim 4.69) (envelope-from <julian.reschke@gmx.de>) id 1RasHD-0007dV-4q for ietf-http-wg@listhub.w3.org; Wed, 14 Dec 2011 17:05:55 +0000
Received: from mailout-de.gmx.net ([213.165.64.23]) by aji.keio.w3.org with smtp (Exim 4.72) (envelope-from <julian.reschke@gmx.de>) id 1RasH8-0001HD-P4 for ietf-http-wg@w3.org; Wed, 14 Dec 2011 17:05:54 +0000
Received: (qmail invoked by alias); 14 Dec 2011 17:05:17 -0000
Received: from mail.greenbytes.de (EHLO [192.168.1.140]) [217.91.35.233] by mail.gmx.net (mp015) with SMTP; 14 Dec 2011 18:05:17 +0100
X-Authenticated: #1915285
X-Provags-ID: V01U2FsdGVkX19ZaL5UUO1ZEF/vLfWBVPphuhFwFgjOo385B+JDul RZFsCPsOf/Yjfx
Message-ID: <4EE8D749.3080508@gmx.de>
Date: Wed, 14 Dec 2011 18:05:13 +0100
From: Julian Reschke <julian.reschke@gmx.de>
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:8.0) Gecko/20111105 Thunderbird/8.0
MIME-Version: 1.0
To: Mark Nottingham <mnot@mnot.net>
CC: HTTP Working Group <ietf-http-wg@w3.org>
References: <DDF6EEB5-8482-4B60-BBA3-16E07AC7E003@mnot.net>
In-Reply-To: <DDF6EEB5-8482-4B60-BBA3-16E07AC7E003@mnot.net>
Content-Type: text/plain; charset="ISO-8859-1"; format="flowed"
Content-Transfer-Encoding: 7bit
X-Y-GMX-Trusted: 0
Received-SPF: pass client-ip=213.165.64.23; envelope-from=julian.reschke@gmx.de; helo=mailout-de.gmx.net
X-W3C-Hub-Spam-Status: No, score=-1.9
X-W3C-Hub-Spam-Report: BAYES_00=-1.9, FREEMAIL_FROM=0.001, SPF_PASS=-0.001
X-W3C-Scan-Sig: aji.keio.w3.org 1RasH8-0001HD-P4 90efbe190322404343d7965132936ae3
X-Original-To: ietf-http-wg@w3.org
Subject: Re: #322: Origin
Archived-At: <http://www.w3.org/mid/4EE8D749.3080508@gmx.de>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/11844
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>
Resent-Message-Id: <E1RasHN-0007iA-1I@frink.w3.org>
Resent-Date: Wed, 14 Dec 2011 17:06:05 +0000

On 2011-12-14 04:27, Mark Nottingham wrote:
> <http://trac.tools.ietf.org/wg/httpbis/trac/ticket/322>
>
> Since we now have a definition of an Origin, it'd be good to use it where appropriate.

Not *entirely* convinced.

> Proposal for p7 2.2:
>
> """A protection space is defined by the origin [ref to origin rfc], combined with the realm value (if present)."""

We currently have:

  "canonical root URI (the scheme and authority components of the 
effective request URI; see Section 4.3 of [Part1])"

That is essentially the same as the Origin, if we add the the comparison 
rule from 
<http://greenbytes.de/tech/webdav/draft-ietf-httpbis-p1-messaging-17.html#rfc.section.2.7.3>

My concern is that the Origin spec does all these special things for 
case we don't need to care of. Maybe we should just define the "origin" 
of a effective request URI in Part 1, and state that it's the same as 
the one you'd get following the algorithm in the Origin spec?


> Proposal for p6 2.5:
>
> """However, a cache MUST NOT invalidate a URI from a Location or Content-Location header field if that URI does not have the same origin as that of the effective request URI (section 4.3 of [Part1]), as specified in [ref to origin rfc]."""

Currently: "However, a cache MUST NOT invalidate a URI from a Location 
or Content-Location header field if the host part of that URI differs 
from the host part in the effective request URI (Section 4.3 of 
[Part1]). This helps prevent denial of service attacks."

So this is *different* from Origin in that it doesn't take the scheme 
and the port into account. Is this an intentional change?

> Comments?

Best regards, Julian