Re: anchor parameter - LC comment on draft-nottingham-http-link-header-07.txt

Julian Reschke <julian.reschke@gmx.de> Fri, 26 February 2010 09:47 UTC

Return-Path: <julian.reschke@gmx.de>
X-Original-To: apps-discuss@core3.amsl.com
Delivered-To: apps-discuss@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id 2EA8528C11E for <apps-discuss@core3.amsl.com>; Fri, 26 Feb 2010 01:47:18 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -3.378
X-Spam-Level:
X-Spam-Status: No, score=-3.378 tagged_above=-999 required=5 tests=[AWL=-0.779, BAYES_00=-2.599]
Received: from mail.ietf.org ([64.170.98.32]) by localhost (core3.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 4Gg1Ruk2YV2s for <apps-discuss@core3.amsl.com>; Fri, 26 Feb 2010 01:47:17 -0800 (PST)
Received: from mail.gmx.net (mail.gmx.net [213.165.64.20]) by core3.amsl.com (Postfix) with SMTP id 951C928C11A for <discuss@apps.ietf.org>; Fri, 26 Feb 2010 01:47:16 -0800 (PST)
Received: (qmail invoked by alias); 26 Feb 2010 09:49:28 -0000
Received: from p508FCB96.dip.t-dialin.net (EHLO [192.168.178.33]) [80.143.203.150] by mail.gmx.net (mp066) with SMTP; 26 Feb 2010 10:49:28 +0100
X-Authenticated: #1915285
X-Provags-ID: V01U2FsdGVkX1/krm9lJ9HkajPjmS9onx5iRJYqTwZ49nwU3Ojw/p g2UiXV3Sm0Q3rU
Message-ID: <4B879921.9060900@gmx.de>
Date: Fri, 26 Feb 2010 10:49:21 +0100
From: Julian Reschke <julian.reschke@gmx.de>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.8.0.4) Gecko/20060516 Thunderbird/1.5.0.4 Mnenhy/0.7.4.666
MIME-Version: 1.0
To: Mark Nottingham <mnot@mnot.net>
Subject: Re: anchor parameter - LC comment on draft-nottingham-http-link-header-07.txt
References: <20100119053002.5CD613A683B@core3.amsl.com> <E4FF7733-D744-4AC3-AB99-66A12868E4CE@mnot.net> <4B56E27D.800@gmx.de> <4B584E46.7000405@gmx.de> <2C94E45E-3373-4694-BFA3-FA7B595EAF65@mnot.net> <4B596450.7020001@gmx.de> <F1BF65AA-AE8F-435D-9097-AD629488E134@mnot.net> <4B62D875.102@gmx.de> <7B248F44-44D9-4054-84A2-E9C4C5C251E1@mnot.net> <4B6C1144.4090502@gmx.de> <5C1BFD92-7E8D-4ABF-A986-03ADC50A18CD@mnot.net> <4B7E5A62.6080304@gmx.de> <CF905E97-0BDC-47A5-8F7E-01B0136CE384@mnot.net>
In-Reply-To: <CF905E97-0BDC-47A5-8F7E-01B0136CE384@mnot.net>
Content-Type: text/plain; charset="ISO-8859-1"; format="flowed"
Content-Transfer-Encoding: 7bit
X-Y-GMX-Trusted: 0
X-FuHaFi: 0.59999999999999998
Cc: Apps Discuss <discuss@apps.ietf.org>, HTTP Working Group <ietf-http-wg@w3.org>
X-BeenThere: apps-discuss@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: General discussion of application-layer protocols <apps-discuss.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/apps-discuss>, <mailto:apps-discuss-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/apps-discuss>
List-Post: <mailto:apps-discuss@ietf.org>
List-Help: <mailto:apps-discuss-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/apps-discuss>, <mailto:apps-discuss-request@ietf.org?subject=subscribe>
X-List-Received-Date: Fri, 26 Feb 2010 09:47:18 -0000

On 26.02.2010 05:44, Mark Nottingham wrote:
> What's<ref>  here? I still don't see where the decision is made... at worst, this makes it seem like consumers can make an arbitrary decision as to whether to process a link with an anchor.

<ref> would point to text that states how to resolve against the context 
IRI when present.

And yes, I think consumers can make an almost arbitrary decision about 
it -- either they ignore the syntax they don't grok, or they process it 
as specified (where there's really only a single way to process them).

> This is where I am now:
>
>    Links with the anchor parameter MUST be ignored by consuming implementations, unless their use is explicitly specified.

That doesn't work for me, as it makes it sound that somebody needs to do 
additional work to "specify" it. Who? And what? The only thing that 
needs to be said is that the anchor param modifies the context, and 
recipients are allowed to ignore it if the resolved context IRI differs 
from the original one.

So how about (adding more context):

"The anchor parameter overrides this with another URI, such as a 
fragment of this resource, or a third resource (i.e., when the anchor 
value is an absolute URI).  If the anchor parameter's value is a 
relative URI, parsers MUST resolve it as per [RFC3986], Section 5.  Note 
that any base URI from the body's content is not applied.

Note that the presence of the anchor parameter affects the context IRI. 
Thus, consumers either MUST ignore all links that include the anchor 
parameter, or process it according to its definition above. In the 
latter case, the resulting context IRI can identify an entirely 
different resource, in which case consumers can choose to ignore the link."

(We might have to tune the paragraph for the case where the context 
resource is anonymous, though)

 > ...

Best regards, Julian