You are viewing a plain text version of this content. The canonical link for it is here.
Posted to rpc-dev@xml.apache.org by bu...@apache.org on 2002/05/31 18:53:13 UTC

DO NOT REPLY [Bug 9546] New: - BasicAuthentication bug in XmlRpcClientLite

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: rpc-dev@xml.apache.org
        ReportedBy: rpurdy@ucalgary.ca


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.