-
Notifications
You must be signed in to change notification settings - Fork 535
Description
The Edit/Delete Draft Dataset button works when used from the draft dataset page but does not work if one is on the page for a published version. The error I see is related to filemetadata so this may be specific to datasets with files. I verified this is an issue on demo.dataverse.org as of v4.10.1. using a test dataset with one file that had been published in the v1.0 version.
FWIW - the DeleteDatasetVersionCommand is called in both cases and it only takes the dataset as a parameter, calling dataset.getLatestVersion(), so it's not clear to me why there's a problem. The error I see occurs in the following line:
DatasetVersion doomedAndMerged = ctxt.em().merge(doomedVersion);
I ran across this in looking at #4760, but am not actively this bug in particular...