Skip to content

Commit

Permalink
MID-4214 fixed context redirect
Browse files Browse the repository at this point in the history
  • Loading branch information
1azyman committed Dec 13, 2017
1 parent 05236a4 commit 72a1df7
Showing 1 changed file with 3 additions and 2 deletions.
Expand Up @@ -172,8 +172,9 @@ public void decide(Authentication authentication, Object object, Collection<Conf
authentication, object);
return;
}

if ("/".equals(filterInvocation.getRequest().getServletPath())) {

String servletPath = filterInvocation.getRequest().getServletPath();
if ("".equals(servletPath) || "/".equals(servletPath)) {
// Special case, this is in fact "magic" redirect to home page or login page. It handles autz in its own way.
LOGGER.trace("DECIDE: authentication={}, object={}: ALLOW ALL (/)",
authentication, object);
Expand Down

0 comments on commit 72a1df7

Please sign in to comment.