Uploaded image for project: 'mdsal'
  1. mdsal
  2. MDSAL-303

Do not allow null RPC input in invocation paths

    XMLWordPrintable

Details

    • Improvement
    • Status: Resolved
    • Medium
    • Resolution: Done
    • None
    • 6.0.0
    • DOM API, DOM runtime
    • None

    Description

      RFC6020 and RFC7950 make it clear the RPC input statement is always present. DOM perspective this means that RPCs always have an input NormalizedNode.

      DOMRpcService.invokeRpc() should therefore either not allow nulls in its API contract, or have @implSpec of turning nulls into an empty ContainerNode, on which presence of mandatory leaves is enforced (triggering IllegalArgumentException in such a case).

      This change is required to correctly account for RPC input such that default values can be inferred.

      Attachments

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              rovarga Robert Varga
              rovarga Robert Varga
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: