parameter quoting - LC comment on draft-nottingham-http-link-header-07.txt

Julian Reschke <julian.reschke@gmx.de> Thu, 21 January 2010 13:48 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 A6EFE3A67AD for <apps-discuss@core3.amsl.com>; Thu, 21 Jan 2010 05:48:01 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -5.169
X-Spam-Level:
X-Spam-Status: No, score=-5.169 tagged_above=-999 required=5 tests=[AWL=-2.570, 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 IxOugJQk7SLb for <apps-discuss@core3.amsl.com>; Thu, 21 Jan 2010 05:48:00 -0800 (PST)
Received: from mail.gmx.net (mail.gmx.net [213.165.64.20]) by core3.amsl.com (Postfix) with SMTP id 08BD43A6807 for <discuss@apps.ietf.org>; Thu, 21 Jan 2010 05:47:59 -0800 (PST)
Received: (qmail invoked by alias); 21 Jan 2010 13:47:54 -0000
Received: from mail.greenbytes.de (EHLO [192.168.1.105]) [217.91.35.233] by mail.gmx.net (mp059) with SMTP; 21 Jan 2010 14:47:54 +0100
X-Authenticated: #1915285
X-Provags-ID: V01U2FsdGVkX185x3hB8d05Q+aHOnq6s9sOYGwGmkOAzgcdKQomVc v72fk7cxbT9UD4
Message-ID: <4B585B06.1040704@gmx.de>
Date: Thu, 21 Jan 2010 14:47:50 +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: Apps Discuss <discuss@apps.ietf.org>, HTTP Working Group <ietf-http-wg@w3.org>
Subject: parameter quoting - 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>
In-Reply-To: <4B56E27D.800@gmx.de>
Content-Type: text/plain; charset="ISO-8859-1"; format="flowed"
Content-Transfer-Encoding: 7bit
X-Y-GMX-Trusted: 0
X-FuHaFi: 0.56999999999999995
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: Thu, 21 Jan 2010 13:48:01 -0000

Hi,

a few comments regarding quoting of link parameters:

<http://tools.ietf.org/html/draft-nottingham-http-link-header-07#section-5> 
defines the new parameters:

                      | ( "hreflang" "=" Language-Tag )
                      | ( "media" "=" ( MediaDesc | <"> MediaDesc <"> ) )

"hreflang" and "media", so quoting is allowed for media, but it's not 
for hreflang. I think it's correct that valid language tags never 
require quoting, but I'm not sure that disallowing quoting is the right 
thing to do here.

Which made have a closer look at existing parameters (sorry for not 
bringing this up earlier):

                      | ( "type" "=" type-name "/" subtype-name )

I believe this *definitively* needs quoting, as "/" is a separator 
character in HTTP and thus can not appear in a token.

Also, as this spec uses the RFC 2616 ABNF, we probably need to duplicate 
the statement from 
<http://greenbytes.de/tech/webdav/rfc2616.html#rfc.section.3.7>:

"...Linear white space (LWS) MUST NOT be used between the type and 
subtype, ..."

Best regards, Julian