-
-
Notifications
You must be signed in to change notification settings - Fork 27
Open
Labels
Description
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 theDataONEObject
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.