From: Richard Millet Date: Thu, 11 Oct 2018 19:54:34 +0000 (-0700) Subject: DRYD-480: Needed to retrieve service binding using unqualified document type. X-Git-Url: https://git.aero2k.de/?a=commitdiff_plain;h=ddba84ca4e73618d56f37d73ea9e2663f42eed35;p=tmp%2Fjakarta-migration.git DRYD-480: Needed to retrieve service binding using unqualified document type. --- diff --git a/services/common/src/main/java/org/collectionspace/services/common/config/TenantBindingConfigReaderImpl.java b/services/common/src/main/java/org/collectionspace/services/common/config/TenantBindingConfigReaderImpl.java index 3147500e2..cc4fbdc06 100644 --- a/services/common/src/main/java/org/collectionspace/services/common/config/TenantBindingConfigReaderImpl.java +++ b/services/common/src/main/java/org/collectionspace/services/common/config/TenantBindingConfigReaderImpl.java @@ -40,6 +40,7 @@ import org.apache.commons.codec.digest.DigestUtils; import org.apache.commons.io.FileUtils; import org.collectionspace.services.common.api.JEEServerDeployment; import org.collectionspace.services.common.api.Tools; +import org.collectionspace.services.common.context.ServiceBindingUtils; import org.collectionspace.services.config.service.ServiceBindingType; import org.collectionspace.services.config.service.ServiceObjectType; import org.collectionspace.services.config.tenant.RepositoryDomainType; @@ -463,7 +464,7 @@ public class TenantBindingConfigReaderImpl extends AbstractConfigReaderImpl queriedServiceBindings = new HashMap(); DocumentModelList docList = this.getDocListForGroup(ctx, serviceGroupNames, queriedServiceBindings, repoSession, repoClient); - if (docList == null) { // found no authRef fields - nothing to process + if (docList == null || docList.isEmpty()) { // found no authRef fields - nothing to process throw new DocumentNotFoundException(); } DocumentModel docModel = docList.get(0);