From a2079d2e379b498da2bd5567f28d85844d234fae Mon Sep 17 00:00:00 2001 From: Leonid Andreev Date: Tue, 14 Apr 2020 11:25:45 -0400 Subject: [PATCH] as discussed, skipping file validation for minor version releases (#6558) --- .../command/impl/FinalizeDatasetPublicationCommand.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main/java/edu/harvard/iq/dataverse/engine/command/impl/FinalizeDatasetPublicationCommand.java b/src/main/java/edu/harvard/iq/dataverse/engine/command/impl/FinalizeDatasetPublicationCommand.java index 33e54eef8c5..ef67a661352 100644 --- a/src/main/java/edu/harvard/iq/dataverse/engine/command/impl/FinalizeDatasetPublicationCommand.java +++ b/src/main/java/edu/harvard/iq/dataverse/engine/command/impl/FinalizeDatasetPublicationCommand.java @@ -72,8 +72,10 @@ public Dataset execute(CommandContext ctxt) throws CommandException { Dataset theDataset = getDataset(); // validate the physical files before we do anything else: - // (unless specifically disabled) + // (unless specifically disabled; or a minor version) if (theDataset.getLatestVersion().getVersionState() != RELEASED + && theDataset.getLatestVersion().getMinorVersionNumber() != null + && theDataset.getLatestVersion().getMinorVersionNumber().equals((long) 0) && ctxt.systemConfig().isDatafileValidationOnPublishEnabled()) { // some imported datasets may already be released.