Merge pull request #11175 from DSpace/backport-11156-to-dspace-7_x

[Port dspace-7_x] Metadata import empty collection column check
This commit is contained in:
Tim Donohue
2025-08-20 16:28:23 -05:00
committed by GitHub

View File

@@ -494,7 +494,7 @@ public class MetadataImport extends DSpaceRunnable<MetadataImportScriptConfigura
// Check it has an owning collection
List<String> collections = line.get("collection");
if (collections == null) {
if (collections == null || collections.isEmpty()) {
throw new MetadataImportException(
"New items must have a 'collection' assigned in the form of a handle");
}