[Freeipa-devel] [PATCH] 0119 Switch client to JSON-RPC

Petr Viktorin pviktori at redhat.com
Tue Jan 15 11:36:11 UTC 2013


I meant to hold this patch a while longer to let it mature, but from 
what Brian Smith asked on the user list it seems it could help him.

Design: http://freeipa.org/page/V3/JSON-RPC
Ticket: https://fedorahosted.org/freeipa/ticket/3299

See the design page for what the patch does.


As much as I've tried to avoid them, the code includes some workarounds:
It extends xmlrpclib to also support JSON. This is rather intrusive, but 
to not do that I'd need to write a parallel stack for JSON, without the 
help of a standard library.
The registration of either jsonclient or xmlclient as "rpcclient" in the 
API also needs a bit of magic, since the framework requires the class 
name to match the attribute.


To prevent backwards compatibility problems, we need to ensure that all 
official JSON clients send the API version, so this patch should be 
applied after my patches 0104-0106.

-- 
Petr³
-------------- next part --------------
A non-text attachment was scrubbed...
Name: freeipa-pviktori-0119-Switch-client-to-JSON-RPC.patch
Type: text/x-patch
Size: 33918 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/freeipa-devel/attachments/20130115/687336c0/attachment.bin>


More information about the Freeipa-devel mailing list