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().

Comments

megachriz’s picture

Issue summary: View changes
Status: Active » Needs review
StatusFileSize
new3.33 KB

This removes the named keys from services_views_services_resources(). In order to use named keys elsewhere a function called services_views_convert_numeric_args_to_named_args() is added. This function is called within services_views_access().

megachriz’s picture

Priority: Critical » Normal

It's probably not critical, only a few users will be affected by this bug.

generalredneck’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.