Wrong extra return if session is null at check
This commit is contained in:
parent
760448c7db
commit
99b38ef4b7
|
@ -74,12 +74,11 @@ public class SmartGearsPortalValve extends ValveBase {
|
||||||
// user cannot be null otherwise also the getCurrentUsername(request) returned null username in previous lines
|
// user cannot be null otherwise also the getCurrentUsername(request) returned null username in previous lines
|
||||||
_log.debug("Getting current session");
|
_log.debug("Getting current session");
|
||||||
HttpSession session = request.getSession(false);
|
HttpSession session = request.getSession(false);
|
||||||
if (session == null) {
|
if (session != null) {
|
||||||
_log.debug("Session is null, cannot continue");
|
|
||||||
return;
|
|
||||||
} else {
|
|
||||||
OIDCUmaUtil.checkUMATicketAndProvideInThreadLocal(request, (HttpServletResponse) resp, user,
|
OIDCUmaUtil.checkUMATicketAndProvideInThreadLocal(request, (HttpServletResponse) resp, user,
|
||||||
session, scope);
|
session, scope);
|
||||||
|
} else {
|
||||||
|
_log.debug("Session is null, cannot continue");
|
||||||
}
|
}
|
||||||
|
|
||||||
//_log.trace("Security token set OK for " + username + " in scope " + scope);
|
//_log.trace("Security token set OK for " + username + " in scope " + scope);
|
||||||
|
|
Loading…
Reference in New Issue