summaryrefslogtreecommitdiffstats
path: root/catalog-fe/src/main/java
diff options
context:
space:
mode:
Diffstat (limited to 'catalog-fe/src/main/java')
-rw-r--r--catalog-fe/src/main/java/org/openecomp/sdc/fe/Constants.java1
-rw-r--r--catalog-fe/src/main/java/org/openecomp/sdc/fe/servlets/PortalServlet.java2
2 files changed, 2 insertions, 1 deletions
diff --git a/catalog-fe/src/main/java/org/openecomp/sdc/fe/Constants.java b/catalog-fe/src/main/java/org/openecomp/sdc/fe/Constants.java
index a9f5c1294e..a64ba08d69 100644
--- a/catalog-fe/src/main/java/org/openecomp/sdc/fe/Constants.java
+++ b/catalog-fe/src/main/java/org/openecomp/sdc/fe/Constants.java
@@ -24,6 +24,7 @@ public class Constants {
public static String HTTP_IV_USER = "HTTP_IV_USER";
public static String USER_ID = "USER_ID";
+ public static String ECOMP_PORTAL_COOKIE = "UserId";
public static String HTTP_CSP_FIRSTNAME = "HTTP_CSP_FIRSTNAME";
public static String HTTP_CSP_LASTNAME = "HTTP_CSP_LASTNAME";
public static String HTTP_IV_REMOTE_ADDRESS = "HTTP_IV_REMOTE_ADDRESS";
diff --git a/catalog-fe/src/main/java/org/openecomp/sdc/fe/servlets/PortalServlet.java b/catalog-fe/src/main/java/org/openecomp/sdc/fe/servlets/PortalServlet.java
index a743f98b18..53fbd04a43 100644
--- a/catalog-fe/src/main/java/org/openecomp/sdc/fe/servlets/PortalServlet.java
+++ b/catalog-fe/src/main/java/org/openecomp/sdc/fe/servlets/PortalServlet.java
@@ -283,7 +283,7 @@ public class PortalServlet extends HttpServlet {
Cookie userIdcookie = null;
if (cookies != null)
for (Cookie cookie : cookies)
- if (cookie.getName().equals(Constants.USER_ID))
+ if (cookie.getName().equals(Constants.ECOMP_PORTAL_COOKIE))
userIdcookie = cookie;
if (userIdcookie != null) {
userId = CipherUtil.decrypt(userIdcookie.getValue(),