[jboss-jira] [JBoss JIRA] (DROOLS-724) Preemptive authentication in KIE Scanner
Rares Vernica (JIRA)
issues at jboss.org
Fri Feb 20 16:48:49 EST 2015
Rares Vernica created DROOLS-724:
------------------------------------
Summary: Preemptive authentication in KIE Scanner
Key: DROOLS-724
URL: https://issues.jboss.org/browse/DROOLS-724
Project: Drools
Issue Type: Feature Request
Components: kie server
Affects Versions: 6.1.0.Final
Reporter: Rares Vernica
Assignee: Edson Tirelli
The pre-emptive authentication setting from Maven's settings.xml is not picked up by Drools:
<server>
<id>guvnor-m2-repo</id>
<username>...</username>
<password>...</password>
<configuration>
<httpConfiguration>
<usePreemptive>true</usePreemptive>
</httpConfiguration>
</configuration>
</server>
I am not sure if the bug is in Drools or Wagon. To fix it, I made the pre-emptive always true, but adding:
...
if ( "http".equals( roleHint ) || "https".equals( roleHint ) ) {
HttpMethodConfiguration httpMethodConfiguration = new HttpMethodConfiguration();
httpMethodConfiguration.setUsePreemptive( true );
HttpConfiguration httpConfiguration = new HttpConfiguration();
httpConfiguration.setAll( httpMethodConfiguration );
HttpWagon httpWagon = new HttpWagon();
httpWagon.setHttpConfiguration( httpConfiguration );
return httpWagon;
}
...
in Aether$ManualWagonProvider. This obviously is not a good solution.
--
This message was sent by Atlassian JIRA
(v6.3.11#6341)
More information about the jboss-jira
mailing list