system.methodSignature should return "undef" instead of error -32601

Created on 30 August 2010, over 14 years ago
Updated 6 June 2023, almost 2 years ago

When a method is described to hook_xmlrpc without a signature (i.e. either in the simple format or in the complex format with only two parameters), if system.methodSignature is invoked on it, we return a -32601 server error, overloading the standard meaning of error -32601 ("server error. requested method not found" as per http://xmlrpc-epi.sourceforge.net/specs/rfc.fault_codes.php) with a message saying the signature was not found.

This appears to have been inspired by the behaviour of the Incution XML-RPC library, but does not match the recommended behaviour of the XML-RPC introspection spec, which says . In short, asking for the signature of a method without one should not cause an error, but return this "undef" result, or actually anything not a XML-RPC array. As per the spec again: .

πŸ› Bug report
Status

Fixed

Version

1.0

Component

Code

Created by

πŸ‡«πŸ‡·France fgm Paris, France

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024