Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
2.5.9, 2.6.6, 2.7.3
-
None
-
Unknown
Description
If you set authorizations stuff in the HTTPConduit with a wrong password or username and issue a GET, 20 requests are sent to the server. For non-streaming connections (like GET), for the 401 response, the HttpURLConnection calls the Authenticator to get auth information. We create a new PasswordAuthentication object and return it each time. However, the HttpURLConnection does not compare that returned value with the previous value and will keep trying until it hits the http.maxRedirects value (default is 20).