You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
json-rpc completely prevents the usage of rpc. method namespace, aimed at system extensions, preventing any user or library from implementing said extensions.
"Method names that begin with the word rpc followed by a "+
"period character (U+002E or ASCII 46) are reserved for "+
"rpc-internal methods and extensions and MUST NOT be used "+
"for anything else.")
Nowhere in the JSON-RPC specification it is said that the usage of rpc. methods must be unconditionally forbidden, the restriction is reserved for system extensions, and MUST NOT be used for anything else, so its usage for system extensions is explicitly stated.
Blocking that namespace for system extensions is an explicit violation of the specification, and that fact impacts OpenRPC, which makes uses that namespace for its rpc.discover method (spec specification) (albeit OpenRPC rpc.discover being really a system extension or not is debatable, just like what a system extension itself really means).
Steps to Reproduce
Declare a rpc.discover on a test application testrpc.py (and pip install werkzeug jsonrpc).
Description
json-rpc completely prevents the usage of
rpc.
method namespace, aimed at system extensions, preventing any user or library from implementing said extensions.json-rpc/jsonrpc/jsonrpc2.py
Lines 74 to 79 in 00b24a9
Nowhere in the JSON-RPC specification it is said that the usage of
rpc.
methods must be unconditionally forbidden, the restriction is reserved for system extensions, and MUST NOT be used for anything else, so its usage for system extensions is explicitly stated.Blocking that namespace for system extensions is an explicit violation of the specification, and that fact impacts OpenRPC, which makes uses that namespace for its
rpc.discover
method (spec specification) (albeit OpenRPCrpc.discover
being really a system extension or not is debatable, just like what asystem extension
itself really means).Steps to Reproduce
rpc.discover
on a test applicationtestrpc.py
(andpip install werkzeug jsonrpc
).curl localhost:8000 -d '{"jsonrpc":"2.0","method":"rpc.discover","id":0,"params":{}}'
Expected behavior:
Actual behavior:
Reproduces how often: happens every time.
Versions
All python versions,
json-rpc-1.13.0
.The text was updated successfully, but these errors were encountered: