DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUGĀ· RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://issues.apache.org/bugzilla/show_bug.cgi?id=37133>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED ANDĀ· INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=37133 Summary: Preemptive Authorization parameter initialization incorrect, causes preemptive auth not to work Product: HttpClient Version: 3.0 RC4 Platform: All OS/Version: other Status: NEW Severity: normal Priority: P2 Component: Commons HttpClient AssignedTo: [email protected] ReportedBy: [EMAIL PROTECTED] Preemptive authorization is defeated by an incorrect initialization. Patch follows: --- DefaultHttpParamsFactory.java 2005-10-10 19:09:10.000000000 -0700 +++ DefaultHttpParamsFactory.java.fixed 2005-10-17 17:00:10.259174920 -0700 @@ -118,9 +118,9 @@ if (preemptiveDefault != null) { preemptiveDefault = preemptiveDefault.trim().toLowerCase(); if (preemptiveDefault.equals("true")) { - params.setParameter (HttpClientParams.PREEMPTIVE_AUTHENTICATION, "on"); + params.setParameter (HttpClientParams.PREEMPTIVE_AUTHENTICATION, Boolean.TRUE); } else if (preemptiveDefault.equals("false")) { - params.setParameter (HttpClientParams.PREEMPTIVE_AUTHENTICATION, "off"); + params.setParameter (HttpClientParams.PREEMPTIVE_AUTHENTICATION, Boolean.FALSE); } } -- Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
