[JSONRPC-8] Null message string in errored reply causes NPE Created: 08/Nov/17  Updated: 10/Nov/17

Status: Verified
Project: jsonrpc
Component/s: General
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Medium
Reporter: Shaleen Saxena Assignee: Shaleen Saxena
Resolution: Unresolved Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

There are two parts to this issue:
1. When a responder session throws an exception with no message string, the resulting error reply also does not have any error message string. This seems to be a violation of the json-rpc spec, section 5.2. (Only data may be omitted.)
2. When a requester session receives an error reply with no message string, it throws an NPE while parsing the message string.

Need to fix both sides.

  • Make responder always add some error message string.
  • Make requester resilient to receiving null message strings.

Generated at Wed Feb 07 20:05:17 UTC 2024 using Jira 8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d.