updated to put redirect within code that looks for ticket
This commit is contained in:
Scott Battaglia 2006-08-13 02:44:37 +00:00
parent cc227cff16
commit 86514a31c1
2 changed files with 6 additions and 5 deletions

View File

@ -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);

View File

@ -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 {