airavata-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From chath...@apache.org
Subject airavata git commit: fixing credential delete bug
Date Mon, 21 Dec 2015 16:59:47 GMT
Repository: airavata
Updated Branches:
  refs/heads/master 8afbcbf3b -> 47949d3eb


fixing credential delete bug


Project: http://git-wip-us.apache.org/repos/asf/airavata/repo
Commit: http://git-wip-us.apache.org/repos/asf/airavata/commit/47949d3e
Tree: http://git-wip-us.apache.org/repos/asf/airavata/tree/47949d3e
Diff: http://git-wip-us.apache.org/repos/asf/airavata/diff/47949d3e

Branch: refs/heads/master
Commit: 47949d3eb370dd40ce34885bd2f943165c03b485
Parents: 8afbcbf
Author: Chathuri Wimalasena <chathuri@apache.org>
Authored: Mon Dec 21 11:59:41 2015 -0500
Committer: Chathuri Wimalasena <chathuri@apache.org>
Committed: Mon Dec 21 11:59:41 2015 -0500

----------------------------------------------------------------------
 .../airavata/credential/store/store/impl/db/CredentialsDAO.java   | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/airavata/blob/47949d3e/modules/credential-store/credential-store-service/src/main/java/org/apache/airavata/credential/store/store/impl/db/CredentialsDAO.java
----------------------------------------------------------------------
diff --git a/modules/credential-store/credential-store-service/src/main/java/org/apache/airavata/credential/store/store/impl/db/CredentialsDAO.java
b/modules/credential-store/credential-store-service/src/main/java/org/apache/airavata/credential/store/store/impl/db/CredentialsDAO.java
index b9dc2ef..e73ea04 100644
--- a/modules/credential-store/credential-store-service/src/main/java/org/apache/airavata/credential/store/store/impl/db/CredentialsDAO.java
+++ b/modules/credential-store/credential-store-service/src/main/java/org/apache/airavata/credential/store/store/impl/db/CredentialsDAO.java
@@ -122,6 +122,7 @@ public class CredentialsDAO extends ParentDAO {
         }
     }
 
+
     public void deleteCredentials(String gatewayName, String tokenId, Connection connection)
             throws CredentialStoreException {
 
@@ -136,7 +137,7 @@ public class CredentialsDAO extends ParentDAO {
             preparedStatement.setString(2, tokenId);
 
             preparedStatement.executeUpdate();
-
+            connection.commit();
         } catch (SQLException e) {
             StringBuilder stringBuilder = new StringBuilder("Error deleting credentials for
.");
             stringBuilder.append("gateway - ").append(gatewayName);


Mime
View raw message