Can't retrieve Corda account from another node via it's PublicKey

Description

I'm trying to retrieve a corda account (i.e., the AccountInfo) of node A from inside the checkTransaction of node B via the signers PublicKey.
I tried all the share methods I could find shareAccountInfoWithParty, shareStateAndSyncAccounts, SyncKeyMappingInitiator, but nothing worked.
I do manage to retrieve the AccountInfo by its name in the same place, but not by the PublicKey in signers.

Here is the minimum code I could think of to reproduce the issue: https://github.com/ruizbbchain/test-cordapp
The single test in workflows should pass, but it doesn't.
I am running the latest version of everything (I just cloned the project from https://github.com/corda/cordapp-template-kotlin).
So Corda 4.6 with Accounts SDK 1.0.2.

Created by github action.

Activity

Show:
Ivan Schasny
November 19, 2020, 2:01 PM

Hi . Accounts sit with AFAIK unless something has changed.

Sachin Gokhale
November 19, 2020, 1:34 PM

Hi - Can you please review the bug raised by Open Source community and confirm if this is a bug, or expected behaviour.

Assignee

Sachin Gokhale

Reporter

Former user

Labels

Sprint

None

Epic Link

None

Priority

Medium

Engineering Teams

None

Fix versions

None

Affects versions

None

Ported to...

None

Story Points / Dev Days

None

Build cut

None

Squad

None