You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@buildr.apache.org by "Michael Guymon (JIRA)" <ji...@apache.org> on 2011/03/17 22:32:29 UTC

[jira] Created: (BUILDR-577) Allow remote repo to be added with http basic auth support

Allow remote repo to be added with http basic auth support
----------------------------------------------------------

                 Key: BUILDR-577
                 URL: https://issues.apache.org/jira/browse/BUILDR-577
             Project: Buildr
          Issue Type: Improvement
          Components: Packaging
            Reporter: Michael Guymon
         Attachments: allow_auth_for_remote_repos.patch

Allow for remote repositories to pass in auth information in addition to the url. The patch will allow options of passing in a String, Hash, or URI

repositories.remote << "http://repository.jboss.org/nexus/content/groups/public-jboss"
repositories.remote << { :url => "http://repository.jboss.org/nexus/content/groups/public-jboss", :username => 'username', :password => 'password' }
repositories.remote << URI.parse( "uri" )

repositories.remote is now an instance of Buildr::RepositoryArray, an extension of Array. The methods that add/change the array have been overridden to convert input into the format of {:url => URI, :username => String, :password => String}, with :username and :password being optional.

repositories.remote now return repos in the format of an Array of {:url => URI, :username => String, :password => String}, so that is a consideration for backward compatibility. 

Artifact#download_artifact now passes the auth information to URI.download. HTTP#read and HTTP#write_internal now check the passed in options for auth.


SFTP is not supported by this patch. It would not be a difficult task, just have to consolidate with the existing options[:ssh_options] being passed in.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Updated] (BUILDR-577) Allow remote repo to be added with http basic auth support

Posted by "Michael Guymon (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/BUILDR-577?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Michael Guymon updated BUILDR-577:
----------------------------------

    Attachment:     (was: allow_auth_for_remote_repos.patch)
    
> Allow remote repo to be added with http basic auth support
> ----------------------------------------------------------
>
>                 Key: BUILDR-577
>                 URL: https://issues.apache.org/jira/browse/BUILDR-577
>             Project: Buildr
>          Issue Type: Improvement
>          Components: Packaging
>            Reporter: Michael Guymon
>            Priority: Minor
>         Attachments: repo_auth.patch
>
>
> Allow for remote repositories to pass in auth information in addition to the url. The patch will allow options of passing in a String, Hash, or URI
> repositories.remote << "http://repository.jboss.org/nexus/content/groups/public-jboss"
> repositories.remote << { :url => "http://repository.jboss.org/nexus/content/groups/public-jboss", :username => 'username', :password => 'password' }
> repositories.remote << URI.parse( "uri" )
> repositories.remote is now an instance of Buildr::RepositoryArray, an extension of Array. The methods that add/change the array have been overridden to convert input into the format of {:url => URI, :username => String, :password => String}, with :username and :password being optional.
> repositories.remote now return repos in the format of an Array of {:url => URI, :username => String, :password => String}, so that is a consideration for backward compatibility. 
> Artifact#download_artifact now passes the auth information to URI.download. HTTP#read and HTTP#write_internal now check the passed in options for auth.
> SFTP is not supported by this patch. It would not be a difficult task, just have to consolidate with the existing options[:ssh_options] being passed in.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (BUILDR-577) Allow remote repo to be added with http basic auth support

Posted by "Michael Guymon (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/BUILDR-577?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Michael Guymon updated BUILDR-577:
----------------------------------

    Attachment:     (was: repo_auth.patch)
    
