-
Type: Improvement
-
Status: Resolved
-
Priority: Minor
-
Resolution: Duplicate
-
Affects Version/s: None
-
Fix Version/s: None
-
Component/s: Rest API
If we attempt to upgrade to Apache httpclient 4.5.12 we get this error in unit tests for BatchUploadFixture.testChunkedUpload:
10.10 stack trace
com.sun.jersey.api.client.ClientHandlerException: org.apache.http.client.ClientProtocolException at com.sun.jersey.client.apache4.ApacheHttpClient4Handler.handle(ApacheHttpClient4Handler.java:187) at com.sun.jersey.api.client.filter.HTTPBasicAuthFilter.handle(HTTPBasicAuthFilter.java:105) at com.sun.jersey.api.client.Client.handle(Client.java:652) at com.sun.jersey.api.client.WebResource.handle(WebResource.java:682) at com.sun.jersey.api.client.WebResource.access$200(WebResource.java:74) at com.sun.jersey.api.client.WebResource$Builder.get(WebResource.java:509) at org.nuxeo.ecm.restapi.test.BaseTest.getResponse(BaseTest.java:176) at org.nuxeo.ecm.restapi.test.BaseTest.getResponse(BaseTest.java:126) at org.nuxeo.ecm.restapi.test.BatchUploadFixture.testChunkedUpload(BatchUploadFixture.java:477) ... Caused by: org.apache.http.client.ClientProtocolException at org.apache.http.impl.client.InternalHttpClient.doExecute(InternalHttpClient.java:187) at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:72) at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:56) at com.sun.jersey.client.apache4.ApacheHttpClient4Handler.handle(ApacheHttpClient4Handler.java:171) ... 65 more Caused by: org.apache.http.ProtocolException: Received redirect response HTTP/1.1 308 but no location header at org.apache.http.impl.client.DefaultRedirectStrategy.getLocationURI(DefaultRedirectStrategy.java:148) at org.apache.http.impl.client.DefaultRedirectStrategy.getRedirect(DefaultRedirectStrategy.java:223) at org.apache.http.impl.execchain.RedirectExec.execute(RedirectExec.java:126) at org.apache.http.impl.client.InternalHttpClient.doExecute(InternalHttpClient.java:185) ... 68 more
This is due to changes done by HTTPCLIENT-2053.