You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@dlab.apache.org by bh...@apache.org on 2019/04/05 10:28:10 UTC
[incubator-dlab] branch bugfix-DLAB-570 created (now e4d5dd4)
This is an automated email from the ASF dual-hosted git repository.
bhliva pushed a change to branch bugfix-DLAB-570
in repository https://gitbox.apache.org/repos/asf/incubator-dlab.git.
at e4d5dd4 DLAB-570 fixed bug connected with wrong key status in case of fail
This branch includes the following new commits:
new e4d5dd4 DLAB-570 fixed bug connected with wrong key status in case of fail
The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@dlab.apache.org
For additional commands, e-mail: commits-help@dlab.apache.org
[incubator-dlab] 01/01: DLAB-570 fixed bug connected with wrong key
status in case of fail
Posted by bh...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
bhliva pushed a commit to branch bugfix-DLAB-570
in repository https://gitbox.apache.org/repos/asf/incubator-dlab.git
commit e4d5dd4a6f1c28d2e55dde2bab61a8ff54763136
Author: bhliva <bo...@epam.com>
AuthorDate: Fri Apr 5 13:28:01 2019 +0300
DLAB-570 fixed bug connected with wrong key status in case of fail
---
.../dlab/backendapi/resources/callback/base/KeyUploaderCallback.java | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/services/self-service/src/main/java/com/epam/dlab/backendapi/resources/callback/base/KeyUploaderCallback.java b/services/self-service/src/main/java/com/epam/dlab/backendapi/resources/callback/base/KeyUploaderCallback.java
index fac33c6..5c6e81d 100644
--- a/services/self-service/src/main/java/com/epam/dlab/backendapi/resources/callback/base/KeyUploaderCallback.java
+++ b/services/self-service/src/main/java/com/epam/dlab/backendapi/resources/callback/base/KeyUploaderCallback.java
@@ -44,9 +44,8 @@ public class KeyUploaderCallback {
} else {
UserInstanceStatus instanceStatus = UserInstanceStatus.of(keyDAO.getEdgeStatus(user));
if (instanceStatus == null) {
- // Upload the key first time
- log.debug("Delete the key for user {}", user);
- keyDAO.deleteKey(user);
+ log.debug("Updating the key status for user {} to error", user);
+ keyDAO.updateKey(user, "error");
} else {
keyDAO.updateEdgeStatus(user, status);
}
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@dlab.apache.org
For additional commands, e-mail: commits-help@dlab.apache.org