|
@@ -16,12 +16,13 @@
|
|
|
package org.springframework.security.web.authentication;
|
|
|
|
|
|
import java.io.IOException;
|
|
|
-
|
|
|
+import javax.servlet.ServletException;
|
|
|
import javax.servlet.http.HttpServletRequest;
|
|
|
import javax.servlet.http.HttpServletResponse;
|
|
|
|
|
|
import org.apache.commons.logging.Log;
|
|
|
import org.apache.commons.logging.LogFactory;
|
|
|
+
|
|
|
import org.springframework.security.core.Authentication;
|
|
|
import org.springframework.security.web.DefaultRedirectStrategy;
|
|
|
import org.springframework.security.web.RedirectStrategy;
|
|
@@ -78,7 +79,7 @@ public abstract class AbstractAuthenticationTargetUrlRequestHandler {
|
|
|
* The redirect will not be performed if the response has already been committed.
|
|
|
*/
|
|
|
protected void handle(HttpServletRequest request, HttpServletResponse response,
|
|
|
- Authentication authentication) throws IOException {
|
|
|
+ Authentication authentication) throws IOException, ServletException {
|
|
|
String targetUrl = determineTargetUrl(request, response, authentication);
|
|
|
|
|
|
if (response.isCommitted()) {
|