[ 
https://jira.codehaus.org/browse/WAGON-405?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=334480#comment-334480
 ] 

Konrad Windszus edited comment on WAGON-405 at 10/21/13 10:05 AM:
------------------------------------------------------------------

Finally figured out that enabling preemptive authentication works with 
{code}
<servers>
 <server>
  <id>serverid</id>
  <username>myuser</username>
  <password>mypassword</password>
  <configuration>
   <wagonProvider>httpclient</wagonProvider>
   <httpConfiguration>
    <all>
     <usePreemptive>true</usePreemptive>
    </all>
   </httpConfiguration>
  </configuration>
 </server>
</servers>
{code}
Please update the documentation at 
http://maven.apache.org/guides/mini/guide-http-settings.html#Example:_Using_Preemptive_Authentication
 and fix the statement that preemptive authentication is enabled by default or 
make it really the default within the code.
                
      was (Author: kwin):
    Finally figured out that enabling preemptive authentication works with 

<servers>
                <server>
                        <id></id>
                        <username>myuser</username>
                        <password>mypassword</password>
                        <configuration>
                        <wagonProvider>httpclient</wagonProvider>
                        <httpConfiguration>
                                <all>
                                        <usePreemptive>true</usePreemptive>
                                </all>
                        </httpConfiguration>
                </configuration>
                </server>
        </servers>

Please update the documentation at 
http://maven.apache.org/guides/mini/guide-http-settings.html#Example:_Using_Preemptive_Authentication
 and fix the statement that preemptive authentication is enabled by default or 
make it really the default within the code.
                  
> Preemptive authentication still not working with Maven 3.0.4+
> -------------------------------------------------------------
>
>                 Key: WAGON-405
>                 URL: https://jira.codehaus.org/browse/WAGON-405
>             Project: Maven Wagon
>          Issue Type: Bug
>            Reporter: Konrad Windszus
>         Attachments: WAGON-405-MVN3.1.1.log
>
>
> Although by default the preemptive authentication should work now with Maven 
> 3.0.4, a wireshare dump exposes, that each request for downloading a new 
> dependency does not initially come with the authentication header. Only after 
>  Nexus replied with a 401 the right credentials are set in the authentication 
> header. According to [1], since Maven 3.0.4 the default HTTP wagon uses 
> preemptive authentication which cannot be disabled [2]. Even with Maven 3.1.1 
> it does not work.
> [1] - http://maven.apache.org/guides/mini/guide-http-settings.html#Maven_3.0.4
> [2] - 
> http://maven.40175.n5.nabble.com/Maven-3-0-4-preemptive-auth-problem-tt5470892.html#none

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to