Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add IPC transport for JSON-RPC APIs #3695

Merged
merged 8 commits into from
Apr 27, 2022
Merged

Commits on Apr 26, 2022

  1. Fix json-rpc HTTP tests [hyperledger#535]

    The `o.h.b.e.a.j.JsonRpcHttpServiceTest#exceptionallyHandleJsonSingleRequest` and `o.h.b.e.a.j.JsonRpcHttpServiceTest#exceptionallyHandleJsonBatchRequest` tests were throwing ClassCastException in `o.h.b.e.a.j.JsonRpcHttpService#validateMethodAvailability` which wasn't ever catched, returning status 500 by default, but that wasn't the use case aimed to test. Another test running an exceptional method is `o.h.b.t.a.p.EnclaveErrorAcceptanceTest#whenEnclaveIsDisconnectedGetReceiptReturnsInternalError` which validates an "Internal Error" proper json-rpc response. I changed the first two tests to be consistent with the later one.
    
    Signed-off-by: Diego López León <[email protected]>
    Signed-off-by: Diego López León <[email protected]>
    diega committed Apr 26, 2022
    Configuration menu
    Copy the full SHA
    8fc185e View commit details
    Browse the repository at this point in the history
  2. Extract json-rpc HTTP authentication to a handler [hyperledger#535]

    Signed-off-by: Diego López León <[email protected]>
    Signed-off-by: Diego López León <[email protected]>
    diega committed Apr 26, 2022
    Configuration menu
    Copy the full SHA
    236abe4 View commit details
    Browse the repository at this point in the history
  3. Move authentication json-rpc HTTP handler first in the execution pipe…

    …line [hyperledger#535]
    
    Signed-off-by: Diego López León <[email protected]>
    Signed-off-by: Diego López León <[email protected]>
    diega committed Apr 26, 2022
    Configuration menu
    Copy the full SHA
    9038a64 View commit details
    Browse the repository at this point in the history
  4. Replace TimeoutHandler in GraphQLHttpService with Vert.x's impl [hype…

    …rledger#535]
    
    Signed-off-by: Diego López León <[email protected]>
    Signed-off-by: Diego López León <[email protected]>
    diega committed Apr 26, 2022
    Configuration menu
    Copy the full SHA
    933963f View commit details
    Browse the repository at this point in the history
  5. Extract json-rpc HTTP parser to a handler [hyperledger#535]

    Signed-off-by: Diego López León <[email protected]>
    Signed-off-by: Diego López León <[email protected]>
    diega committed Apr 26, 2022
    Configuration menu
    Copy the full SHA
    a34f2ff View commit details
    Browse the repository at this point in the history
  6. Refactor json-rpc HTTP handler [hyperledger#535]

    Signed-off-by: Diego López León <[email protected]>
    Signed-off-by: Diego López León <[email protected]>
    diega committed Apr 26, 2022
    Configuration menu
    Copy the full SHA
    7fe18c4 View commit details
    Browse the repository at this point in the history
  7. Refactor json-rpc WS handler [hyperledger#535]

    Signed-off-by: Diego López León <[email protected]>
    Signed-off-by: Diego López León <[email protected]>
    diega committed Apr 26, 2022
    Configuration menu
    Copy the full SHA
    e2645ba View commit details
    Browse the repository at this point in the history
  8. Add json-rpc IPC support [hyperledger#535]

    Signed-off-by: Diego López León <[email protected]>
    Signed-off-by: Diego López León <[email protected]>
    diega committed Apr 26, 2022
    Configuration menu
    Copy the full SHA
    70a0196 View commit details
    Browse the repository at this point in the history