Skip to content

Commit 0b78ff8

Browse files
authored
IQSS11976 Fix File Replace (#12107)
* bug fix * release note * clarify * further clarify
1 parent 4bc9c67 commit 0b78ff8

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
A bug introduced in Dataverse 6.8 that makes attempts to replace non-tabular files via the current Dataverse UI fail has been fixed. (The bug would also cause the replace API to fail if an empty dataFileTags array is sent.)
2+
3+
See #11976

src/main/java/edu/harvard/iq/dataverse/datasetutility/OptionalFileParams.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -618,7 +618,7 @@ private void replaceFileDataTagsInFile(DataFile df) throws DataFileTagException{
618618
// --------------------------------------------------
619619
// Is this a tabular file?
620620
// --------------------------------------------------
621-
if (!df.isTabularData()){
621+
if (!df.isTabularData() && !getDataFileTags().isEmpty()){
622622
String errMsg = BundleUtil.getStringFromBundle("file.metadata.datafiletag.not_tabular");
623623

624624
throw new DataFileTagException(errMsg);

0 commit comments

Comments
 (0)