> Allow remote repo to be added with http basic auth support
> ----------------------------------------------------------
>
>                 Key: BUILDR-577
>                 URL: https://issues.apache.org/jira/browse/BUILDR-577
>             Project: Buildr
>          Issue Type: Improvement
>          Components: Packaging
>            Reporter: Michael Guymon
>            Priority: Minor
>         Attachments: repo_auth.patch
>
>
> Allow for remote repositories to pass in auth information in addition to the url. The patch will allow options of passing in a String, Hash, or URI
> repositories.remote << "http://repository.jboss.org/nexus/content/groups/public-jboss"
> repositories.remote << { :url => "http://repository.jboss.org/nexus/content/groups/public-jboss", :username => 'username', :password => 'password' }
> repositories.remote << URI.parse( "uri" )
> repositories.remote is now an instance of Buildr::RepositoryArray, an extension of Array. The methods that add/change the array have been overridden to convert input into the format of {:url => URI, :username => String, :password => String}, with :username and :password being optional.
> repositories.remote now return repos in the format of an Array of {:url => URI, :username => String, :password => String}, so that is a consideration for backward compatibility. 
> Artifact#download_artifact now passes the auth information to URI.download. HTTP#read and HTTP#write_internal now check the passed in options for auth.
> SFTP is not supported by this patch. It would not be a difficult task, just have to consolidate with the existing options[:ssh_options] being passed in.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Assigned] (BUILDR-577) Allow remote repo to be added with http basic auth support

Posted by "Antoine Toulme (Assigned) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/BUILDR-577?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Antoine Toulme reassigned BUILDR-577:
-------------------------------------

    Assignee: Antoine Toulme
    
> Allow remote repo to be added with http basic auth support
> ----------------------------------------------------------
>
>                 Key: BUILDR-577
>                 URL: https://issues.apache.org/jira/browse/BUILDR-577
>             Project: Buildr
>          Issue Type: Improvement
>          Components: Packaging
>            Reporter: Michael Guymon
>            Assignee: Antoine Toulme
>            Priority: Minor
>         Attachments: repo_auth.patch
>
>
> Allow for remote repositories to pass in auth information in addition to the url. The patch will allow options of passing in a String, Hash, or URI
> repositories.remote << "http://repository.jboss.org/nexus/content/groups/public-jboss"
> repositories.remote << { :url => "http://repository.jboss.org/nexus/content/groups/public-jboss", :username => 'username', :password => 'password' }
> repositories.remote << URI.parse( "uri" )
> repositories.remote is now an instance of Buildr::RepositoryArray, an extension of Array. The methods that add/change the array have been overridden to convert input into the format of {:url => URI, :username => String, :password => String}, with :username and :password being optional.
> repositories.remote now return repos in the format of an Array of {:url => URI, :username => String, :password => String}, so that is a consideration for backward compatibility. 
> Artifact#download_artifact now passes the auth information to URI.download. HTTP#read and HTTP#write_internal now check the passed in options for auth.
> SFTP is not supported by this patch. It would not be a difficult task, just have to consolidate with the existing options[:ssh_options] being passed in.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (BUILDR-577) Allow remote repo to be added with http basic auth support

Posted by "Antoine Toulme (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/BUILDR-577?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13152517#comment-13152517 ] 

Antoine Toulme commented on BUILDR-577:
---------------------------------------

Michael, thanks a lot for the patch. It looks like it even contains a spec, which is awesome. Would you please make sure to check the box when attaching the patch that says you give it to the ASF ? Otherwise we cannot accept it.
                
> Allow remote repo to be added with http basic auth support
> ----------------------------------------------------------
>
>                 Key: BUILDR-577
>                 URL: https://issues.apache.org/jira/browse/BUILDR-577
>             Project: Buildr
>          Issue Type: Improvement
>          Components: Packaging
>            Reporter: Michael Guymon
>            Priority: Minor
>         Attachments: allow_auth_for_remote_repos.patch, repo_auth.patch
>
>
> Allow for remote repositories to pass in auth information in addition to the url. The patch will allow options of passing in a String, Hash, or URI
> repositories.remote << "http://repository.jboss.org/nexus/content/groups/public-jboss"
> repositories.remote << { :url => "http://repository.jboss.org/nexus/content/groups/public-jboss", :username => 'username', :password => 'password' }
> repositories.remote << URI.parse( "uri" )
> repositories.remote is now an instance of Buildr::RepositoryArray, an extension of Array. The methods that add/change the array have been overridden to convert input into the format of {:url => URI, :username => String, :password => String}, with :username and :password being optional.
> repositories.remote now return repos in the format of an Array of {:url => URI, :username => String, :password => String}, so that is a consideration for backward compatibility. 
> Artifact#download_artifact now passes the auth information to URI.download. HTTP#read and HTTP#write_internal now check the passed in options for auth.
> SFTP is not supported by this patch. It would not be a difficult task, just have to consolidate with the existing options[:ssh_options] being passed in.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (BUILDR-577) Allow remote repo to be added with http basic auth support

