From b08305d72d34f3e71b087920718dc0decdcee303 Mon Sep 17 00:00:00 2001 From: Arundathi Patil Date: Wed, 18 Sep 2019 15:12:27 +0530 Subject: Sonar fix: CUI.java Fixed sonar issues across this file Issue-ID: AAF-968 Change-Id: I2c1e40099f686c9a9275e075cc4c6af7d5e0e1f2 Signed-off-by: Arundathi Patil --- auth/auth-gui/src/main/java/org/onap/aaf/auth/cui/CUI.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'auth/auth-gui/src/main/java') diff --git a/auth/auth-gui/src/main/java/org/onap/aaf/auth/cui/CUI.java b/auth/auth-gui/src/main/java/org/onap/aaf/auth/cui/CUI.java index cb44ab09..20a28cab 100644 --- a/auth/auth-gui/src/main/java/org/onap/aaf/auth/cui/CUI.java +++ b/auth/auth-gui/src/main/java/org/onap/aaf/auth/cui/CUI.java @@ -45,7 +45,7 @@ import org.onap.aaf.misc.env.TimeTaken; public class CUI extends HttpCode { private final AAF_GUI gui; - private final static Pattern userPerm = Pattern.compile("perm (create|delete).*@.*:id.*aaf.gui.*"); + private static final Pattern userPerm = Pattern.compile("perm (create|delete).*@.*:id.*aaf.gui.*"); public CUI(AAF_GUI gui) { @@ -90,6 +90,7 @@ public class CUI extends HttpCode { if(userPerm.matcher(cmdStr).matches()) { trans.clearCache(); Cookie cookie = new Cookie(Page.AAF_THEME,trans.getProperty(Page.AAF_THEME)); + cookie.setSecure(true); cookie.setMaxAge(-1); cookie.setComment("Remove AAF GUI Theme"); trans.hresp().addCookie(cookie); -- cgit 1.2.3-korg