Re: [Last-Call] [httpapi] Last Call: <draft-ietf-httpapi-link-template-02.txt> (The Link-Template HTTP Header Field) to Proposed Standard

Julian Reschke <julian.reschke@gmx.de> Wed, 17 May 2023 12:22 UTC

Return-Path: <julian.reschke@gmx.de>
X-Original-To: last-call@ietfa.amsl.com
Delivered-To: last-call@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 7D3C0C151993; Wed, 17 May 2023 05:22:34 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.797
X-Spam-Level:
X-Spam-Status: No, score=-2.797 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, NICE_REPLY_A=-0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001, RCVD_IN_ZEN_BLOCKED_OPENDNS=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001, URIBL_DBL_BLOCKED_OPENDNS=0.001, URIBL_ZEN_BLOCKED_OPENDNS=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=gmx.de
Received: from mail.ietf.org ([50.223.129.194]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 2sq8MjIql2VO; Wed, 17 May 2023 05:22:30 -0700 (PDT)
Received: from mout.gmx.net (mout.gmx.net [212.227.17.20]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 68B56C151096; Wed, 17 May 2023 05:22:26 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.de; s=s31663417; t=1684326129; i=julian.reschke@gmx.de; bh=Cg2+D3T1t4jm/EGTIEnvO27ectSgvJI2pS7I1z5w8Kg=; h=X-UI-Sender-Class:Date:Subject:To:Cc:References:From:In-Reply-To; b=JAvMoADZO5rRytyHeTzzyjBSD+hFdzGCIqQM/DcANK5zd0/FyOUcaDFmOV7ISR7Cw aSuPoBadFUaCt0Od2uOForT+YtvtXhITwYJ2fQpcYzLRhxGQYFOyBVkGs73EY2Agdy A2MY69muJfCJkiwpLyQGnN2GccfrIHbLAUwzjOnaxJs3BsBRXOGKQJpRM98UrLAuq3 TEIAEC0xb6MyFGlDjcAlav0YKnUYrRRsYAWLmcdqTJ5s2RovkaeCag0gaOLAHzoSkJ no2LpHfqt+Cg9mmQjYXb69kPeBUFxwh5dJ1Qx+tmo64AcpyuqxoHvzlrV7vTU/6l0P Zv6fUzUG2zVog==
X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a
Received: from [192.168.178.179] ([91.61.63.231]) by mail.gmx.net (mrgmx105 [212.227.17.168]) with ESMTPSA (Nemesis) id 1MC30P-1prsJ2200z-00COvM; Wed, 17 May 2023 14:22:09 +0200
Message-ID: <bf68dfe7-b57d-f127-4956-45add76e6557@gmx.de>
Date: Wed, 17 May 2023 14:22:07 +0200
MIME-Version: 1.0
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.11.0
Content-Language: en-US
To: last-call@ietf.org, IETF-Announce <ietf-announce@ietf.org>
Cc: Zaheduzzaman.Sarker@ericsson.com, darrel@tavis.ca, draft-ietf-httpapi-link-template@ietf.org, httpapi-chairs@ietf.org, httpapi@ietf.org, rsalz@akamai.com
References: <168416137684.53124.18418941788133760608@ietfa.amsl.com>
From: Julian Reschke <julian.reschke@gmx.de>
In-Reply-To: <168416137684.53124.18418941788133760608@ietfa.amsl.com>
Content-Type: text/plain; charset="UTF-8"; format="flowed"
Content-Transfer-Enc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voLTEigfzLgsqUG/jOWJSsMjjm6YkC3syukT6jQUQpvjx9Fon HuMi1UbFe3AYMVWqQg1yg/wgqrkzM1TelJA6LoGV6AlSdMOk6lSh7+2GxUBhUGW1LG9svRFsP 7s6b2UvZk1zh3Jr3eZT6ergCZ8DjSKSQAD2NRTBwMDCCBtK6kFqj/RYg4qXo+dlz5YkHZ+U/m uMnjuw==
Archived-At: <https://mailarchive.ietf.org/arch/msg/last-call/_tLeqmcbxpvFR9QNMYgKqpTNlTU>
Subject: Re: [Last-Call] [httpapi] Last Call: <draft-ietf-httpapi-link-template-02.txt> (The Link-Template HTTP Header Field) to Proposed Standard
X-BeenThere: last-call@ietf.org
X-Mailman-Version: 2.1.39
Precedence: list
List-Id: IETF Last Calls <last-call.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/last-call>, <mailto:last-call-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/last-call/>
List-Post: <mailto:last-call@ietf.org>
List-Help: <mailto:last-call-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/last-call>, <mailto:last-call-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 17 May 2023 12:22:34 -0000

Hi there,

below some feedback... (and sorry for not paying attention earlier in WGLC).

1. Introduction

 > This specification defines a HTTP header field [HTTP] for conveying
templates for links in the headers of a HTTP message. It is
complimentary to the Link header field defined in Section 3 of
[WEB-LINKING], which carries links directly.

Is use in a trailer completely implausible?

2. The Link-Template Header Field

 > Link-Template: "/{username}"; rel="https://example.org/rel/user"

It took me a moment to realize that rel uses a URI, not a registered
link relation. That's IMHO "advanced" use of link relations, so maybe
not totally suitable for the first example.

 > Parameters on a templated link have identical semantics to those of a
Link header field. This includes (but is not limited to) the use of the
"rel" parameter to convey the relation type, the "anchor" parameter to
modify the context IRI, and so on. Parameter values MUST be Strings.

Why are parameters limited to strings; just for consistency with "Link"?
Anyway, RFC 8288 defines "title*", and the "Display Strings" that we may
or may not get in SFBIS could be used here. I would prefer to wait for
the outcome of that discussion before proceeding here.

 > Link-Template: </books/{book_id}/author>;
                rel="author" anchor="#{book_id}"

This needs to use DQUOTE instead of angle brackets.

 > Implementations MUST support all levels of template defined by
[URI-TEMPLATE] in both the rel and anchor parameters.

In *rel*? So use an URI template for the actual link relation??? What's
the use case for that?

2.1 var-base

This mechanism assumes that all variables come from the same base. Is
that assumption justified? (Not sure myself)

4. IANA Considerations

I'd make that a proper list instead of artwork (yes, nitpicking here)


5. Normative References

[HTTP] should use RFC 9110.

Best regards, Julian