We're updating the issue view to help you get more done. 

Unable to import trusted attachment

Description

As an end-user I wish to be able to upload trusted attachments
so I can install Contract code required to validate states that are considered untrusted because their associated Contract JAR is received over the p2p network.

The current Public API does not allow uploading trusted attachments as demonstrating using the CRaSH shell rpc method:

1 2 3 4 5 6 7 8 9 10 Fri Jan 25 15:17:26 GMT 2019>>> run uploadAttachmentWithMetadata jar: /Users/josecoll/code-signing/corda-finance-contracts-4.0-RC03-V1-signed.jar, uploader: app, filename: corda-finance-contracts-4.0-RC03-V1-signed.jar [ERROR] 15:17:40+0000 [rpc-server-handler-pool-1] proxies.ExceptionSerialisingRpcOpsProxy.log - Error during RPC invocation [errorCode=186cilw, moreInformationAt=https://errors.corda.net/OS/4.0-RC03/186cilw] {actor_id=internalShell, actor_owning_identity=O=BigCorporation, L=New York, C=US, actor_store_id=NODE_CONFIG, invocation_id=0dbb27af-c807-48fc-aaa2-83632783be3b, invocation_timestamp=2019-01-25T15:17:40.849Z, origin=internalShell, session_id=eed9e717-bb3c-41e9-ada7-2406cfa94abb, session_timestamp=2019-01-25T15:08:01.034Z} RPC failed: net.corda.core.CordaRuntimeException: app is a reserved uploader token Fri Jan 25 15:17:41 GMT 2019>>> run uploadAttachmentWithMetadata jar: /Users/josecoll/code-signing/corda-finance-contracts-4.0-RC03-V1-signed.jar, uploader: rpc, filename: corda-finance-contracts-4.0-RC03-V1-signed.jar [ERROR] 15:17:58+0000 [rpc-server-handler-pool-0] proxies.ExceptionSerialisingRpcOpsProxy.log - Error during RPC invocation [errorCode=186cilw, moreInformationAt=https://errors.corda.net/OS/4.0-RC03/186cilw] {actor_id=internalShell, actor_owning_identity=O=BigCorporation, L=New York, C=US, actor_store_id=NODE_CONFIG, invocation_id=de1de2f3-1495-416c-8a7e-01507dc7cfeb, invocation_timestamp=2019-01-25T15:17:58.462Z, origin=internalShell, session_id=eed9e717-bb3c-41e9-ada7-2406cfa94abb, session_timestamp=2019-01-25T15:08:01.034Z} RPC failed: net.corda.core.CordaRuntimeException: rpc is a reserved uploader token Fri Jan 25 15:17:58 GMT 2019>>> run uploadAttachmentWithMetadata jar: /Users/josecoll/code-signing/corda-finance-contracts-4.0-RC03-V1-signed.jar, uploader: colljos, filename: corda-finance-contracts-4.0-RC03-V1-signed.jar RPC failed: net.corda.core.CordaRuntimeException: net.corda.nodeapi.exceptions.DuplicateAttachmentException: EFCD65F7FA83DB5AC99F0FE17E78F15E9C2E90B5CCD9801DE6F7F3375AA63272

In the above example, we cannot upload a trusted version of the missing Contract CorDapp.

Status

Assignee

Dimos Raptis

Reporter

Jose Coll

Priority

Medium

Labels

None

Severity

Medium

Fix versions

Ported to...

None

Feature Team

Corda Core

Affects versions

Corda 4 RC03