[ http://issues.apache.org/jira/browse/XMLRPC-32?page=all ]
     
Jochen Wiedmann closed XMLRPC-32:
---------------------------------

    Resolution: Fixed
     Assign To:     (was: rpc-dev mailing list)

I agree with Andrew, that such customization can (and should) be done by 
subclassing.


> Not finding registered handlers
> -------------------------------
>
>          Key: XMLRPC-32
>          URL: http://issues.apache.org/jira/browse/XMLRPC-32
>      Project: XML-RPC
>         Type: Bug

>   Components: Source
>     Versions: 1.2
>  Environment: Operating System: All
> Platform: All
>     Reporter: Ron Cemer

>
> Version 1.2-b1 of xml-rpc, DefaultHandlerMapping.java, getHandler() method, 
> has
> a problem.
> Existing code:
>         if (dot > -1)
>         {
>             // The last portion of the XML-RPC method name is the Java
>             // method name.
>             handlerName = methodName.substring(0, dot);
>             handler = handlers.get(handlerName);
>         }
> Should read:
>         if (dot > -1)
>         {
>             // The last portion of the XML-RPC method name is the Java
>             // method name.
>             handlerName = methodName.substring(0, dot);
>         }
>       else
>       {
>             handlerName = methodName;
>       }
>         handler = handlers.get(handlerName);
> Because of this bug, it's not finding properly registered handlers unless you
> pass in a name containing at least one dot.
> Please contact me via email when you've applied this patch and put up a new
> download on the site.
> Thanks!
> Ron

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira

Reply via email to