Needs review
Project:
JSONRPC Server
Version:
6.x-2.x-dev
Component:
Code
Priority:
Major
Category:
Feature request
Assigned:
Reporter:
Created:
3 Sep 2011 at 12:14 UTC
Updated:
27 Apr 2012 at 15:47 UTC
Attached is a complete Drupal 7 version. The module has been refactored for D7 & Services 3 APIs. Also the code has been cleaned up. The server class JsonRpcServer is clean and improved.
application/json-rpc, application/jsonrequest along with application/json. This is a JSON-RPC recommendation.JsonRpcServer::handle().NULL.Till a maintained Drupal 7 branch will be created here, use the sandbox project JSON-RPC Server for Drupal 7
There will be no backport for the new features or improvements for Drupal 6. However, anybody can create backport patches and post them back to JSONRPC Server.
| Comment | File | Size | Author |
|---|---|---|---|
| jsonrpc_server-7.x-1.x-dev.tar_.gz | 5.57 KB | claudiu.cristea |
Comments
Comment #0.0
claudiu.cristeaUpdated issue summary.
Comment #1
Daniel_KM commentedHi,
Thanks for this version!
@Hugo Wetterberg: When will the claudiu.cristea 7.x version of JSON-RPC server be merged here? It works fine. You have nothing to do: simply add him as a committer. It's important, because some companies doesn't accept modules in sandboxes and because a stable version should be marked as stable.
Thanks,
Sincerely,
Daniel Berthereau
Infodoc & Knowledge management
Comment #2
djg_tram commentedClaudiu, any progress with integrating the D7 version into this project? I already found two bugs and it would be nice to be able to send a patch. :-)
The first one is the version problem also mentioned in your sandbox project issue queue, the second one is jsonrpc_server.class.inc, line 265, function
validateParam().The firstifshould read:if (!$arg['optional'] && !isset($param)) {Using
empty()instead ofisset()causes a perfectly valid parameter with a value of zero (int or string) to be dismissed as non-existent.Comment #3
djg_tram commentedMay I also suggest shorter error messages, more in sync with the specification (also, correcting one or two grammar problems)? Like, for instance:
Also see http://www.jsonrpc.org/specification .
Comment #3.0
djg_tram commentedUpdated issue summary.