Skip to content

Can't navigate to editor with a metadata seriesId #2706

@robyngit

Description

@robyngit

If you navigate directly to the editor using a seriesId, e.g. https://arcticdata.io/catalog/submit/doi:10.18739/A20Z70Z1H, then the editor erroneously shows a "not found" message. We could easily modify the metadata lookup to search for the most recent PID given a SID (the new ResourceMapResolver class has a getPidForSid method that uses the sysMeta). This situation arose during testing of a new feature. I believe it's unlikely that it causes problems for users in practice, given that clicking the "Edit" button from the dataset landing page navigates to the editor using the PID. I'm creating this issue so that we have a record of it in case it does come up in the future.

Details:

  • The editor gets the pid from the ...submit/{UUID-OR-DOI} url
  • The editor assumes it's a PID and sets it as the ID on a ScienceMetadata/EML model (extensions of the DataONEObject model)
  • The 404 comes up because we check for a package's existence during the models' DataONEObject.fetch call, which searches using the given ID
  • To fix we could either fetch the metadata model using a query that searches for the ID as either a PID or a SID (e.g. id:{IDENTIFIER} OR seriesId:{IDENTIFIER}. A better idea might be to do the latest version check before we fetch the model, and use that lookup to determine if the ID is actually a seriesId.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions