maven-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Chris Tanger (JIRA)" <j...@codehaus.org>
Subject [jira] Issue Comment Edited: (MNG-4792) Preemptive authentication doesn't work
Date Sun, 05 Jun 2011 03:39:22 GMT

    [ http://jira.codehaus.org/browse/MNG-4792?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=269567#action_269567
] 

Chris Tanger edited comment on MNG-4792 at 6/4/11 10:38 PM:
------------------------------------------------------------

I'm also experiencing this issue with maven 2.2.1 with a Nexus server on the back.  I have
sniffed the http communications and the preemptive authentication configuration is indeed
being ignored.

Furthermore it appears that the expect 100-continue functionality isn't working properly either.
 Protocol inspection reveals that even when 100-continue is sent in the header the payload
is still sent.  Naturally this leads to a bad checksum computation on the server since the
first request is denied with 401 since preemptive authentication doesn't work.

      was (Author: tangercp):
    I'm also experiencing this issue with maven 2.2.1 with a Nexus server on the back.  I
have sniffed the http communications and the preemptive authentication configuration is indeed
being ignored.
  
> Preemptive authentication doesn't work
> --------------------------------------
>
>                 Key: MNG-4792
>                 URL: http://jira.codehaus.org/browse/MNG-4792
>             Project: Maven 2 & 3
>          Issue Type: Bug
>          Components: Artifacts and Repositories
>    Affects Versions: 2.2.1
>         Environment: Sun Java 1.6.0_21, Windows 7
>            Reporter: Marcin Zajaczkowski
>
> It seems preemptive authentication in Maven using httpclient wagon provider doesn't work.
With configuration taken form [1] Maven knock to repository (tested with Artifactory 2.2.5)
as anonymous user.
> <server>
>  <id>repo-id</id>
>  <username>user</username>
>  <password>pass</password>
>  <configuration>
>   <wagonProvider>httpclient</wagonProvider>
>   <httpConfiguration>
>    <put>
>     <params>
>      <param>
>       <name>http.authentication.preemptive</name>
>       <value>%b,true</value>
>      </param>
>     </params>
>    </put>
>   </httpConfiguration>
>  </configuration>
> </server>
> Confirmed by independent party also with Maven 2.2.1. I can sniff http traffic if needed.
> [1] - http://maven.apache.org/guides/mini/guide-http-settings.html

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message