Skip to content

Commit

Permalink
legacy files generate only a warning now, no error is returned
Browse files Browse the repository at this point in the history
  • Loading branch information
ErykKul committed Jan 25, 2023
1 parent e895445 commit 222b56a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/edu/harvard/iq/dataverse/api/Datasets.java
Original file line number Diff line number Diff line change
Expand Up @@ -2542,7 +2542,7 @@ public Response cleanStorage(@PathParam("id") String idSupplied, @QueryParam("dr
// check if no legacy files are present
Set<String> datasetFilenames = getDatasetFilenames(dataset);
if (datasetFilenames.stream().anyMatch(x -> !dataFilePattern.matcher(x).matches())) {
return error(Response.Status.INTERNAL_SERVER_ERROR, "Dataset contains files not matching the nameing pattern!");
logger.log(Level.WARNING, "Dataset contains legacy files not matching the naming pattern!");
}

Predicate<String> filter = getToDeleteFilesFilter(datasetFilenames);
Expand Down

0 comments on commit 222b56a

Please sign in to comment.