XMLRPC (or at least, Drupal's implementation of it) doesn't pass in named parameters, but a numeric array.
That means that because hook_services_resources()'s definition of the views.retrieve resource keys its 'args' array with strings, it is impossible to call views.retrieve from another Drupal site using XMLRPC.
This also means that the keys can't be relied on in services_views_access().
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | services_views-xmlrpc-remove-arg-keys-1998058-1.patch | 3.33 KB | megachriz |
Comments
Comment #1
megachrizThis removes the named keys from
services_views_services_resources(). In order to use named keys elsewhere a function calledservices_views_convert_numeric_args_to_named_args()is added. This function is called withinservices_views_access().Comment #2
megachrizIt's probably not critical, only a few users will be affected by this bug.
Comment #4
generalredneck