Upstream quirks
Observed server behaviors the signposting resolver tolerates. The patterns come from the signposting.org conventions; the behaviors come from live servers (Zenodo, Dataverse installations, Harvard Dataverse, Springer) and RFC 9264.
Link header shapes
- Attribute separators vary. Zenodo writes
; rel="item" ; type=...with spaces, Dataverse writes;rel="item";type=...with none. The reader splits entries and parameters outside<...>and quoted strings, so both parse. - One relation type can repeat. A Zenodo record serves 15
describedbylinks, one per metadata format; an article landing page can serve oneauthorlink per author. Every entry is kept, in header order, with itstypeandprofileattributes. The coreparse_link_headerhelper keeps only the first URL per relation token, which is why the resolver exposes both the full list and that mapping (link_urls). - An entry can carry several space-separated
reltokens; the reader produces one link per token. - Relative references and explicit
anchorattributes occur; both resolve against the URL of the response that carried the header. - Extra attributes such as
titleanddatetime(Memento) survive on the link model throughextra="allow".
Redirect chains
- doi.org answers a 302 whose
Locationleads through several hops; Springer's chain once passed throughidp.springer.combefore the article page. The resolver follows hops itself, up to 10, so theLinkheader of the landing page answer is read and intermediate hops are never confused with it. Only the header of the answer that ends the chase is parsed. - A 303 answers a
HEAD; RFC 9110 requires the retry to useGET, and the resolver switches. The Springer landing page answered a 303 toHEADand then 302s through its identity provider. - Some servers refuse
HEADwith HTTP 405. The resolver retries such a hop withGETand reads only the headers, so the landing page body is never downloaded. - Zenodo's retired
/record/{id}route (still what doi.org redirects to first) answers HTTP 406 to a request whoseAcceptheader istext/html. The resolver sends noAcceptheader on chase hops, so the httpx default*/*travels and the 301 arrives. - Harvard Dataverse sits behind an AWS WAF: a
HEADanswers HTTP 202 with anx-amzn-waf-action: challengeheader and no links; figshare landing pages answer the same challenge. The resolver returns an empty result for it; no error is raised.
Link set documents
- The
linksetlink advertisesapplication/linkset+jsonon Zenodo and Dataverse. Fetch it with anAcceptheader that offers both RFC 9264 serializations; the document is decoded by the answeredContent-Type, not by the advertised one. - Dataverse answers the link set URL with
application/json, not withapplication/linkset+json, and it ignores a request for theapplication/linksettext serialization (it answers the JSON document anyway). The JSON document parses regardless of the answered media type. - Dataverse serializes some relations (for example
license) as a single object where RFC 9264 requires an array; both shapes validate. - Dataverse link set documents carry more than one anchor: one group per
content file whose links point back with
collection, and one group whose links point at the record API withdescribes. - The Zenodo link set URL is the record API URL itself; without the link
set
Acceptheader the same URL answers the record JSON. The resolver always sends the link setAcceptheader, so the negotiation picks the link set document.
HTML signposting
- Some landing pages (Springer was observed) put their signposting in HTML
<link>elements instead of the HTTPLinkheader, or serve no signposting at all. The resolver reads the header only, so such a page yields an empty result; the HTML variants of FAIR signposting are out of scope.