[GRADLE-2639] NTLM Authentication fails when http.keepAlive is set to false Created: 19/Jan/13  Updated: 10/Dec/15  Resolved: 10/Dec/15

Status: Resolved
Project: Gradle
Affects Version/s: None
Fix Version/s: 2.11-rc-1

Type: Bug
Reporter: Daz DeBoer Assignee: Unassigned
Resolution: Fixed Votes: 0


Originally discovered through analysis of http://forums.gradle.org/gradle/topics/proxy_error-1r4f6

There is a bug in HttpClient that prevents NTLM Authentication from functioning correctly when the 'http.keepAlive' System Property is set to false. (The default value for this property is true).

The bug manifests itself by causing NTLM authentication to fail even when correct credentials are provided.

This issue should be fixed in HttpClient 4.2.3. However, I think that our use of SystemDefaultHttpClient causes this value to be used by HttpClient. This class has been deprecated and we should probably switch to using DefaultHttpClient and reading any relevant System Properties explicitly.

Comment by Mark Vieira (Inactive) [ 10/Dec/15 ]

Marking this as fixed since we no longer configure HttpClient in a way that takes the http.keepAlive system property into account since updating to httpclient 4.4.1 as part of GRADLE-3250.

Generated at Wed Jun 30 12:27:24 CDT 2021 using Jira 8.4.2#804003-sha1:d21414fc212e3af190e92c2d2ac41299b89402cf.