CDLUC3 / arksorg-site

Implementation and configuration for arks.org site and resolver service
0 stars 1 forks source link

Suffix passthrough incomplete in some cases #8

Closed datadavev closed 2 months ago

datadavev commented 2 months ago

Suffix passthrough appears to be dropping query parameters.

Example:

https://arks.org/.info/ark:/87924/r4901zx3c?embed=true

{
  "pid": "ark:/87924/r4901zx3c", 
  "scheme": "ark", 
  "content": "87924/r4901zx3c", 
  "prefix": "87924", 
  "value": "r4901zx3c", 
  "suffix": "901zx3c", 
  "target": "https://ezid.cdlib.org/ark:/87924/r4901zx3c", 
  "canonical": "ark:/87924/r4901zx3c", 
  "status_code": 302, 
  "properties": {
    "shoulder": "r4", 
    "naan": "87924", 
    "what": "87924/r4", 
    "who": {
      "name": "Duke Digital Repository", 
      "name_native": null, 
      "acronym": "DUL"
    }, 
    "where": "http://library.duke.edu", 
    "target": {
      "DEFAULT": {
        "url": "https://ezid.cdlib.org/ark:/${content}", 
        "http_code": 302
      }
    }, 
    "when": "2013-10-14T00:00:00+00:00", 
    "na_policy": {
      "orgtype": "NP", 
      "policy": "(:unkn) unknown", 
      "tenure": "2013", 
      "policy_url": null
    }, 
    "test_identifier": null, 
    "rtype": "PublicNAANShoulder"
  }, 
  "definition": {
    "uniq": "ark:87924/r4", 
    "scheme": "ark", 
    "prefix": "87924", 
    "value": "r4", 
    "target": "https://ezid.cdlib.org/ark:/${content}", 
    "canonical": "ark:/${prefix}/${value}", 
    "synonym_for": null
  }
}

Check:

datadavev commented 2 months ago

Confirmed this is an issue with the resolver code in the recent release. Closing here and following in https://github.com/CDLUC3/resolver/issues/27