ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 49788] New: [PATCH] set Basic Auth on HTTP condition
Date Fri, 20 Aug 2010 01:55:35 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=49788

           Summary: [PATCH] set Basic Auth on HTTP condition
           Product: Ant
           Version: nightly
          Platform: PC
        OS/Version: Mac OS X 10.5
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Core
        AssignedTo: notifications@ant.apache.org
        ReportedBy: npellow@atlassian.com


Created an attachment (id=25917)
 --> (https://issues.apache.org/bugzilla/attachment.cgi?id=25917)
patch file

Hi,

Attached is a patch for Ant that will check for any userinfo in the URL
supplied to the http condition.
If available, then this will be used as the Basic-Auth header when making the
request.
This allows http requests to be made to services that are protected by
basic-auth.
e.g. http://username:password@localhost:6060/foo/ready.json


I have tested this manually, however could not see a good reliable way to unit
test this.
If no userinfo element is suppliued in the URL, then the connection behaves the
same as before.

Cheers,
Nick

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

Mime
View raw message