[State reissuance] It is impossible to re-issue encumbered states

Description

According to the https://r3-cev.atlassian.net/browse/FEAT-455 acceptance criteria: 'Encumbrances are preserved across reissuances'. But the following exception appears when trying to re-issue encumbered states:

Steps to reproduce:

  1. Clone the repo:

  2. Add IssueEncumberedCandyCoupons.kt (please find attached) into reissue-sample-cordapp/workflows/src/main/kotlin/net/corda/samples/reissuance/candies/flows/ directory

  3. Deploy and run the nodes:

  4. Issue two encumbered candy coupons:

  5. Obtain the coupons ids:

  6. Create a re-issuance request:

  7. Obtain re-issuance request id:

  8. Accept the request:

Expected result: The request is successfully accepted, lock state is created
Actual result: Flow throws IllegalArgumentException

Please find the logs attached (see reissue-sample-cordapp-encumbered.tar.gz tarball)

Activity

Show:
Stefano Franz
November 12, 2020, 10:18 AM

This is a valid bug against the current requirements.

After speaking to - we will not be fixing this as part of 4.7 - if a customer raises an issue about this we will investigate, as the cost of supporting reissuance across encumberances is very high, and this is a very uncommon situation.

Won't Do

Assignee

Stefano Franz

Reporter

Alexey Chernikov

Labels

None

Sprint

None

Epic Link

None

Priority

Medium

Engineering Teams

None

Fix versions

None

Affects versions

Ported to...

None

Story Points / Dev Days

None

Build cut

None

Squad

None