From 12af6a010abc5e12030933e9d192ed712dfc99cb Mon Sep 17 00:00:00 2001 From: MichaelMorris Date: Mon, 22 Aug 2022 11:05:42 +0100 Subject: Fix use of encrypted user in backend Signed-off-by: MichaelMorris Issue-ID: SDC-4141 Change-Id: I4ebef3cb44eee6d15cde7ae1e2c88fa91ac6ff20 --- .../src/main/java/org/openecomp/sdc/be/filters/ThreadLocalUtils.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'catalog-be/src/main') 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 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); } } -- cgit 1.2.3-korg