Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
4.2.5
-
None
-
Use a repacked httpclient (repacked by jarjar) version 4.2.5 on android 2.2.2
Description
Problem described at: http://code.google.com/p/android/issues/detail?id=2690. The fix is to set default port for scheme to avoid passing -1 as port, which would cause an IllegalArgumentException.
In method updateSecureConnection, located at file org.apache.http.impl.conn.DefaultClientConnectionOperator.java, line 233, should use schm.resolvePort(target.getPort()) instead of target.getPort() to avoid passing -1 as port. In android, ther is an patch review at https://android-review.googlesource.com/#/c/15755/1/src/org/apache/http/impl/conn/DefaultClientConnectionOperator.java