-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DOI Upload file is validating DOI name on update #189
Comments
So description is being validated with /dois/validate which will send an error if the DOI has a + sign bracco/app/validators/metadata.js Line 14 in 9df40ec
|
Where is the validation creating an error for a DOI with a + sign? |
the API call to /dois/validate is returning
The request is taking the DOI-name from the DOI model and although it cannot be modified it still has the + sign. So basically is failing in Lupo when one wants to validate metadata with a DOI-name with a + sing |
I just noticed that there is a flag in lupo.
Alternatevely maybe we could skip doi-name validation on
would that be better ?? |
I think you are saying to not check the DOI format when you are validating a DOI that you want to update. Which makes perfect sense to me. We still need the DOI check for the validation of a new DOI. |
@kristian I think there are two scenarios:
In the current implementation both would fail, in your proposed implementation both would pass. The easiest way to implement this might be to first check for existence of DOI record in |
Sorry, of course. Have a nice weekend. |
DOI exists -> validation of metadata with DOI name containing a + sign should pass DOI does not exist -> validation of metadata with DOI name containing a + sign should fail fix datacite/bracco#189
DOI name shoun'dt be validated on update. Old DOI name might contain values we do not accept anymore.
It seems to be that this is happening in the DOI upload
https://usersnap.com/a/#/datacite/p/datacite-41ebcc0f/581
The text was updated successfully, but these errors were encountered: