diff options
author | Instrumental <jonathan.gathman@att.com> | 2019-09-03 12:31:32 -0500 |
---|---|---|
committer | Instrumental <jonathan.gathman@att.com> | 2019-09-03 13:04:31 -0500 |
commit | 6309ef454e6960d95d13534645e1f15904de6862 (patch) | |
tree | 50086c164436cf2e65c8eb9a90180b1d4a34bbbc /auth/auth-gui/src/main | |
parent | c3b26083686b22724767c4056735d425e4360d0e (diff) |
Update Fixes from testing
Issue-ID: AAF-961
Change-Id: I142e460607bf32a785037fa2360b1c0efc3948b1
Signed-off-by: Instrumental <jonathan.gathman@att.com>
Diffstat (limited to 'auth/auth-gui/src/main')
-rw-r--r-- | auth/auth-gui/src/main/java/org/onap/aaf/auth/gui/Page.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/auth/auth-gui/src/main/java/org/onap/aaf/auth/gui/Page.java b/auth/auth-gui/src/main/java/org/onap/aaf/auth/gui/Page.java index 96c0fc48..02654696 100644 --- a/auth/auth-gui/src/main/java/org/onap/aaf/auth/gui/Page.java +++ b/auth/auth-gui/src/main/java/org/onap/aaf/auth/gui/Page.java @@ -309,6 +309,10 @@ public class Page extends HTMLCacheGen { if(theme==null) { theme = defaultTheme; } + List<String> ls = getThemeFiles(trans, theme); + if(ls==null) { + throw new APIException("Theme " + theme + " does not exist."); + } Cookie cookie = new Cookie(AAF_GUI_THEME,theme); cookie.setMaxAge(604_800); // one week trans.hresp().addCookie(cookie); |