Commit Graph

7493 Commits

Author SHA1 Message Date
a0705c2940 Deleted corda-repo-layout.rst as it's outdated and pointless to have (#4768) 2019-02-17 09:48:18 +00:00
9353e4dd93 [CORDA-2561] Use the attachments classloader to deserialise contract states in migrations (#4754)
* Use the attachments classloader to deserialize contract states in migrations

* Added some comments to explain serialisation behaviour and how tests work.

* Add debug log to indicate when attachment classloading has failed.

* Use a servicesForResolution to load states for compatibility with notary changes and contract upgrades

* Add test case to cover notary change transactions

* Address review comments

* Change logging message in MigrationServicesForResolution

* Read the network-parameters file if there is nothing in the database

* Update documentation and provide a warning if there are many states.
2019-02-17 08:24:02 +00:00
e5c7355d43 CORDA-2550 use cordapp classloader for explicit upgrades (#4766)
CORDA-2550 use cordapp classloader for explicit upgrades

CORDA-2550 Fix api break

CORDA-2550 Fix api break

CORDA-2550 Fix api break

CORDA-2550 Address code review comments

CORDA-2550 Fix error

CORDA-2550 Remove redundant field.

CORDA-2550 Remove redundant field.

CORDA-2550 remove unnecessary copy method

CORDA-2550 remove unnecessary copy method
2019-02-16 17:46:23 +00:00
092d66ac45 [CORDA-2591] Prevent spurious logs in AttachmentVersionNumberMigration (#4765)
* Handle case where file containing network parameters is missing

* Improve logging if attachments are not available and the file path doesn't exist

* Get logs the right way around

* Fix build error in tests
2019-02-16 07:54:07 +00:00
d43d0c9640 Minor fix of node database doc page formatting (#4762) 2019-02-15 18:28:57 +00:00
9b2725d3aa [CORDA-2486] Improve transaction deserialisation errors and fix possible migration issue (#4761)
* Improve error when transaction deserialisation fails and move migrations for finance to contracts CorDapp

* Revert move of migrations and errors thrown from CordaRPCOps

* Ensure VaultQueryException is thrown from vault queries and remove unused import

* Improve error reporting from VaultQueryException

* Fix API break

* Fix vault query test failure due to exception change
2019-02-15 17:43:04 +00:00
3d362e066c CORDA-2595 - check that all attachments are trusted before loading (#4763)
CORDA-2595 - Fix test and api.

CORDA-2595 add test

CORDA-2595 fix tests

CORDA-2595 fix test and address code review comments

CORDA-2595 address code review comments
2019-02-15 17:33:14 +00:00
37f9eb31f7 Fixed typo in bootstrapper doc; specify text for anchor (#4764)
* Fixed typo in bootstrapper doc; specify text for anchor

* used a better name
2019-02-15 16:45:55 +00:00
a17ab0d547 Revert unnecessary refactoring. 2019-02-15 10:55:13 +01:00
758c855493 Adjust warning level. 2019-02-15 10:55:13 +01:00
6314c1757a Incorporating feedback from PR review. 2019-02-15 10:55:13 +01:00
4feac7f3f0 Shorten system property name. 2019-02-15 10:55:13 +01:00
e0c23c6996 Add docs. 2019-02-15 10:55:13 +01:00
e252401169 Disable hash constraints using system property. 2019-02-15 10:55:13 +01:00
060bbb0a9d CORDA-2563: Assign external IDs when creating new keys (#4727)
* First pass at fixing 2563.

* In memory KMS now maps keys to IDs.

* CreateDatabaseAndMockServices now creates a persistent key management service and a can take a persistent identity service, so now the external id mapping works for mock services.

* * Created a helper for mock services which allows the creation of a mock services with persistent identity management service key management service and vault.
* MockNode now uses persistent key management service - not sure why it didn't do before?

* * MockNode now uses BasicHSMKeyManagementService
* Updated api-current file

* Little fix required after rebase to master.

* Fixed broken test.

* Added informative error messages to UnsupportedOperationExceptions thrown by E2ETestKeyManagementService.

* Removed redundant private constructor for mock services from api-current.txt.

* Addressed Rick's comments.
2019-02-14 15:18:37 +00:00
aad1ae5945 [CORDA-2560] Add upgrade notes for custom configuration and improve cordapp config… (#4730)
* Add upgrade notes for custom configuration and improve cordapp configuration documentation.

* Address review comments

* Couple of minor nitpicks
2019-02-14 14:57:34 +00:00
39d3012723 CORDA-2505: bumped typesafe to a version that fixes NPE in their code in edge cases of invalid configurations (#4758) 2019-02-14 14:15:29 +00:00
0bdc8b363a CORDA-2576 Viral update propagation: select attachments from those loaded by node on startup. (#4745)
* Retrieve contract attachment(s) loaded by node.

* Remove redundant integration test case (downgrade rule checking)

* Address PR review comments.

* Revert changes to classloading dependencies hack.
2019-02-14 13:39:14 +00:00
ce8fa99e59 Update design doc to reflect new rules 2019-02-14 09:59:22 +01:00
444ebb741b Test for non-strict factory behaviour 2019-02-14 09:59:22 +01:00
fac9b5368f Prevent non-null values from being discarded 2019-02-14 09:59:22 +01:00
1c80fde518 Update index.rst
Adding a UAT page for the left-hand pane menu, under Corda Network title banner. (Content has already been created.)
2019-02-14 09:55:54 +01:00
a0fb21446e Simple change to the message returned when the requested legal identity does not exist on the Node. Previously it returned Node does not have an identity, which is slightly confusing as the Node does have a legal identity, just not the one that was requested. Changing the message text to Node does not have the requested identity of makes it clearer that the client requested an identity different to any of the ones that this Node represents.
Added an isLegalIdentity function that allows the client to check if the Node represents the requested CordaX500Name without throwing an exception if it does not.
2019-02-14 09:55:33 +01:00
34c7d3e8a7 Fix reference in "running a notary" doc 2019-02-14 09:54:40 +01:00
4ae5c1ee15 Merge pull request #4752 from corda/andrius/typo-fix-backport
DOCS - Changelog typo fix
2019-02-14 09:53:48 +01:00
6d32042e96 Merge pull request #4744 from corda/finalUpdatesToAPIStateDocs
Adding final grammatical / content changes suggested by RBG.
2019-02-14 09:53:22 +01:00
d1206b3af5 Merge pull request #4607 from corda/feature/CORDA-2465/document_whitelist_migration
CORDA-2465 Document the whitelist to signature constraint migration p…
2019-02-13 22:41:36 +01:00
0137148d18 Add a bit more detail on how to use RPC with TLS. (#4751) 2019-02-13 17:54:30 +00:00
e6c6c69266 [CORDA-2512] - Adjust uploadAttachmentWithMetadata RPC to use privileged import (#4750) 2019-02-13 15:52:08 +00:00
34184ca1ea CORDA-2465 Address code review comments. 2019-02-13 15:51:57 +00:00
b65ebdd116 Merge pull request #4747 from corda/feature/CORDA-2570/revert-to-one-attachment-per-contract
CORDA-2570 revert multiple contract attachments per transaction
2019-02-13 16:42:30 +01:00
e4ae1a2aaa CORDA-2465 Address code review comments. 2019-02-13 15:27:02 +00:00
0d1765ad0e Merge branch 'master' into feature/CORDA-2465/document_whitelist_migration
# Conflicts:
#	docs/source/api-contract-constraints.rst
2019-02-13 14:59:04 +00:00
b0eb85b4cf DOCS - Changelog typo fix (#4649) 2019-02-13 14:00:02 +00:00
3fef5d8239 CORDA-2570 Add comment for future performance optimisation. 2019-02-13 13:42:42 +00:00
fc0b1431ad CORDA-2570 fix KDoc 2019-02-13 13:30:37 +00:00
00ddb5793d Merge branch 'master' into feature/CORDA-2570/revert-to-one-attachment-per-contract
# Conflicts:
#	core/src/main/kotlin/net/corda/core/internal/TransactionVerifierServiceInternal.kt
#	core/src/test/kotlin/net/corda/core/contracts/ConstraintsPropagationTests.kt
2019-02-13 13:10:28 +00:00
764b33ded5 CORDA-2570 address code review comments 2019-02-13 12:17:48 +00:00
10e7c07c11 CORDA-2577 Disable or delete the no-downgrade rule (#4741)
With (Contract JARs) rolling upgrades the downgrade rule cannot be effectively check as the platform can't tell the difference between a transaction that's downgrading because of an attack, vs a transaction that's downgrading because Alice has upgraded but Bob hasn't yet. During a rolling upgrade we would expect state versions to fluctuate up and down as data gets read/written by a mix of nodes. With the feature as implemented Alice will upgrade and start trading with Bob. Bob will be able to read and process the states Alice sent him, but the moment he tries to consume such a state he will fail. This will result in cascading flow deaths and a hung business network the moment an upgrade starts.
2019-02-13 11:36:43 +00:00
4a4788ad41 CORDA-2570 fix test 2019-02-13 10:58:28 +00:00
873e9a5442 Updates docs to match new cordapp-example structure. (#4748) 2019-02-13 07:37:27 +00:00
9448b9bd86 CORDA-2570 revert multiple contract attachments per transaction 2019-02-12 18:49:05 +00:00
a6510ae952 CORDA-2570 revert multiple contract attachments per transaction 2019-02-12 18:41:45 +00:00
db41f660e0 Merge pull request #4737 from corda/mike-docs-4.0-tweaks
Docs: fix various issues for C4.
2019-02-12 16:47:15 +01:00
7723887d5e Adding final grammatical / content changes suggested by RBG. 2019-02-12 10:35:11 -05:00
8cec8182a4 Revert "DOCS - correct command docs for clear network map cache (#4677)" (#4732)
This reverts commit 0a50d76ab1.
2019-02-12 15:24:34 +00:00
4e2a295eb6 [CORDA-2487] Provide a migration for vault states when moving from V3 to V4.1 (#4699)
* Create a new custom migration for populating the state_party table and the relevancy_status column within the vault_states table when migrating from V3 to V4.

* Add a corresponding unit test suite.

* Small refactorings to expose data required by the migration: the isRelevant function in the NodeVaultService, and the node's legal name from the configuration.
2019-02-12 15:22:15 +00:00
a0bcfe3fd4 Docs: address review comments from Richard. 2019-02-12 15:21:44 +01:00
46188598c4 Merge pull request #4556 from corda/updatesToAPISTATESdocs
Updates to API-State docs (StatePointers)
2019-02-12 12:29:33 +01:00
2e7b2f64ff Merge pull request #4710 from corda/carolynequinn-UAT-additions
Adding new page on UAT environment
2019-02-12 12:27:27 +01:00