You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Brett Porter (JIRA)" <ji...@codehaus.org> on 2008/07/04 06:33:26 UTC

[jira] Created: (MNG-3652) set a user agent for Maven HTTP requests

set a user agent for Maven HTTP requests
----------------------------------------

                 Key: MNG-3652
                 URL: http://jira.codehaus.org/browse/MNG-3652
             Project: Maven 2
          Issue Type: Improvement
          Components: Artifacts and Repositories
    Affects Versions: 2.0.9
            Reporter: Brett Porter
             Fix For: 2.1-alpha-1


Apache Maven/2.1-SNAPSHOT

-- 
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

        

[jira] Commented: (MNG-3652) set a user agent for Maven HTTP requests

Posted by "John Casey (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MNG-3652?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=142770#action_142770 ] 

John Casey commented on MNG-3652:
---------------------------------

I revised this for 2.0.10 (needs to be propagated to 2.0.x and 2.1.x branches still), and the revision works with all wagon classes that have a setHttpHeaders method and where the protocol.startsWith( "http" )...it also avoids the need for an improved shade plugin to merge component configurations.

That was in: https://svn.apache.org/repos/asf/maven/components/branches/maven-2.0.10-RC, revId: 678784

Also, I revised the User-Agent integration test to setup a small ServerSocket and record the HTTP headers that were sent from WagonManager.getArtifact(..) directed at that server socket. I then compare this User-Agent header to information collected by the plugin that triggers the WagonManager call, and written out to the touch file. This information includes maven version (since the System property "maven.version" isn't present when the unit test is run directly using the -Dtest=... surefire parameter), java version, O/S name, and O/S version.

The User-Agent string itself has also been improved to be more consistent with the values used by other engines. See:

http://www.user-agents.org/index.shtml?moz

for examples.

> set a user agent for Maven HTTP requests
> ----------------------------------------
>
>                 Key: MNG-3652
>                 URL: http://jira.codehaus.org/browse/MNG-3652
>             Project: Maven 2
>          Issue Type: Improvement
>          Components: Artifacts and Repositories
>    Affects Versions: 2.0.9
>            Reporter: Brett Porter
>            Assignee: Brett Porter
>             Fix For: 2.0.10, 2.1-alpha-1
>
>
> Apache Maven/2.1-SNAPSHOT

-- 
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

        

[jira] Commented: (MNG-3652) set a user agent for Maven HTTP requests

Posted by "John Casey (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MNG-3652?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=142771#action_142771 ] 

John Casey commented on MNG-3652:
---------------------------------

BTW, the updated integration test was committed in revId: 678785

> set a user agent for Maven HTTP requests
> ----------------------------------------
>
>                 Key: MNG-3652
>                 URL: http://jira.codehaus.org/browse/MNG-3652
>             Project: Maven 2
>          Issue Type: Improvement
>          Components: Artifacts and Repositories
>    Affects Versions: 2.0.9
>            Reporter: Brett Porter
>            Assignee: Brett Porter
>             Fix For: 2.0.10, 2.1-alpha-1
>
>
> Apache Maven/2.1-SNAPSHOT

-- 
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

        

[jira] Updated: (MNG-3652) set a user agent for Maven HTTP requests

Posted by "Brett Porter (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MNG-3652?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Brett Porter updated MNG-3652:
------------------------------

    Fix Version/s: 2.0.10

ported to the 2.0.x branch

> set a user agent for Maven HTTP requests
> ----------------------------------------
>
>                 Key: MNG-3652
>                 URL: http://jira.codehaus.org/browse/MNG-3652
>             Project: Maven 2
>          Issue Type: Improvement
>          Components: Artifacts and Repositories
>    Affects Versions: 2.0.9
>            Reporter: Brett Porter
>            Assignee: Brett Porter
>             Fix For: 2.0.10, 2.1-alpha-1
>
>
> Apache Maven/2.1-SNAPSHOT

-- 
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

        

[jira] Closed: (MNG-3652) set a user agent for Maven HTTP requests

Posted by "Brett Porter (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MNG-3652?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Brett Porter closed MNG-3652.
-----------------------------

         Assignee: Brett Porter
       Resolution: Fixed
    Fix Version/s: 2.1-alpha-1

> set a user agent for Maven HTTP requests
> ----------------------------------------
>
>                 Key: MNG-3652
>                 URL: http://jira.codehaus.org/browse/MNG-3652
>             Project: Maven 2
>          Issue Type: Improvement
>          Components: Artifacts and Repositories
>    Affects Versions: 2.0.9
>            Reporter: Brett Porter
>            Assignee: Brett Porter
>             Fix For: 2.1-alpha-1
>
>
> Apache Maven/2.1-SNAPSHOT

-- 
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