szymonsztuka
44dfa23ad5
Merge remote-tracking branch 'remotes/open/master' into merges/os-merge-to-ecbf23a
2018-11-07 18:17:29 +00:00
Dominic Fox
f3b372d31d
CORDA-2099 make serializer factory interface ( #4137 )
...
* Separate SerializerFactory construction from concrete implementation
* Fewer build methods
* Method naming that doesn't fatally confuse determinisation
* Extract SerializerFactory interface
* Reset to master's version of compiler.xml
* Un-ignore flickering test
* Remove unnecessary build method
* Whitespace
* Unused import
* Change build method
* Formatting fixes
* Fix test
2018-11-07 13:48:45 +00:00
szymonsztuka
19510315b4
Merge remote-tracking branch 'remotes/open/master' into merges/os-merge-to-6f00560
...
# Conflicts:
# core/src/test/kotlin/net/corda/core/crypto/CryptoUtilsTest.kt
# node/src/main/kotlin/net/corda/node/internal/AbstractNode.kt
# node/src/main/kotlin/net/corda/node/services/config/NodeConfiguration.kt
# testing/node-driver/src/main/kotlin/net/corda/testing/node/internal/InternalMockNetwork.kt
2018-11-07 09:49:23 +00:00
Konstantinos Chalkias
da8dec0d63
[CORDA-2192] Corda specific OID for AliasPrivateKey ( #4175 )
2018-11-07 09:48:13 +00:00
Michal Kit
6f005605aa
CORDA-2187 & CORDA-2038: reverting maxTransactionSize <= maxMessageSize ( #4166 )
...
* CORDA-2187 reverting maxTransactionSize <= maxMessageSize
* Addressing review comments
* Increasing the maxTransactionSize for the Bootstrapper
* Updating the testNetworkParameters
2018-11-07 09:28:27 +00:00
josecoll
356941a733
Merge commit '015a36dad67998236eda7e45309e66e5d58b6374'
2018-11-06 16:29:24 +00:00
szymonsztuka
9efb4121d5
Don't check signers of META-INF/LIST.INDEX file (workaround for CORDA-2116) ( #4148 )
...
Temporally treating META-INF/INDEX.LIST as unsignable entry because java.util.jar.JarVerifier doesn't load its signers. https://r3-cev.atlassian.net/browse/CORDA-2177 for further investigation.
2018-11-06 14:34:03 +00:00
Konstantinos Chalkias
106eb9df4a
[CORDA-2011] [CORDA-2057] CryptoService interface and BC HSM simulation ( #4099 )
2018-11-06 12:57:13 +00:00
Rick Parker
59504b4439
ENT-2691 Soft locking got regressed in Enterprise ( #1539 )
...
* Fix soft locking regression
* Fix caffeine version in core
* Fix default cache bound
2018-11-06 11:40:28 +00:00
josecoll
015a36dad6
CORDA 2131 - Extend Network Bootstrapper to enable registration of Java Package Namespaces. ( #4116 )
...
* Package Ownership Network Parameters: add register / unregister CLI options to network bootstrapper.
* Fix 2 failing unit tests.
* Fix failing unit tests.
* Added changelog, documentation and cosmetic changes.
* Fixed exception message.
* Address PR review feedback.
* Fix typo.
* Resolve conflicts.
* Rebase, resolve conflicts and remove PackageOwner class.
* Address latest PR review feedback.
* Fix incorrect imports.
* Fix broken JUnit
* Add support for key store passwords including delimiter characters.
* Updated and improved documentation.
* Minor doc update.
* Documentation changes following PR review feedback
* Replace Bank Of Corda with Example CorDapp.
Remove references to locally built network bootstrapper.
2018-11-06 09:28:55 +00:00
Roger Willis
80591bc6fd
StatePointer ( #4074 )
...
* Introducing linear pointer.
* Added design document.
Added StatePointer interface.
Updated design document.
Updated StatePointer implementation.
Added doc section for state pointer.
* Updated design document.
Added API for StatePointer.
* Update core/src/main/kotlin/net/corda/core/contracts/Structures.kt
Co-Authored-By: roger3cev <roger.willis@r3cev.com>
* Update core/src/main/kotlin/net/corda/core/contracts/Structures.kt
Co-Authored-By: roger3cev <roger.willis@r3cev.com>
* Update core/src/main/kotlin/net/corda/core/contracts/Structures.kt
Co-Authored-By: roger3cev <roger.willis@r3cev.com>
* Update docs/source/design/linear-pointer/design.md
Co-Authored-By: roger3cev <roger.willis@r3cev.com>
* Update docs/source/design/linear-pointer/design.md
Co-Authored-By: roger3cev <roger.willis@r3cev.com>
* Resolve pointers
Added test to check pointers are resolved.
Updated docs and kdocs.
Reverted changes to api-current.txt
Revert "Reverted changes to api-current.txt"
This reverts commit dc1cece91a595a4e772f63917b830c7e1fd0586d.
Fix CI bug.
Made StatePointers type safe.
Resolving StatePointers is now optionally recursive
Addressed review comments.
Fixed compile error.
Addressed review comments.
Fixed bug in state pointer search.
Improved efficiency of state pointer search.
Removed whitespace.
TxBuilder logs warning when no service hub is supplied for resolving pointers as opposed to throwing an exception.
* Addressed review comments.
2018-11-05 10:33:26 +00:00
Michele Sollecito
6fb2996fd6
[ENT-2678]: PluginRegistrationTest.test plugin registration is failing (fix) ( #1535 )
2018-11-02 14:01:14 +00:00
Andrius Dagys
b9ff958011
ENT-1858: All non-bft notary services are now async
2018-11-02 11:12:46 +00:00
Andrius Dagys
539fac0d57
Merge remote-tracking branch 'open/master' into andrius/merge-11-02
2018-11-02 09:08:03 +00:00
Andrius Dagys
66116e8d20
ENT-1858: Notary cleanup ( #4134 )
...
* Migrated all non-BFT notary implementations to use async commits.
* Mock network: await for async operation completion. When calling runNetwork()
it keeps "pumping" messages between participants until no more messages are generated.
The problem comes in when a flow suspends on an async operation: the mock network
thinks the flow finished the work for the current step, and since no more messages
are generated, completes the runNetwork() function. The message that the flow
generates once it resumes after async operation completion never gets processed.
This change makes runNetwork() wait until all flow async operations finish,
and only then check whether no more messages can be transferred.
2018-11-01 19:03:43 +00:00
Tudor Malene
56158caa8b
Fix merge
2018-11-01 17:59:39 +00:00
Tudor Malene
6c58a28038
Fix merge
2018-11-01 17:04:52 +00:00
tudor.malene@gmail.com
d97d64d954
Merge remote-tracking branch 'open/master' into tudor-os-merge-1-11
...
# Conflicts:
# core/src/main/kotlin/net/corda/core/utilities/KotlinUtils.kt
# core/src/test/kotlin/net/corda/core/internal/JarSignatureCollectorTest.kt
# docs/source/index.rst
# node/src/integration-test/kotlin/net/corda/node/flows/FlowOverrideTests.kt
# node/src/main/kotlin/net/corda/node/serialization/kryo/Kryo.kt
2018-11-01 16:58:28 +00:00
Tudor Malene
4e0a956e20
CORDA-2083 Deserialize component groups lazily ( #4122 )
...
CORDA-2083 Deserialize component groups lazily
2018-11-01 16:54:31 +00:00
szymonsztuka
eaea6546fe
Merge pull request #1524 from corda/merges/os-mere-2018-10-31
...
OS -> ENT merge, resolved conflicts: README.md, docs/source/api-persistence.rst, docs/source/node-database.rst.
2018-11-01 10:31:59 +00:00
szymonsztuka
777026eb79
Undo test deletion which got lost in commit 391c6bf66fc31f2609f787298ef1ce77ffe7fb73. ( #4145 )
2018-11-01 10:29:59 +00:00
Florian Friemel
449463241b
Disable PluginRegistrationTest until we fix it.
2018-11-01 09:52:03 +00:00
szymonsztuka
353c96375d
Merge remote-tracking branch 'remotes/open/master' into merges/os-mere-2018-10-31
...
# Conflicts:
# README.md
# docs/source/api-persistence.rst
# docs/source/node-database.rst
2018-10-31 18:08:59 +00:00
Anthony Keenan
8ddd8d383d
Remove unused test class ( #4139 )
2018-10-31 12:58:57 +00:00
Anthony Keenan
a74da313b6
Compilation error
2018-10-25 12:14:27 +01:00
Anthony Keenan
08f32a9329
Merge remote-tracking branch 'open/master' into anthony-os-merge-2018-10-24
...
# Conflicts:
# build.gradle
# core/src/main/kotlin/net/corda/core/internal/JarSignatureCollector.kt
# core/src/main/kotlin/net/corda/core/transactions/TransactionBuilder.kt
# docs/source/cli-ux-guidelines.rst
# docs/source/testnet-explorer-corda.rst
# finance/src/integration-test/kotlin/net/corda/finance/flows/test/CashConfigDataFlowTest.kt
# finance/src/main/kotlin/net/corda/finance/flows/CashConfigDataFlow.kt
# node/src/integration-test/kotlin/net/corda/node/services/statemachine/FlowVersioningTest.kt
# node/src/main/kotlin/net/corda/node/Corda.kt
# node/src/main/kotlin/net/corda/node/internal/Node.kt
# node/src/main/kotlin/net/corda/node/internal/NodeStartup.kt
# node/src/main/kotlin/net/corda/node/services/config/NodeConfiguration.kt
# node/src/test/kotlin/net/corda/node/internal/NodeTest.kt
# testing/node-driver/src/main/kotlin/net/corda/testing/node/internal/DriverDSLImpl.kt
# testing/node-driver/src/main/kotlin/net/corda/testing/node/internal/NodeBasedTest.kt
# tools/explorer/src/main/kotlin/net/corda/explorer/ExplorerSimulation.kt
2018-10-25 11:30:52 +01:00
Tudor Malene
8dc394b117
Merge fixes
...
Fix bug
Fix bug
Fix tests
Fix tests
2018-10-24 13:37:37 +01:00
szymonsztuka
7e3aa7f30c
CORDA-1915 node rejects CorDapps signed by our dev keys in prod mode ( #4041 )
...
Related to CORDA-1915 Signing CorDapp JARs - Corda node rejects CorDapps signed by our development keys when running in production mode. This prevents Cordapps signed by our dev key (by default) running in production (node devMode=false).
2018-10-24 10:53:39 +01:00
Stefano Franz
0919b01271
ENT-2509 - Make @InitiatedBy flows overridable via node config ( #3960 )
...
* first attempt at a flowManager
fix test breakages
add testing around registering subclasses
make flowManager a param of MockNode
extract interface
rename methods
more work around overriding flows
more test fixes
add sample project showing how to use flowOverrides
rebase
* make smallest possible changes to AttachmentSerializationTest and ReceiveAllFlowTests
* add some comments about how flow manager weights flows
* address review comments
add documentation
* address more review comments
2018-10-23 16:45:07 +01:00
tudor.malene@gmail.com
3233d1d91f
Merge branch 'master_partial' into tudor_os_merge_23_10
...
# Conflicts:
# core/src/main/kotlin/net/corda/core/internal/JarSignatureCollector.kt
# core/src/main/kotlin/net/corda/core/transactions/LedgerTransaction.kt
# core/src/main/kotlin/net/corda/core/transactions/TransactionBuilder.kt
# core/src/test/kotlin/net/corda/core/contracts/PackageOwnershipVerificationTests.kt
# core/src/test/kotlin/net/corda/core/internal/JarSignatureCollectorTest.kt
# node/src/main/kotlin/net/corda/node/internal/AbstractNode.kt
# node/src/test/kotlin/net/corda/node/services/persistence/NodeAttachmentServiceTest.kt
# testing/test-utils/src/main/kotlin/net/corda/testing/dsl/TestDSL.kt
# testing/test-utils/src/main/kotlin/net/corda/testing/dsl/TransactionDSLInterpreter.kt
2018-10-23 10:36:06 +01:00
tudor.malene@gmail.com
7b86c2c3a3
Merge remote-tracking branch 'private/master' into tudor_os_merge_23_10
...
# Conflicts:
# core/src/main/kotlin/net/corda/core/contracts/BelongsToContract.kt
# core/src/main/kotlin/net/corda/core/contracts/TransactionState.kt
# core/src/main/kotlin/net/corda/core/transactions/LedgerTransaction.kt
# core/src/main/kotlin/net/corda/core/transactions/TransactionBuilder.kt
# core/src/main/kotlin/net/corda/core/utilities/KotlinUtils.kt
# core/src/test/kotlin/net/corda/core/internal/JarSignatureCollectorTest.kt
# node/src/main/kotlin/net/corda/node/internal/AbstractNode.kt
# node/src/main/kotlin/net/corda/node/internal/cordapp/JarScanningCordappLoader.kt
# node/src/test/kotlin/net/corda/node/services/persistence/NodeAttachmentServiceTest.kt
# testing/test-utils/src/main/kotlin/net/corda/testing/dsl/TransactionDSLInterpreter.kt
2018-10-23 10:29:43 +01:00
Tudor Malene
391c6bf66f
Feature/corda 1947/add package ownership ( #4097 )
...
* Upgrade hibernate and fix tests
CORDA-1947 Address code review changes
CORDA-1947 Address code review changes
(cherry picked from commit ab98c03d1ab15479c106b89f8b85bec185a7f9fa)
* ENT-2506 Changes signers field type
ENT-2506 Clean up some docs
ENT-2506 Fix tests and api
ENT-2506 Fix compilation error
ENT-2506 Fix compilation error
(cherry picked from commit 32f279a24372e31b07cfddac53edf805175fc971)
* CORDA-1947 added packageOwnership parameter
CORDA-1947 add signers field to DbAttachment. Add check when importing attachments
CORDA-1947 add signers field to DbAttachment. Add check when importing attachments
CORDA-1947 add tests
CORDA-1947 fix comment
CORDA-1947 Fix test
CORDA-1947 fix serialiser
CORDA-1947 fix tests
CORDA-1947 fix tests
CORDA-1947 fix serialiser
CORDA-1947 Address code review changes
CORDA-1947 Address code review changes
CORDA-1947 Revert test fixes
CORDA-1947 address code review comments
CORDA-1947 move verification logic to LedgerTransaction.verify
CORDA-1947 fix test
CORDA-1947 fix tests
CORDA-1947 fix tests
CORDA-1947 address code review comments
CORDA-1947 address code review comments
(cherry picked from commit 86bc0d9606922d48a30d395af2a21d6ce7dfc03b)
CORDA-1947 fix merge
2018-10-22 15:00:08 +01:00
Viktor Kolomeyko
b05a985d99
OS->Ent merge
2018-10-22 12:57:37 +01:00
Viktor Kolomeyko
88f368134f
ENT-2610: Separate passwords for store and for private keys in Corda OS. ( #4090 )
...
* ENT-2610: Separate passwords for store and for private keys in Corda OS.
When it comes to KeyStores there are *2* passwords: 1 for the keyStore as a whole and separately there is one private keys within this keyStore.
Unfortunately, those 2 passwords have to be the same due to Artemis limitation, for more details please see:
`org.apache.activemq.artemis.core.remoting.impl.ssl.SSLSupport.loadKeyManagerFactory`
where it is calling `KeyManagerFactory.init()` with store password.
Before change in this PR, throughout our codebase there are multiple places where we assume that storePassword is the same as keyPassword, even in the classes that have nothing to do with Artemis.
This is of course less than ideal as TLS communication may be used not only for Artemis connectivity (e.g. Bridge/Float interaction in Ent) and it is unfair to impose same passwords constraint on that communication channel.
Therefore this PR is removing this limitation and properly separating storePassword from keyPassword.
Linked Jira(https://r3-cev.atlassian.net/browse/ENT-2610 ) has for more background info.
Suggest to start review from `net.corda.core.crypto.X509NameConstraintsTest` to get an idea about the nature of the changes made.
* ENT-2610: Address PR input from @kchalkias
* ENT-2610: Address PR input from @kchalkias, s/privateKeyPassword/entryPassword/
* ENT-2610: Address PR input from @kchalkias, s/keyPassword/entryPassword/
In the implementation of `CertificateStoreSupplier`
2018-10-22 07:11:27 +01:00
szymonsztuka
fd19338f62
Merge OS -> ENT:
...
NodeStartup - added back Enterprise only serialization case for Oracle database in NodeStartup,
added deduplicationId to execute method in classes overriding FlowAsyncOperation
2018-10-21 22:05:12 +01:00
szymonsztuka
e56d84fd5d
Merge OS -> ENT
2018-10-21 21:57:37 +01:00
Roger Willis
dd60ae27f2
FungibleState and design document for tokens ( #4049 )
2018-10-20 10:52:24 +01:00
Konstantinos Chalkias
72cab90577
[CORDA-738] Ensure encumbrances are bi-directional ( #4089 )
2018-10-19 18:34:32 +01:00
Tudor Malene
86bc0d9606
CORDA-1947 added packageOwnership parameter
...
CORDA-1947 add signers field to DbAttachment. Add check when importing attachments
CORDA-1947 add signers field to DbAttachment. Add check when importing attachments
CORDA-1947 add tests
CORDA-1947 fix comment
CORDA-1947 Fix test
CORDA-1947 fix serialiser
CORDA-1947 fix tests
CORDA-1947 fix tests
CORDA-1947 fix serialiser
CORDA-1947 Address code review changes
CORDA-1947 Address code review changes
CORDA-1947 Revert test fixes
CORDA-1947 address code review comments
CORDA-1947 move verification logic to LedgerTransaction.verify
CORDA-1947 fix test
CORDA-1947 fix tests
CORDA-1947 fix tests
CORDA-1947 address code review comments
CORDA-1947 address code review comments
2018-10-19 12:12:34 +01:00
Thomas Schroeter
f685df46b5
[ENT-1774] FlowAsyncOperation deduplication ID ( #4068 )
2018-10-19 11:40:59 +01:00
rick.parker
b571e16d0d
Merge remote-tracking branch 'remotes/open/master' into parkri-os-merge-20181018-1
2018-10-19 08:02:59 +01:00
Rick Parker
55731ef816
ENT-2431 Tidy up buildNamed and CacheFactory
2018-10-18 10:38:43 +01:00
Stefano Franz
5ca26b1345
Merge remote-tracking branch 'open/master' into stefano-merge-201810171215
...
# Conflicts:
# docs/source/node-database.rst
2018-10-17 13:49:00 +01:00
Stefano Franz
456c9a85e1
remove requirement to override default progress tracker for interacti… ( #3985 )
...
* remove requirement to override default progress tracker for interactive shell - this is no longer needed
* fix failing tests
2018-10-17 11:27:14 +01:00
Andrius Dagys
715c38766d
CORDA-2109: Fix a bug that prevents consecutive multiparty contract upgrades
...
The contract upgrade handler assumes that the state to be upgraded is
created by a WireTransaction. This breaks the upgrade process if it was
in fact issued by a ContractUpgradeWireTransactions or a NotaryChangeWireTransaction.
2018-10-17 10:20:27 +01:00
Konstantinos Chalkias
68d736dd81
Doorman can sign TLS certs directly. ( #4078 )
2018-10-16 11:16:28 +01:00
Shams Asari
958f5dd65f
Merge remote-tracking branch 'open/master' into os-merge-6d4bdb8
...
# Conflicts:
# docs/source/changelog.rst
# node-api/build.gradle
# node/src/integration-test/kotlin/net/corda/node/flows/AsymmetricCorDappsTests.kt
# node/src/integration-test/kotlin/net/corda/node/flows/FlowCheckpointVersionNodeStartupCheckTest.kt
# node/src/integration-test/kotlin/net/corda/node/modes/draining/FlowsDrainingModeContentionTest.kt
# node/src/integration-test/kotlin/net/corda/node/services/AttachmentLoadingTests.kt
# testing/node-driver/src/main/kotlin/net/corda/testing/node/internal/DriverDSLImpl.kt
# testing/node-driver/src/main/kotlin/net/corda/testing/node/internal/TestCordappDirectories.kt
2018-10-15 12:34:29 +01:00
Shams Asari
6d4bdb84b9
Code cleanup, mostly shortening long lines ( #4070 )
2018-10-15 12:01:15 +01:00
Andrius Dagys
3981a88301
Merge branch 'open/master' into andrius/merge-10-15
2018-10-15 10:50:12 +01:00
szymonsztuka
b769ad80bd
CORDA-195 When collecting JAR Signatures allow META-INF/*.EC block signature to follow jarsinger tool capabilities ( #4065 )
...
jarsigner can produce META-INF/*.EC block signature for EC algorithm (https://docs.oracle.com/javase/8/docs/technotes/tools/windows/jarsigner.html ) even if this is contrary to JAR File spec (https://docs.oracle.com/javase/8/docs/technotes/guides/jar/jar.html ). Allow block signature be also in *.EC file.
2018-10-12 16:54:39 +01:00