Posted by "Michael Guymon (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/BUILDR-577?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13152533#comment-13152533 ] 

Michael Guymon commented on BUILDR-577:
---------------------------------------

Whoops, I glazed over the upload form and missed the ASF assignment. The old patch is no longer needed, I went ahead and removed it from the ticket to avoid confusion.
                
> Allow remote repo to be added with http basic auth support
> ----------------------------------------------------------
>
>                 Key: BUILDR-577
>                 URL: https://issues.apache.org/jira/browse/BUILDR-577
>             Project: Buildr
>          Issue Type: Improvement
>          Components: Packaging
>            Reporter: Michael Guymon
>            Priority: Minor
>         Attachments: repo_auth.patch
>
>
> Allow for remote repositories to pass in auth information in addition to the url. The patch will allow options of passing in a String, Hash, or URI
> repositories.remote << "http://repository.jboss.org/nexus/content/groups/public-jboss"
> repositories.remote << { :url => "http://repository.jboss.org/nexus/content/groups/public-jboss", :username => 'username', :password => 'password' }
> repositories.remote << URI.parse( "uri" )
> repositories.remote is now an instance of Buildr::RepositoryArray, an extension of Array. The methods that add/change the array have been overridden to convert input into the format of {:url => URI, :username => String, :password => String}, with :username and :password being optional.
> repositories.remote now return repos in the format of an Array of {:url => URI, :username => String, :password => String}, so that is a consideration for backward compatibility. 
> Artifact#download_artifact now passes the auth information to URI.download. HTTP#read and HTTP#write_internal now check the passed in options for auth.
> SFTP is not supported by this patch. It would not be a difficult task, just have to consolidate with the existing options[:ssh_options] being passed in.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Updated: (BUILDR-577) Allow remote repo to be added with http basic auth support

Posted by "Michael Guymon (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/BUILDR-577?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Michael Guymon updated BUILDR-577:
----------------------------------

    Attachment: allow_auth_for_remote_repos.patch

> Allow remote repo to be added with http basic auth support
> ----------------------------------------------------------
>
>                 Key: BUILDR-577
>                 URL: https://issues.apache.org/jira/browse/BUILDR-577
>             Project: Buildr
>          Issue Type: Improvement
>          Components: Packaging
>            Reporter: Michael Guymon
>         Attachments: allow_auth_for_remote_repos.patch
>
>
> Allow for remote repositories to pass in auth information in addition to the url. The patch will allow options of passing in a String, Hash, or URI
> repositories.remote << "http://repository.jboss.org/nexus/content/groups/public-jboss"
> repositories.remote << { :url => "http://repository.jboss.org/nexus/content/groups/public-jboss", :username => 'username', :password => 'password' }
> repositories.remote << URI.parse( "uri" )
> repositories.remote is now an instance of Buildr::RepositoryArray, an extension of Array. The methods that add/change the array have been overridden to convert input into the format of {:url => URI, :username => String, :password => String}, with :username and :password being optional.
> repositories.remote now return repos in the format of an Array of {:url => URI, :username => String, :password => String}, so that is a consideration for backward compatibility. 
> Artifact#download_artifact now passes the auth information to URI.download. HTTP#read and HTTP#write_internal now check the passed in options for auth.
> SFTP is not supported by this patch. It would not be a difficult task, just have to consolidate with the existing options[:ssh_options] being passed in.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] Updated: (BUILDR-577) Allow remote repo to be added with http basic auth support

