Uploaded image for project: 'jsonrpc'
  1. jsonrpc
  2. JSONRPC-8

Null message string in errored reply causes NPE

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Medium Medium
    • None
    • None
    • General
    • None

      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.

            ssaxena Shaleen Saxena
            ssaxena Shaleen Saxena
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: