Author: jochen Date: Wed Aug 24 13:21:11 2005 New Revision: 239916 URL: http://svn.apache.org/viewcvs?rev=239916&view=rev Log: The Webserver class was not able to handle Basic authentication, because the BASE64 codec wasn't initialized.
Added: webservices/xmlrpc/trunk/changes.xml Modified: webservices/xmlrpc/trunk/src/java/org/apache/xmlrpc/WebServer.java Added: webservices/xmlrpc/trunk/changes.xml URL: http://svn.apache.org/viewcvs/webservices/xmlrpc/trunk/changes.xml?rev=239916&view=auto ============================================================================== --- webservices/xmlrpc/trunk/changes.xml (added) +++ webservices/xmlrpc/trunk/changes.xml Wed Aug 24 13:21:11 2005 @@ -0,0 +1,14 @@ +<document> + <properties> + <title>Changes in Apache XML-RPC</title> + </properties> + <body> + <release version="2.1" date="in CVS"> + <action dev="jochen" type="fix" issue="XMLRPC-68" + due-to="Johan Oskarson" due-to-email="[EMAIL PROTECTED]"> + The Webserver class was unable to handle basic authentication, + because the BASE64 codec wasn't initialized. + </action> + </release> + </body> +</document> Modified: webservices/xmlrpc/trunk/src/java/org/apache/xmlrpc/WebServer.java URL: http://svn.apache.org/viewcvs/webservices/xmlrpc/trunk/src/java/org/apache/xmlrpc/WebServer.java?rev=239916&r1=239915&r2=239916&view=diff ============================================================================== --- webservices/xmlrpc/trunk/src/java/org/apache/xmlrpc/WebServer.java (original) +++ webservices/xmlrpc/trunk/src/java/org/apache/xmlrpc/WebServer.java Wed Aug 24 13:21:11 2005 @@ -658,7 +658,6 @@ private BufferedInputStream input; private BufferedOutputStream output; private String user, password; - private Base64 base64Codec; byte[] buffer; /** @@ -823,10 +822,11 @@ * * @param line */ - private void parseAuth(String line) + private synchronized void parseAuth(String line) { try { + Base64 base64Codec = new Base64(); byte[] c = base64Codec.decode(toHTTPBytes(line.substring(21))); String str = new String(c); int col = str.indexOf(':');