Commit Graph

7135 Commits

Author SHA1 Message Date
josecoll
a17ab0d547 Revert unnecessary refactoring. 2019-02-15 10:55:13 +01:00
josecoll
758c855493 Adjust warning level. 2019-02-15 10:55:13 +01:00
josecoll
6314c1757a Incorporating feedback from PR review. 2019-02-15 10:55:13 +01:00
josecoll
4feac7f3f0 Shorten system property name. 2019-02-15 10:55:13 +01:00
josecoll
e0c23c6996 Add docs. 2019-02-15 10:55:13 +01:00
josecoll
e252401169 Disable hash constraints using system property. 2019-02-15 10:55:13 +01:00
Roger Willis
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
Anthony Keenan
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
bpaunescu
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
josecoll
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
Dominic Fox
ce8fa99e59 Update design doc to reflect new rules 2019-02-14 09:59:22 +01:00
Dominic Fox
444ebb741b Test for non-strict factory behaviour 2019-02-14 09:59:22 +01:00
Dominic Fox
fac9b5368f Prevent non-null values from being discarded 2019-02-14 09:59:22 +01:00
carolynequinn
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
Stephen Houston
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
Thomas Schroeter
34c7d3e8a7 Fix reference in "running a notary" doc 2019-02-14 09:54:40 +01:00
Mike Hearn
4ae5c1ee15
Merge pull request #4752 from corda/andrius/typo-fix-backport
DOCS - Changelog typo fix
2019-02-14 09:53:48 +01:00
Mike Hearn
6d32042e96
Merge pull request #4744 from corda/finalUpdatesToAPIStateDocs
Adding final grammatical / content changes suggested by RBG.
2019-02-14 09:53:22 +01:00
Mike Hearn
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
Matthew Nesbit
0137148d18 Add a bit more detail on how to use RPC with TLS. (#4751) 2019-02-13 17:54:30 +00:00
Dimos Raptis
e6c6c69266 [CORDA-2512] - Adjust uploadAttachmentWithMetadata RPC to use privileged import (#4750) 2019-02-13 15:52:08 +00:00
Tudor Malene
34184ca1ea CORDA-2465 Address code review comments. 2019-02-13 15:51:57 +00:00
Mike Hearn
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
Tudor Malene
e4ae1a2aaa CORDA-2465 Address code review comments. 2019-02-13 15:27:02 +00:00
tudor.malene@gmail.com
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
Andrius Dagys
b0eb85b4cf DOCS - Changelog typo fix (#4649) 2019-02-13 14:00:02 +00:00
Tudor Malene
3fef5d8239 CORDA-2570 Add comment for future performance optimisation. 2019-02-13 13:42:42 +00:00
Tudor Malene
fc0b1431ad CORDA-2570 fix KDoc 2019-02-13 13:30:37 +00:00
tudor.malene@gmail.com
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
Tudor Malene
764b33ded5 CORDA-2570 address code review comments 2019-02-13 12:17:48 +00:00
szymonsztuka
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
Tudor Malene
4a4788ad41 CORDA-2570 fix test 2019-02-13 10:58:28 +00:00
Joel Dudley
873e9a5442
Updates docs to match new cordapp-example structure. (#4748) 2019-02-13 07:37:27 +00:00
Tudor Malene
9448b9bd86 CORDA-2570 revert multiple contract attachments per transaction 2019-02-12 18:49:05 +00:00
Tudor Malene
a6510ae952 CORDA-2570 revert multiple contract attachments per transaction 2019-02-12 18:41:45 +00:00
Mike Hearn
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
rogersanick
7723887d5e Adding final grammatical / content changes suggested by RBG. 2019-02-12 10:35:11 -05:00
Anthony Keenan
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
JamesHR3
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
Mike Hearn
a0bcfe3fd4 Docs: address review comments from Richard. 2019-02-12 15:21:44 +01:00
Mike Hearn
46188598c4
Merge pull request #4556 from corda/updatesToAPISTATESdocs
Updates to API-State docs (StatePointers)
2019-02-12 12:29:33 +01:00
Mike Hearn
2e7b2f64ff
Merge pull request #4710 from corda/carolynequinn-UAT-additions
Adding new page on UAT environment
2019-02-12 12:27:27 +01:00
Dimos Raptis
59719a8a61
[CORDA-2420] - Make boundary of public API explicit in docs (#4735) 2019-02-12 10:04:16 +00:00
Mike Hearn
ca49c5e94d Docs: fix various issues for C4.
- Delete information about hash->signature constraint migration. That
  won't work for C4.0
- Rewrite parts of the api-contract-constraints.rst file to fix grammar
  problems and reduce the weight of the page. Some detail isn't really
  necessary at this point in the docs.
- Mention more things in the upgrade notes.
2019-02-11 20:02:06 +01:00
Mike Hearn
64cbe9f904
Merge pull request #4734 from corda/mike-simplify-migration
CORDA-2545: Merge PNO check rework to master.
2019-02-11 19:04:30 +01:00
Mike Hearn
f541843eff Temporary workaround for a bug that was exposed by a refactoring. Will follow up with a fix in another PR. 2019-02-11 17:10:50 +01:00
Mike Hearn
55f4071050 Make API checker happy 2019-02-11 17:10:50 +01:00
Mike Hearn
02645f7b9e Rework package namespace ownership check to verify every package of every class file.
Previous implementation was in LedgerTransaction and focused only on contract classes,
but every package matters.

Also fixes some exception types and does misc refactorings.
2019-02-11 17:10:50 +01:00
Chris Rankin
b9ecc5243f Tell ProGuard to remove FlowLogic and ProgressTracker classes. 2019-02-11 17:10:50 +01:00
Mike Hearn
0a9f4c68ae Minor refactorings.
Take out a useless parameter from a method that was added to the public
API, document it. Add some comments explaining more about why we are
looking up attachment versions in WireTransaction.toLedgerTransaction.
2019-02-11 17:10:50 +01:00