CDLUC3 / dmsp_api_prototype

The new DMPTool API (formerly the DMPHub)
MIT License
0 stars 0 forks source link

EZID failure when contributor name is blank #7

Closed briri closed 3 months ago

briri commented 3 months ago

A user in the DMPTool created a plan and added a contributor that had an email and ORCID but no name filled out. I guess this is the first time we're seeing this!

EZID throws the following error:

EZID returned an error Received an error from https://ezid.cdlib.org/id/doi:10.48321/D1E80DA810?update_if_exists=yes - status: 400, body: error: bad request - error=\"ValidationError({'datacite': ['Metadata validation error: DocumentInvalid(\"Element \\'{[http://datacite.org/schema/kernel-4}contributorName\\](http://datacite.org/schema/kernel-4%7DcontributorName//)': [facet \\'minLength\\'] The value has a length of \\'0\\'; this underruns the allowed minimum length of \\'1\\'., line 1\")

Need to update the EZIDPublisher Lambda so that it just skips contributors with no name, or if the schema allows that to be blank then just skip that element/attribute.

briri commented 3 months ago

The DataCite schema 4.4 states "If Contributor is used, then contributorName is mandatory." The requirement was there in 4.3 as well.

Need to update the EZIDPublisher lambda to ignore contributors with a missing name.