Posted by "Michael Guymon (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/BUILDR-577?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Michael Guymon updated BUILDR-577:
----------------------------------

    Priority: Minor  (was: Major)

> Allow remote repo to be added with http basic auth support
> ----------------------------------------------------------
>
>                 Key: BUILDR-577
>                 URL: https://issues.apache.org/jira/browse/BUILDR-577
>             Project: Buildr
>          Issue Type: Improvement
>          Components: Packaging
>            Reporter: Michael Guymon
>            Priority: Minor
>         Attachments: allow_auth_for_remote_repos.patch
>
>
> Allow for remote repositories to pass in auth information in addition to the url. The patch will allow options of passing in a String, Hash, or URI
> repositories.remote << "http://repository.jboss.org/nexus/content/groups/public-jboss"
> repositories.remote << { :url => "http://repository.jboss.org/nexus/content/groups/public-jboss", :username => 'username', :password => 'password' }
> repositories.remote << URI.parse( "uri" )
> repositories.remote is now an instance of Buildr::RepositoryArray, an extension of Array. The methods that add/change the array have been overridden to convert input into the format of {:url => URI, :username => String, :password => String}, with :username and :password being optional.
> repositories.remote now return repos in the format of an Array of {:url => URI, :username => String, :password => String}, so that is a consideration for backward compatibility. 
> Artifact#download_artifact now passes the auth information to URI.download. HTTP#read and HTTP#write_internal now check the passed in options for auth.
> SFTP is not supported by this patch. It would not be a difficult task, just have to consolidate with the existing options[:ssh_options] being passed in.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (BUILDR-577) Allow remote repo to be added with http basic auth support

Posted by "Michael Guymon (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/BUILDR-577?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13152516#comment-13152516 ] 

Michael Guymon commented on BUILDR-577:
---------------------------------------

New diet patch! only 4kb a serving!

Patch provides a new method to Buildr::Repository, remote_uri. 

Returns an array of all the remote repositories as instances of URI
    
     Supports remote repository formats: 
      * String urls: "http://example.com/repo"
      * URI: URI.parse( "http://example.com/repo" )
      * Hash: { :url => "http://example.com/repo", :user => "user", :pass => "pass" }

                
> Allow remote repo to be added with http basic auth support
> ----------------------------------------------------------
>
>                 Key: BUILDR-577
>                 URL: https://issues.apache.org/jira/browse/BUILDR-577
>             Project: Buildr
>          Issue Type: Improvement
>          Components: Packaging
>            Reporter: Michael Guymon
>            Priority: Minor
>         Attachments: allow_auth_for_remote_repos.patch, repo_auth.patch
>
>
> Allow for remote repositories to pass in auth information in addition to the url. The patch will allow options of passing in a String, Hash, or URI
> repositories.remote << "http://repository.jboss.org/nexus/content/groups/public-jboss"
> repositories.remote << { :url => "http://repository.jboss.org/nexus/content/groups/public-jboss", :username => 'username', :password => 'password' }
> repositories.remote << URI.parse( "uri" )
> repositories.remote is now an instance of Buildr::RepositoryArray, an extension of Array. The methods that add/change the array have been overridden to convert input into the format of {:url => URI, :username => String, :password => String}, with :username and :password being optional.
> repositories.remote now return repos in the format of an Array of {:url => URI, :username => String, :password => String}, so that is a consideration for backward compatibility. 
> Artifact#download_artifact now passes the auth information to URI.download. HTTP#read and HTTP#write_internal now check the passed in options for auth.
> SFTP is not supported by this patch. It would not be a difficult task, just have to consolidate with the existing options[:ssh_options] being passed in.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (BUILDR-577) Allow remote repo to be added with http basic auth support

Posted by "Antoine Toulme (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/BUILDR-577?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13152528#comment-13152528 ] 

Antoine Toulme commented on BUILDR-577:
---------------------------------------

Also, do we have to apply both patches ? How do we go about it ?
                
