MAPREDUCE-3706. Fix circular redirect error in job-attempts page. Contributed by Robert Evans.
git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/trunk@1295314 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
753c2ba66c
commit
7bf2f9559f
|
@ -226,6 +226,9 @@ Release 0.23.2 - UNRELEASED
|
|||
MAPREDUCE-3903. Add support for mapreduce admin users. (Thomas Graves via
|
||||
sseth)
|
||||
|
||||
MAPREDUCE-3706. Fix circular redirect error in job-attempts page. (bobby
|
||||
via acmurthy)
|
||||
|
||||
Release 0.23.1 - 2012-02-17
|
||||
|
||||
INCOMPATIBLE CHANGES
|
||||
|
|
|
@ -38,7 +38,9 @@ import javax.servlet.http.HttpServletResponse;
|
|||
import org.apache.commons.httpclient.Header;
|
||||
import org.apache.commons.httpclient.HttpClient;
|
||||
import org.apache.commons.httpclient.HttpMethod;
|
||||
import org.apache.commons.httpclient.cookie.CookiePolicy;
|
||||
import org.apache.commons.httpclient.methods.GetMethod;
|
||||
import org.apache.commons.httpclient.params.HttpClientParams;
|
||||
import org.apache.commons.logging.Log;
|
||||
import org.apache.commons.logging.LogFactory;
|
||||
import org.apache.hadoop.io.IOUtils;
|
||||
|
@ -124,7 +126,10 @@ public class WebAppProxyServlet extends HttpServlet {
|
|||
HttpServletResponse resp, URI link,Cookie c) throws IOException {
|
||||
org.apache.commons.httpclient.URI uri =
|
||||
new org.apache.commons.httpclient.URI(link.toString(), false);
|
||||
HttpClient client = new HttpClient();
|
||||
HttpClientParams params = new HttpClientParams();
|
||||
params.setCookiePolicy(CookiePolicy.BROWSER_COMPATIBILITY);
|
||||
params.setBooleanParameter(HttpClientParams.ALLOW_CIRCULAR_REDIRECTS, true);
|
||||
HttpClient client = new HttpClient(params);
|
||||
HttpMethod method = new GetMethod(uri.getEscapedURI());
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
|
|
Loading…
Reference in New Issue