Code Review
/
aaf
/
authz.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Update Fixes from testing
[aaf/authz.git]
/
auth
/
auth-gui
/
src
/
main
/
java
/
org
/
onap
/
aaf
/
auth
/
gui
/
Page.java
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
96c0fc4
..
0265469
100644
(file)
--- 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;
}
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);
Cookie cookie = new Cookie(AAF_GUI_THEME,theme);
cookie.setMaxAge(604_800); // one week
trans.hresp().addCookie(cookie);