> Allow remote repo to be added with http basic auth support
> ----------------------------------------------------------
>
>                 Key: BUILDR-577
>                 URL: https://issues.apache.org/jira/browse/BUILDR-577
>             Project: Buildr
>          Issue Type: Improvement
>          Components: Packaging
>            Reporter: Michael Guymon
>            Priority: Minor
>         Attachments: repo_auth.patch
>
>
> Allow for remote repositories to pass in auth information in addition to the url. The patch will allow options of passing in a String, Hash, or URI
> repositories.remote << "http://repository.jboss.org/nexus/content/groups/public-jboss"
> repositories.remote << { :url => "http://repository.jboss.org/nexus/content/groups/public-jboss", :username => 'username', :password => 'password' }
> repositories.remote << URI.parse( "uri" )
> repositories.remote is now an instance of Buildr::RepositoryArray, an extension of Array. The methods that add/change the array have been overridden to convert input into the format of {:url => URI, :username => String, :password => String}, with :username and :password being optional.
> repositories.remote now return repos in the format of an Array of {:url => URI, :username => String, :password => String}, so that is a consideration for backward compatibility. 
> Artifact#download_artifact now passes the auth information to URI.download. HTTP#read and HTTP#write_internal now check the passed in options for auth.
> SFTP is not supported by this patch. It would not be a difficult task, just have to consolidate with the existing options[:ssh_options] being passed in.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (BUILDR-577) Allow remote repo to be added with http basic auth support

Posted by "Michael Guymon (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/BUILDR-577?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Michael Guymon updated BUILDR-577:
----------------------------------

    Attachment: repo_auth.patch
    
> Allow remote repo to be added with http basic auth support
> ----------------------------------------------------------
>
>                 Key: BUILDR-577
>                 URL: https://issues.apache.org/jira/browse/BUILDR-577
>             Project: Buildr
>          Issue Type: Improvement
>          Components: Packaging
>            Reporter: Michael Guymon
>            Priority: Minor
>         Attachments: allow_auth_for_remote_repos.patch, repo_auth.patch
>
>
> Allow for remote repositories to pass in auth information in addition to the url. The patch will allow options of passing in a String, Hash, or URI
> repositories.remote << "http://repository.jboss.org/nexus/content/groups/public-jboss"
> repositories.remote << { :url => "http://repository.jboss.org/nexus/content/groups/public-jboss", :username => 'username', :password => 'password' }
> repositories.remote << URI.parse( "uri" )
> repositories.remote is now an instance of Buildr::RepositoryArray, an extension of Array. The methods that add/change the array have been overridden to convert input into the format of {:url => URI, :username => String, :password => String}, with :username and :password being optional.
> repositories.remote now return repos in the format of an Array of {:url => URI, :username => String, :password => String}, so that is a consideration for backward compatibility. 
> Artifact#download_artifact now passes the auth information to URI.download. HTTP#read and HTTP#write_internal now check the passed in options for auth.
> SFTP is not supported by this patch. It would not be a difficult task, just have to consolidate with the existing options[:ssh_options] being passed in.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (BUILDR-577) Allow remote repo to be added with http basic auth support

Posted by "Michael Guymon (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/BUILDR-577?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Michael Guymon updated BUILDR-577:
----------------------------------

    Attachment: repo_auth.patch
    
> Allow remote repo to be added with http basic auth support
> ----------------------------------------------------------
>
>                 Key: BUILDR-577
>                 URL: https://issues.apache.org/jira/browse/BUILDR-577
>             Project: Buildr
>          Issue Type: Improvement
>          Components: Packaging
>            Reporter: Michael Guymon
>            Priority: Minor
>         Attachments: repo_auth.patch
>
>
> Allow for remote repositories to pass in auth information in addition to the url. The patch will allow options of passing in a String, Hash, or URI
> repositories.remote << "http://repository.jboss.org/nexus/content/groups/public-jboss"
> repositories.remote << { :url => "http://repository.jboss.org/nexus/content/groups/public-jboss", :username => 'username', :password => 'password' }
> repositories.remote << URI.parse( "uri" )
> repositories.remote is now an instance of Buildr::RepositoryArray, an extension of Array. The methods that add/change the array have been overridden to convert input into the format of {:url => URI, :username => String, :password => String}, with :username and :password being optional.
> repositories.remote now return repos in the format of an Array of {:url => URI, :username => String, :password => String}, so that is a consideration for backward compatibility. 
> Artifact#download_artifact now passes the auth information to URI.download. HTTP#read and HTTP#write_internal now check the passed in options for auth.
> SFTP is not supported by this patch. It would not be a difficult task, just have to consolidate with the existing options[:ssh_options] being passed in.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (BUILDR-577) Allow remote repo to be added with http basic auth support

