Skip to content

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.

  • 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 describedby links, one per metadata format; an article landing page can serve one author link per author. Every entry is kept, in header order, with its type and profile attributes. The core parse_link_header helper 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 rel tokens; the reader produces one link per token.
  • Relative references and explicit anchor attributes occur; both resolve against the URL of the response that carried the header.
  • Extra attributes such as title and datetime (Memento) survive on the link model through extra="allow".

Redirect chains

  • doi.org answers a 302 whose Location leads through several hops; Springer's chain once passed through idp.springer.com before the article page. The resolver follows hops itself, up to 10, so the Link header 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 use GET, and the resolver switches. The Springer landing page answered a 303 to HEAD and then 302s through its identity provider.
  • Some servers refuse HEAD with HTTP 405. The resolver retries such a hop with GET and 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 whose Accept header is text/html. The resolver sends no Accept header on chase hops, so the httpx default */* travels and the 301 arrives.
  • Harvard Dataverse sits behind an AWS WAF: a HEAD answers HTTP 202 with an x-amzn-waf-action: challenge header and no links; figshare landing pages answer the same challenge. The resolver returns an empty result for it; no error is raised.
  • The linkset link advertises application/linkset+json on Zenodo and Dataverse. Fetch it with an Accept header that offers both RFC 9264 serializations; the document is decoded by the answered Content-Type, not by the advertised one.
  • Dataverse answers the link set URL with application/json, not with application/linkset+json, and it ignores a request for the application/linkset text 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 with describes.
  • The Zenodo link set URL is the record API URL itself; without the link set Accept header the same URL answers the record JSON. The resolver always sends the link set Accept header, 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 HTTP Link header, 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.