[State reissuance] It is impossible to re-issue encumbered states
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:
Clone the repo:
Add IssueEncumberedCandyCoupons.kt (please find attached) into reissue-sample-cordapp/workflows/src/main/kotlin/net/corda/samples/reissuance/candies/flows/ directory
Deploy and run the nodes:
Issue two encumbered candy coupons:
Obtain the coupons ids:
Create a re-issuance request:
Obtain re-issuance request id:
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)
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.