You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airavata.apache.org by ma...@apache.org on 2021/08/06 15:52:34 UTC
[airavata] 01/02: AIRAVATA-3496 Accept the given domainId instead
of using domain name
This is an automated email from the ASF dual-hosted git repository.
machristie pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/airavata.git
commit 107f91ee40fb11f31e10872f2a83e2f2cd2d9ea4
Author: Marcus Christie <ma...@apache.org>
AuthorDate: Fri Aug 6 11:51:58 2021 -0400
AIRAVATA-3496 Accept the given domainId instead of using domain name
Fixes an issue when a gateway is created with an id
that is different than the gateway name, as can happen
because the id is a sanitized version
of the gateway name.
---
.../airavata/sharing/registry/server/SharingRegistryServerHandler.java | 1 -
1 file changed, 1 deletion(-)
diff --git a/modules/sharing-registry/sharing-registry-server/src/main/java/org/apache/airavata/sharing/registry/server/SharingRegistryServerHandler.java b/modules/sharing-registry/sharing-registry-server/src/main/java/org/apache/airavata/sharing/registry/server/SharingRegistryServerHandler.java
index b138272..8ef6530 100644
--- a/modules/sharing-registry/sharing-registry-server/src/main/java/org/apache/airavata/sharing/registry/server/SharingRegistryServerHandler.java
+++ b/modules/sharing-registry/sharing-registry-server/src/main/java/org/apache/airavata/sharing/registry/server/SharingRegistryServerHandler.java
@@ -62,7 +62,6 @@ public class SharingRegistryServerHandler implements SharingRegistryService.Ifac
@Override
public String createDomain(Domain domain) throws SharingRegistryException, DuplicateEntryException, TException {
try{
- domain.setDomainId(domain.getName());
if((new DomainRepository()).get(domain.getDomainId()) != null)
throw new DuplicateEntryException("There exist domain with given domain id");