Allow transition of the contract uploader token from 'rpc' to 'app'

Description

Allow transition of the contract uploader token from 'rpc' to 'app' by changing function NodeAttachmentService.verifyVersionUniquenessForSignedAttachments so that a jar is no longer considered a duplicate of itself
to support this upgrade scenario:

A: new cordapp contract version is distributed via flow --> uploader token = 'p2p'
B: node admin makes it trusted by uploading it to the vault as described in [1] --> uploader token = 'rpc'
C: node admin decides to start it from the cordapps folder --> uploader token = 'app'

currently C fails with DuplicateContractClassException because the contract attachment is considered a duplicate of the attachment loaded in B - but it's not a duplicate, it is the SAME thing.

[1] https://docs.corda.net/cordapp-build-systems.html#cordapp-contract-attachments

https://github.com/tjaes/corda/commit/56a1535297c89c557c4770727417880f13d1dafb#diff-f5e1065d3890092b983045fba991a2c3

Status

Assignee

Tudor Malene

Reporter

Neal Shah

Labels

Priority

Highest

Fix versions

Ported to...

Corda 4.3
Corda Enterprise 4.0 Patch
Corda Enterprise 4.1 Patch
Corda Enterprise 4.2 patch

Feature Team

Corda Core

CVSS Vector

None

Affects versions

Configure