Reject test DOIs
grin-global/grin-global-server#464 (closed) documents a case were a "test DOI" made it to Genesys and then the "real DOI" couldn't be assigned due to how Genesys treats the DOI.
We need to prevent "test DOIs" in Genesys by throwing an error (probably in @PrePersist/@PreUpdate
).
@mmarsella says we can safely reject DOIs with prefix 10.0155 (i.e. /^10\.(?!0155)/
. Further advice on matching /^10\.[1-9]/
pending.