DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=9546>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=9546

BasicAuthentication bug in XmlRpcClientLite

           Summary: BasicAuthentication bug in XmlRpcClientLite
           Product: XML-RPC
           Version: unspecified
          Platform: PC
        OS/Version: Windows NT/2K
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Source
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


Setting the setBasicAuthentication(String, String) while using an instance of 
XmlRpcClientLite does not set the (lite) local static String auth. Thus when it 
doing the sendRequest() in the XmlRpcClientLite, the check for auth always 
returns null, and it skips sending the authentication.
I believe this is becuase the setBasicAuthentication method sets the super's 
private String auth variable. 
I have corrected this problem by removing the local (XmlRpcClientLite) auth 
variable, and providing an accessor method in the super (XmlRpcClient) to 
access it's private auth setting. Using this method for the auth check in the 
lite client then results in the correct functionality.

Reply via email to