A failure response from Doorman during initial registration causes a class cast exception

Description

When registering a node with the Doorman, if we get a failure response (for example if the Doorman is unreachable) then we receive a failure and log an error. We then attempt to cast this response to success which causes a further class cast exception.

Offending line:
https://github.com/corda/corda/blob/master/node/src/main/kotlin/net/corda/node/internal/subcommands/InitialRegistrationCli.kt#L87

Assignee

Ekaterina Volobueva

Reporter

Oliver Knowles

Sprint

None

Epic Link

None

Priority

Low

Engineering Teams

Notaries

Fix versions

Affects versions

Ported to...

Corda 4.4
Corda Enterprise 4.4

Story Points / Dev Days

None

Build cut

None

Feature Team

Notaries
Configure