Christian Amsüss
2017-10-06 12:46:27 UTC
Hello Mark, hello CoRE WG,
reviewing the current 5988bis draft in the course of work on
draft-ietf-core-resource-directory, it seems to me that the update is
fixing a previously ambiguous behavior to be different to how 6690 has
disambiguated it -- the question is:
Whether the target IRI is resolved relative to the link context IRI or
the document context IRI.
* 5988 prescribes that the relative target references are resolved per
3986 (not applying base IRIs from the message's content, which I read
as data inside the response body like an HTML base-href).
This leaves it unclear whether the "Context" of the link (defined in
the next paragraph) also serves as the context as the term is used in
3986 section 5.
* 6690 section 2.1 explains that the context is just another word for
Base URI ("context URI of a link (also called the base URI in
RFC39)"), and that the anchor sets such a context. This implies that
if an anchor is set, the target reference is resolved relative to the
resolved anchor.
* 5988bis does not change the relevant wording, but the algorithm in
Appendix B clearly resolves target before resolving context, so both
the target_string and the context_string are resolved relative to the
document URI.
None of documents has examples where the it actually matters whether or
not target_string is relative to context_string or to the document
base URI.
Was the decision to clarify the behavior this way made in awareness of
RFC6690 building on the original document interpreting otherwise? If
not, could you consider the alternative behavior? Or are there other
applications or documents that are already set on the new one?
If this stays as it is in the latest 5988bis, will the text in RFC6690
be considered erroneous, or will application/link-format diverge from
link headers?
In resource-directory, we *will* need to give examples of what a link
looks like when served from a different URI, and to give guidance as to
how a directory should parse the links -- so what can we assume?
Thanks
Christian
reviewing the current 5988bis draft in the course of work on
draft-ietf-core-resource-directory, it seems to me that the update is
fixing a previously ambiguous behavior to be different to how 6690 has
disambiguated it -- the question is:
Whether the target IRI is resolved relative to the link context IRI or
the document context IRI.
* 5988 prescribes that the relative target references are resolved per
3986 (not applying base IRIs from the message's content, which I read
as data inside the response body like an HTML base-href).
This leaves it unclear whether the "Context" of the link (defined in
the next paragraph) also serves as the context as the term is used in
3986 section 5.
* 6690 section 2.1 explains that the context is just another word for
Base URI ("context URI of a link (also called the base URI in
RFC39)"), and that the anchor sets such a context. This implies that
if an anchor is set, the target reference is resolved relative to the
resolved anchor.
* 5988bis does not change the relevant wording, but the algorithm in
Appendix B clearly resolves target before resolving context, so both
the target_string and the context_string are resolved relative to the
document URI.
None of documents has examples where the it actually matters whether or
not target_string is relative to context_string or to the document
base URI.
Was the decision to clarify the behavior this way made in awareness of
RFC6690 building on the original document interpreting otherwise? If
not, could you consider the alternative behavior? Or are there other
applications or documents that are already set on the new one?
If this stays as it is in the latest 5988bis, will the text in RFC6690
be considered erroneous, or will application/link-format diverge from
link headers?
In resource-directory, we *will* need to give examples of what a link
looks like when served from a different URI, and to give guidance as to
how a directory should parse the links -- so what can we assume?
Thanks
Christian
--
There's always a bigger fish.
-- Qui-Gon Jinn
There's always a bigger fish.
-- Qui-Gon Jinn