Closed richardhallett closed 4 years ago
Reading schema 3 metadata is supported by bolognese. We should think about adding an error handler layer on top of what the XSD validations returns, which can be obscure and misleading.
Which may also involve JSON Schema.
I can't reproduce this anymore (in Stage). Url gets update. Obviously the Form now transform the metadata to version 4. see: https://doi.stage.datacite.org/dois/10.4121%2Feb2z-8122
If you have a DOI that is created using schema version 3 and attempt to say just update the DOI findable state, the FORM will not save, however it does not give you any error, it just won't let you save.
I think this maybe in general a problem with invalid metadata for the interface and not just schema version 3.
It's difficult to reproduce as copying existing bad data and resaving does seem to fix. I'd suggest at minimum we look into how we can present an error and potential fixes i.e. using the file upload and resaving raw xml perhaps.
Below is example metadata from what was a broken DOI:
It may be possible to reproduce by directly loading into the DB first rather than using the API.