Closed (fixed)
Project:
JSONRPC Server
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
10 Mar 2010 at 18:16 UTC
Updated:
25 Mar 2010 at 20:20 UTC
Currently JSON RPC Server passes parameters to the method in the order they were passed to the server. As the JSON-RPC protocol doesn't require correct param order when using non-numeric keys in the parameter struct the order of the arguments will not necessary match the method callback's signature. This patch introduces a simple solution by ordering the method callback arguments by key first. A better solution would be to introduce a #default key in the method parameter definition returned by hook_service and using it to pad optional arguments when method callback. For a full discussion, please see: http://drupal.org/node/715044
| Comment | File | Size | Author |
|---|---|---|---|
| jsonrpc_server-param-order.patch | 1.02 KB | solipsist |
Comments
Comment #1
Hugo Wetterberg commentedCommitted to the dev repo and will be rolled into the next release