mirror of
https://github.com/DSpace/DSpace.git
synced 2025-10-07 10:04:21 +00:00
[CST-5699] minor fix to manage collections and relationships files when the contents file is missing
This commit is contained in:
@@ -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");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user