datacite / mds

The DataCite Metadata Store (MDS)
https://mds.datacite.org
Apache License 2.0
25 stars 16 forks source link

doi is not trimmed on minting #305

Closed koelnconcert closed 6 years ago

koelnconcert commented 9 years ago

When minting via API the DOI is not trimmed on whitespaces. This allows minting a DOI with a trailing space.

Because of the weird comparison behaviour of MySQL (see BINARY operator), this request is matching an already existing DOI in the MDS db without trailing space (e.g. created by uploading metadata beforehand). The actual handle minting request done with trailing space. This creates a total mess.