Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id E9E16200CBA for ; Mon, 3 Jul 2017 22:31:53 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id E8A69160C10; Mon, 3 Jul 2017 20:31:53 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 49CFB160BEC for ; Mon, 3 Jul 2017 22:31:53 +0200 (CEST) Received: (qmail 56965 invoked by uid 500); 3 Jul 2017 20:31:52 -0000 Mailing-List: contact commits-help@airavata.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@airavata.apache.org Delivered-To: mailing list commits@airavata.apache.org Received: (qmail 56946 invoked by uid 99); 3 Jul 2017 20:31:52 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 03 Jul 2017 20:31:52 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id DF448E152F; Mon, 3 Jul 2017 20:31:51 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: machristie@apache.org To: commits@airavata.apache.org Date: Mon, 03 Jul 2017 20:31:52 -0000 Message-Id: In-Reply-To: <22f0b836c3d04853bb08c117955fe88c@git.apache.org> References: <22f0b836c3d04853bb08c117955fe88c@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: [02/26] airavata git commit: AIRAVATA-2419 Save admin credentials when migrating archived-at: Mon, 03 Jul 2017 20:31:54 -0000 AIRAVATA-2419 Save admin credentials when migrating Testing revealed that the MigrationManager.java wasn't saving credentials. Project: http://git-wip-us.apache.org/repos/asf/airavata/repo Commit: http://git-wip-us.apache.org/repos/asf/airavata/commit/de6fcb19 Tree: http://git-wip-us.apache.org/repos/asf/airavata/tree/de6fcb19 Diff: http://git-wip-us.apache.org/repos/asf/airavata/diff/de6fcb19 Branch: refs/heads/keycloak-prod-migration Commit: de6fcb19c509f37ff50590606fe08325266e583f Parents: 9792d27 Author: Marcus Christie Authored: Thu Jun 29 10:39:31 2017 -0400 Committer: Marcus Christie Committed: Thu Jun 29 10:39:31 2017 -0400 ---------------------------------------------------------------------- .../src/main/java/org/apache/airavata/MigrationManager.java | 1 + 1 file changed, 1 insertion(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/airavata/blob/de6fcb19/modules/user-profile-migration/src/main/java/org/apache/airavata/MigrationManager.java ---------------------------------------------------------------------- diff --git a/modules/user-profile-migration/src/main/java/org/apache/airavata/MigrationManager.java b/modules/user-profile-migration/src/main/java/org/apache/airavata/MigrationManager.java index 68ad855..378da0a 100644 --- a/modules/user-profile-migration/src/main/java/org/apache/airavata/MigrationManager.java +++ b/modules/user-profile-migration/src/main/java/org/apache/airavata/MigrationManager.java @@ -287,6 +287,7 @@ public class MigrationManager { GatewayResourceProfile gatewayResourceProfile = airavataClient.getGatewayResourceProfile(authzToken, gatewayId); gatewayResourceProfile.setIdentityServerTenant(gatewayId); gatewayResourceProfile.setIdentityServerPwdCredToken(passwordToken); + airavataClient.updateGatewayResourceProfile(authzToken, gatewayId, gatewayResourceProfile); return true; }