airavata-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From machristie <...@git.apache.org>
Subject [GitHub] airavata pull request #111: [AIRAVATA-2385] Checking for duplicate gateway r...
Date Wed, 07 Jun 2017 18:08:57 GMT
Github user machristie commented on a diff in the pull request:

    https://github.com/apache/airavata/pull/111#discussion_r120701104
  
    --- Diff: airavata-services/profile-service/profile-service-server/src/main/java/org/apache/airavata/service/profile/handlers/TenantProfileServiceHandler.java
---
    @@ -183,12 +185,25 @@ public boolean deleteGateway(AuthzToken authzToken, String gatewayId)
throws Ten
         public boolean isGatewayExist(AuthzToken authzToken, String gatewayId) throws TenantProfileServiceException,
AuthorizationException, TException {
             try {
                 Gateway gateway = tenantProfileRepository.getGateway(gatewayId);
    --- End diff --
    
    This won't work as is. getGateway() should query by gatewayId where status is APPROVED.
 This way if there is an APPROVED gateway with the gatewayId getGateway() should return it.
 That means too that the checks on lines 188-189 are unnecessary.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

Mime
View raw message