Posted by "Peter Donald (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/BUILDR-577?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Peter Donald updated BUILDR-577:
--------------------------------

    Fix Version/s: 1.5
    
> Allow remote repo to be added with http basic auth support
> ----------------------------------------------------------
>
>                 Key: BUILDR-577
>                 URL: https://issues.apache.org/jira/browse/BUILDR-577
>             Project: Buildr
>          Issue Type: Improvement
>          Components: Packaging
>            Reporter: Michael Guymon
>            Assignee: Antoine Toulme
>            Priority: Minor
>             Fix For: 1.5
>
>         Attachments: repo_auth.patch
>
>
> Allow for remote repositories to pass in auth information in addition to the url. The patch will allow options of passing in a String, Hash, or URI
> repositories.remote << "http://repository.jboss.org/nexus/content/groups/public-jboss"
> repositories.remote << { :url => "http://repository.jboss.org/nexus/content/groups/public-jboss", :username => 'username', :password => 'password' }
> repositories.remote << URI.parse( "uri" )
> repositories.remote is now an instance of Buildr::RepositoryArray, an extension of Array. The methods that add/change the array have been overridden to convert input into the format of {:url => URI, :username => String, :password => String}, with :username and :password being optional.
> repositories.remote now return repos in the format of an Array of {:url => URI, :username => String, :password => String}, so that is a consideration for backward compatibility. 
> Artifact#download_artifact now passes the auth information to URI.download. HTTP#read and HTTP#write_internal now check the passed in options for auth.
> SFTP is not supported by this patch. It would not be a difficult task, just have to consolidate with the existing options[:ssh_options] being passed in.

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

[jira] [Commented] (BUILDR-577) Allow remote repo to be added with http basic auth support

Posted by "Antoine Toulme (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/BUILDR-577?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13152539#comment-13152539 ] 

Antoine Toulme commented on BUILDR-577:
---------------------------------------

Thanks Michael. I'll try to include in 1.4.7.
                
> Allow remote repo to be added with http basic auth support
> ----------------------------------------------------------
>
>                 Key: BUILDR-577
>                 URL: https://issues.apache.org/jira/browse/BUILDR-577
>             Project: Buildr
>          Issue Type: Improvement
>          Components: Packaging
>            Reporter: Michael Guymon
>            Priority: Minor
>         Attachments: repo_auth.patch
>
>
> Allow for remote repositories to pass in auth information in addition to the url. The patch will allow options of passing in a String, Hash, or URI
> repositories.remote << "http://repository.jboss.org/nexus/content/groups/public-jboss"
> repositories.remote << { :url => "http://repository.jboss.org/nexus/content/groups/public-jboss", :username => 'username', :password => 'password' }
> repositories.remote << URI.parse( "uri" )
> repositories.remote is now an instance of Buildr::RepositoryArray, an extension of Array. The methods that add/change the array have been overridden to convert input into the format of {:url => URI, :username => String, :password => String}, with :username and :password being optional.
> repositories.remote now return repos in the format of an Array of {:url => URI, :username => String, :password => String}, so that is a consideration for backward compatibility. 
> Artifact#download_artifact now passes the auth information to URI.download. HTTP#read and HTTP#write_internal now check the passed in options for auth.
> SFTP is not supported by this patch. It would not be a difficult task, just have to consolidate with the existing options[:ssh_options] being passed in.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira