[CST-5699] minor fix to manage collections and relationships files when the contents file is missing

This commit is contained in:
Francesco Pio Scognamiglio
2022-05-25 17:06:59 +02:00
parent 504f7fecf3
commit 4a96d9fc1c

View File

@@ -1335,7 +1335,7 @@ public class ItemImportServiceImpl implements ItemImportService, InitializingBea
String[] dirListing = dir.list(); String[] dirListing = dir.list();
for (String fileName : dirListing) { for (String fileName : dirListing) {
if (!"dublin_core.xml".equals(fileName) && !fileName.equals("handle") && !metadataFileFilter if (!"dublin_core.xml".equals(fileName) && !fileName.equals("handle") && !metadataFileFilter
.accept(dir, fileName)) { .accept(dir, fileName) && !"collections".equals(fileName) && !"relationships".equals(fileName)) {
throw new FileNotFoundException("No contents file found"); throw new FileNotFoundException("No contents file found");
} }
} }