[ 
https://issues.apache.org/jira/browse/WAGON-432?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14491388#comment-14491388
 ] 

Robert Scholte commented on WAGON-432:
--------------------------------------

[~michael-o], well, {{HttpClient}} didn't set the {{User-Agent}}. And that's 
probably correct: the application _using_ {{HttpClient}} should set its value. 
Please read http://markmail.org/message/lwx5rgbd4lmttmzq to understand the 
situation and why we made these changes in detail. In (very) short: the missing 
{{User-Agent}} suddenly caused the following error:
{noformat}
org.apache.maven.artifact.repository.metadata.ArtifactRepositoryMetadata could 
not be retrieved from repositories due to an error: repository
metadata for: 'artifact org.apache.maven.its.doap:maven-it-plugin' could not be 
retrieved from repository: central due to an error:
Authorization failed: Access denied to:
http://repo.maven.apache.org/maven2/org/apache/maven/its/doap/maven-it-plugin/maven-metadata.xml
, ReasonPhrase:Denied Access.
{noformat}.

> Maven sends duplicate User-Agent header
> ---------------------------------------
>
>                 Key: WAGON-432
>                 URL: https://issues.apache.org/jira/browse/WAGON-432
>             Project: Maven Wagon
>          Issue Type: Bug
>          Components: wagon-http
>    Affects Versions: 2.8
>            Reporter: Michael Osipov
>            Priority: Minor
>         Attachments: 
> 0001-WAGON-432-do-not-set-User-Agent-header-by-default.patch, 
> headergroup-after-setHeaders.png, headergroup-after-setUserAgent.png, 
> headergroup-before-execution.png, maven-3.1.1.png, maven-3.2.2.png
>
>
> Maven 3.1.1 sends only one {{User-Agent}} header, 3.2.2 sends twice. See 
> screenshots.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to