Arks with unregistered naans not parsed correctly

Open
#26 0 comments 0 reactions 1 assignee View on GitHub

@datadavev is already working on this.

Since Aug 2, 2024.

Assessment

This issue has not been assessed yet.

Description

bug Priority Low

The introspection response for an unregistered ARK prefix presents incorrectly parsed identifier properties.

For example a request with the (currently) unregistered prefix of "99167" like https://arks.org/.info/ark:/99167/foo returns:

{
  "pid": "ark:/99167/foo", 
  "scheme": "ark", 
  "content": "99167/foo", 
  "prefix": "", 
  "value": "foo", 
  "suffix": "9167/foo", 
  "target": "/.info/ark:/99167/foo", 
  "canonical": "ark://foo", 
  "status_code": 302, 
  "properties": {
    "what": "ark", 
    "name": "Archival Resource Key"
  }, 
...

with the parsed prefix and suffix portions incorrect.

The response is correct with registered prefixes.

Dominant language
Python
Stars
1
Forks
1
Avg merge
21h 56m
Merged PRs (30d)
1

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from CDLUC3/resolver

All issues in CDLUC3/resolver

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.