From f005ecb1827b6bcd24211aa812300c680c22b590 Mon Sep 17 00:00:00 2001 From: Damiano Fiorenza Date: Mon, 28 Aug 2023 12:25:51 +0200 Subject: [PATCH] [DSC-1198] add check to prevent empty metadata values with no authority from creating related entities --- dspace-api/src/main/java/org/dspace/authority/CrisConsumer.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dspace-api/src/main/java/org/dspace/authority/CrisConsumer.java b/dspace-api/src/main/java/org/dspace/authority/CrisConsumer.java index eec4412c0c98..3321b09b5471 100644 --- a/dspace-api/src/main/java/org/dspace/authority/CrisConsumer.java +++ b/dspace-api/src/main/java/org/dspace/authority/CrisConsumer.java @@ -193,7 +193,7 @@ private boolean isMetadataSkippable(MetadataValue metadata) { return true; } - if (isBlank(authority) && isMetadataWithEmptyAuthoritySkippable(metadata)) { + if (isBlank(authority) && (isBlank(metadata.getValue()) || isMetadataWithEmptyAuthoritySkippable(metadata))) { return true; }