aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichaelMorris <michael.morris@est.tech>2022-08-22 11:05:42 +0100
committerAndr� Schmid <andre.schmid@est.tech>2022-09-01 10:43:52 +0000
commit4cc1d594570bfd5d2eba32453ef632c0b07a575d (patch)
tree54a4032e21d93224b643719cf419353c536484f8
parent633daad6c9fc4082626020b4ddd7886caf5a6753 (diff)
Fix use of encrypted user in backendjakarta
Signed-off-by: MichaelMorris <michael.morris@est.tech> Issue-ID: SDC-4141 Change-Id: I4ebef3cb44eee6d15cde7ae1e2c88fa91ac6ff20 (cherry picked from commit 12af6a010abc5e12030933e9d192ed712dfc99cb)
-rw-r--r--catalog-be/src/main/java/org/openecomp/sdc/be/filters/ThreadLocalUtils.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/catalog-be/src/main/java/org/openecomp/sdc/be/filters/ThreadLocalUtils.java b/catalog-be/src/main/java/org/openecomp/sdc/be/filters/ThreadLocalUtils.java
index d895b694f5..1cd84d02a7 100644
--- a/catalog-be/src/main/java/org/openecomp/sdc/be/filters/ThreadLocalUtils.java
+++ b/catalog-be/src/main/java/org/openecomp/sdc/be/filters/ThreadLocalUtils.java
@@ -83,7 +83,7 @@ public class ThreadLocalUtils implements IUsersThreadLocalHolder {
private void updateUserContext(String user_id) {
User user = userBusinessLogic.getUser(user_id, false);
Set<String> roles = new HashSet<>(Arrays.asList(user.getRole()));
- UserContext userContext = new UserContext(user_id, roles, user.getFirstName(), user.getLastName());
+ UserContext userContext = new UserContext(user.getUserId(), roles, user.getFirstName(), user.getLastName());
ThreadLocalsHolder.setUserContext(userContext);
}
}