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

Do not allow null RPC input in invocation paths

XMLWordPrintable

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

      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.

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

              Created:
              Updated:
              Resolved: