Whole file

pavlov99/ajsonrpc

The author described this change as FIX: request validation. It counts as a record because the check below fails on the code as it stood at e7f774d81 and passes on cf2b9e8f2, with nothing else changed between the two runs.

Fix saved2021-01-31
Sharing licenceMIT · LICENSE.txt
Change size+1 1

What the code was meant to do, written into the code itself as a save note

FIX: request validation

The change

135135 if value.get("jsonrpc") != "2.0":
136136 raise ValueError("value of key 'jsonrpc' has to be '2.0'")
137137
138- self.validate_method(value["method"])
138+ self.validate_method(value.get("method"))
139139 if "params" in value:
140140 self.validate_params(value["params"])
141141

The check that tells the two apart

failpass·ajsonrpc/tests/test_manager.py::TestAsyncJSONRPCResponseManager::test_get_response_for_payload_batch

Check file ajsonrpc/tests/test_manager.py, taken without changes from the fix and copied onto the older code, so the exact same check runs against both versions.

Origin and history

The code before ite7f774d81fe56f188b47279e852649818cb94949
Broken version dated2021-01-31
Moduleajsonrpc.core
Units changedJSONRPC20Request
Fingerprintcccc5f81580edfd2
Checked2026-08-18 by goldset/0.1

Every field above is generated by our program. None of it is written by hand.

Other bugs found in pavlov99/ajsonrpc