No warning is raised in case when cordapp folder contains contracts jars with the same version but different names.

Description

We have tried to reproduce ENT-3924: looks like it partially works incorrectly by the following steps:

1. Download corda-finance-contracts.*.jar;
2. Put in a cordapp folder and rename (e.g. corda-finance-contracts.*V1.jar );
3. Copy and paste this contract to the same folder;
4. Rename on (e.g. corda-finance-contracts.*V2.jar);
5. Try to register node.

Expected result:
Based on the described in ENT-3924: we should get the following warning.
"ATTENTION: More than one CorDapp installed on the node for contract net.corda.finance.contracts.asset.Cash. Please remove the previous version when upgrading to a new version."

Actual result:
We are not receiving any warnings.

Notes:
If we put in a cordapp folder different versions of contracts we get the following warning:
"ATTENTION: More than one CorDapp installed on the node for contract net.corda.finance.contracts.asset.Cash. Please remove the previous version when upgrading to a new version."

Please take a look at the attached logs.

Assignee

Roman Vasiliev

Reporter

Maxim Zame

Epic Link

None

Priority

High

Engineering Teams

None

Fix versions

Affects versions

Ported to...

Corda 4.3

Sprint

None

Labels

Story Points / Dev Days

None

Feature Team

Corda Core

Severity

Medium
Configure