Skip to content

edit delete draft dataset doesn't work except from draft version #5488

@qqmyers

Description

@qqmyers

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...

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions