Hello,
We have errors after executing the resource
curl -H "X-Dataverse-key: $ API_TOKEN" -X POST "$ SERVER_URL / api / files / $ ID / redetect? dryRun = false"
for some files:
{"status": "ERROR", "message": "Command edu.harvard.iq.dataverse.engine.command.impl.RedetectFileTypeCommand@33f6c80f failed: Client's transaction aborted"}
With the parameter dryRun = true, everything is ok:
{"status": "OK", "data": {"dryRun": true, "oldContentType": "text / tab-separated-values"}}
The error in the application server:
javax.validation.ConstraintViolationException: One or more Bean Validation constraints were violated while executing Automatic Bean Validation on callback event: preUpdate for class: edu.harvard.iq.dataverse.DataFile. Please refer to the embedded constraint violations for details.
This results in HTTP 500 errors on the affected datasets.
To resolve this, we need to re-download the affected files.
Is this problem known to the community?
Is the redetect resource (with dryRun = false) recommended?
Dataverse version: 5.0
Thank you very much for your feedback.
Steven.