[prev in list] [next in list] [prev in thread] [next in thread] 

List:       xmlrpc-user
Subject:    Re: http auth
From:       Akihito Nakamura <nakamura-akihito () aist ! go ! jp>
Date:       2005-09-08 7:12:57
Message-ID: 20050908161257Xd2rG& () aist ! go ! jp
[Download RAW message or body]

> I'm having a problem getting http auth working. 
> 
> When I call my service without auth, it works fine. 
> 
> [msoulier@tigger xmlrpc]$ ./run
> Output from hello() : Hello, World!
> 
> But when I move it to a location on the server that requires auth, and
> provide it in the client with setBasicAuthentication(), I get this.


If you are using WebServer contained in the Apache XML-RPC 2.0,
it fails in parsing the auth information.

See the following report that I was sent in this list.

This bug has not fixed in the CVS, WebServ.java, revision 1.28.
It's easy to correct the source code and rebuild the JAR!

----
Akihito NAKAMURA
  National Institute of 
    Advanced Industrial Science and Technology (AIST)
  Information Technology Research Institute



>*Subject: [BUG REPORT] WebServer.java (basic authentication faling in 2.0)
>*From: Akihito Nakamura <nakamura-akihito@aist.go.jp>
>*Date: Fri, 08 Jul 2005 11:40:04 +0900
>
> I found a bug in WebServer.java.
> 
> A private field "base64Codec" of the nested class "Connection"
> is not initialized before used in the method "parseAuth()".
> 
> Thus, a NullPointerException is always thrown inside the "try"
> block in the above method.  But the Exception is ignored.
> At last, the arguments "user" and "password" of 
> AuthenticatedXmlRpcHandler#execute() are always null.
> 
> The correction is obvious:
> insert the following snippet befor the above try block.
> 
>     if (base64Codec == null) {
>         base64Codec = new Base64();
>     }
> 
> 
> This problem is also reported by "Terrance Davis" 
> <tdavis@hydroblaster.com>, on 3 Jun 2005.
> 
> 
> ----
> Akihito NAKAMURA
>   National Institute of 
>     Advanced Industrial Science and Technology (AIST)
>   Information Technology Research Institute
> 
> 


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic