Blob inspector unable to view notary node-info file from UAT

Description

The attached node-info file has highlighted two issues with the blob inspector:

  1. When run with the --full-parties flag it doesn't print out the entire file, but stops halfway

  2. The actual reason why the entire file isn't printed is due to an exception that's swallowed by the inspector. Running with the --verbose flag doesn't print the stack trace, which it should.

The exception is due to an incorrect assumption that extendedKeyUsage in https://github.com/corda/corda/blob/0c880fb7a754408ff3d08412f15417efa8d44922/client/jackson/src/main/kotlin/net/corda/client/jackson/JacksonSupport.kt#L255 is non-null.

The blob insector should be printing the error message if there's an exception and with the full stacktrace if --verbose is specified. The reason it's not doing this is due to https://github.com/corda/corda/blob/b020e602ba5b032d2a22d90e155b88b863ee5fe1/tools/blobinspector/src/main/kotlin/net/corda/blobinspector/BlobInspector.kt#L81 swallowing the exception.

Assignee

Ivan Schasny

Reporter

Shams Asari

Labels

None

Sprint

None

Epic Link

None

Priority

High

Engineering Teams

External Tooling

Fix versions

Affects versions

Ported to...

None

Story Points / Dev Days

None

Build cut

None

Feature Team

External Tooling
Configure