Flow failing due to "Flow sessions were not provided" for its own identity

Description

This test uses the Daywatch network map - in order to connect to daywatch you will need a machine with a public IP address (i.e. not one within the office obscured by NAT)

This happens with:
Corda 4, with the corda-finance-workflows and corda-finance-contracts from v4.

I also tested it (but the issue doesn't occur with)
Corda Ent 4.0-RC04, with the corda-finance-workflows ENT 4.0-RC04 and corda-finance-contracts OS-4.0

Unzip the attached lost-identity-repro.zip
Edit the node.conf in PartyA to give it a unique name (PartyA-xxxxxxxx) and change the P2P address to your public IP address
Edit the node.conf in PartyB to give it a unique name (PartyB-xxxxxxxx) and change the P2P address to your public IP address

Copy corda.jar to the directory and the relevant versions of corda-finance-contracts.jar corda-finance-workflows.jar to the cordapps dir for both PartyA and PartyB.

Navigate to the PartyA directory and run
java -jar corda.jar initial-registration --network-root-truststore=..\daywatch-network-root-truststore.jks --network-root-truststore-password=password --log-to-console

Navigate to the PartyB directory and run
java -jar corda.jar initial-registration --network-root-truststore=..\daywatch-network-root-truststore.jks --network-root-truststore-password=password --log-to-console

Navigate to PartyA and run
java -jar corda.jar

Navigate to PartyB and run
java -jar corda.jar

On PartyA run
flow start CashIssueFlow amount: "100 GBP", issuerBankPartyRef: "1234" , notary: "CN=Notary - East US, O=R3 HoldCo LLC, L=New York, C=US"
flow start CashPaymentFlow amount: "10 GBP", recipient: "C=GB,L=London,O=PartyB-xxxxxx", anonymous: true, notary: "CN=Notary - East US, O=R3 HoldCo LLC, L=New York, C=US"

On PartyB run:
flow start CashPaymentFlow amount: "5 GBP", recipient: "C=GB,L=London,O=PartyA-xxxxxx", anonymous: true, notary: "CN=Notary - East US, O=R3 HoldCo LLC, L=New York, C=US"

PartyB should fail to transfer the cash with the error:

Status

Assignee

Dimos Raptis

Reporter

Anthony Keenan

Labels

None

Priority

Medium

Fix versions

Ported to...

None

Feature Team

Corda Core

CVSS Vector

None

Severity

Medium

Affects versions

Configure