CASC-7
updated to put redirect within code that looks for ticket
This commit is contained in:
parent
cc227cff16
commit
86514a31c1
|
|
@ -104,12 +104,12 @@ public final class CasValidationFilter extends AbstractCasFilter {
|
|||
log.warn(e, e);
|
||||
throw new ServletException(e);
|
||||
}
|
||||
}
|
||||
|
||||
if (this.redirectAfterValidation) {
|
||||
response.sendRedirect(response
|
||||
.encodeRedirectURL(constructServiceUrl(request, response)));
|
||||
return;
|
||||
if (this.redirectAfterValidation) {
|
||||
response.sendRedirect(response
|
||||
.encodeRedirectURL(constructServiceUrl(request, response)));
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
filterChain.doFilter(request, response);
|
||||
|
|
|
|||
|
|
@ -87,6 +87,7 @@ public final class CasValidationFilterTests extends TestCase {
|
|||
this.filter.doFilter(request, response, filterChain);
|
||||
|
||||
assertNotNull(session.getAttribute(AbstractCasFilter.CONST_ASSERTION));
|
||||
assertNull(response.getRedirectedUrl());
|
||||
}
|
||||
|
||||
public void testValidationFailure() throws Exception {
|
||||
|
|
|
|||
Loading…
Reference in New Issue