6983 Commits

Author SHA1 Message Date
Dimos Raptis
b7af25238b CORDA-2518 - Refresh api-current.txt (#4660) 2019-01-31 10:01:20 +00:00
josecoll
91589849bb CORDA-2515 - Fix bug in verifier for has to signature constraints (auto-migration). (#4680) (#4689) 2019-01-31 09:59:52 +00:00
Tudor Malene
1324676348 CORDA-2536 - Tighten no overlap check. (#4690) (#4692)
(cherry picked from commit 37eb93fa76459babce423940ee8e965cf5801633)
2019-01-31 09:47:59 +00:00
Katarzyna Streich
d3ba2223d2 CORDA-2520 - Add FetchParametersFlow (#4682)
* CORDA-2520: Add FetchParametersFlow (#4674)

* CORDA-2520: Add FetchParametersFlow

* Address comments, add test

* Fix test
2019-01-30 17:49:10 +00:00
Katelyn Baker
78b566c163
CORDA-2531 - State mappings are now also updated for new reference states. (#4681) (#4686)
* State mappings are now also updated for new reference states.
Added a test to prove the above works.

* Addressed Rick's review comments.
2019-01-30 16:51:06 +00:00
josecoll
c7a77fda91
CORDA-2514 Constraints checking failures do not provide indication of cause (#4638)
* Add logging to constraints checking to indicate reason of failure.

* Additional debug logging message.
2019-01-30 15:53:32 +00:00
Rick Parker
384a7c37b9 CORDA-2525 - Start pooling classpath scanning and related fixes (#4664) (#4685)
* Start pooling classpath scanning

Quickly patch synchronisation of attachment class loader cache.  Needs a revisit but more complicated due to DJVM.

Annotate away for DJVM

Take ClassGraph utils into their own file so we can exclude for DJVM

Clean up a little

* Daemonize the threads

* Seems to be some concurrency problems with use of ClassGraph.  Using a mutex for now to work around.

(cherry picked from commit 7dc7313fb716388c24bd9de4e9d71b6f15ce0038)
2019-01-30 14:26:47 +00:00
Rick Parker
e4b210603c ENT-2967 - Fix up use of various JDK performance contention points (#4608) (#4678)
* ENT-2967 Various JDK contention points

* Move new private method to bottom of class.

(cherry picked from commit 197a13611dd0f15fe165b3ea0c6738c932c74d17)
2019-01-30 12:50:56 +00:00
Andrius Dagys
60de62626c DOCS - ENT-2882 - Update notary configuration docs (#4684) 2019-01-30 12:50:24 +00:00
Andrius Dagys
9abf44ea81 CORDA-2524 - Minor – reduce notary service logging noise (#4672) 2019-01-29 15:41:14 +00:00
Tommy Lillehagen
9efe636829
Fix link to errors.corda.net in release notes (#4661) 2019-01-28 15:30:09 +00:00
Tommy Lillehagen
fdbf88c0d8
CORDA-2419 - JavaFX requirement for Node Explorer (#4662) 2019-01-28 15:23:59 +00:00
Oliver Knowles
aa39c9ee4d DOCS - Improve documentation surrounding network parameter updates/flag day (#4652) (#4658)
Improve documentation surrounding network parameter updates and flag days
2019-01-28 15:21:18 +00:00
JamesHR3
153a2c17f0 DOCS - CORDA-2516 - Add missing database tables to documentation (#4651) (#4656)
* [CORDA-2516] Add missing database tables to documentation (#4651)

* Add missing tables to the database documentation

(cherry picked from commit f04a2e72e0867a64580aa381091cb74082c7429f)

* [CORDA-2516] Fix missing ending markers in the node database table (#4657)

(cherry picked from commit 6433401b7617e3c8259291fc07e56e3141b9814c)
2019-01-28 14:51:36 +00:00
Andrius Dagys
6d957b7522 DOCS - Changelog typo fix (#4649) 2019-01-28 14:41:11 +00:00
Katelyn Baker
f733f963d1
CORDA-2510 - Added missing confidential-identities CorDapp to DemoBench (#4636) (#4646) 2019-01-27 15:41:46 +00:00
Katelyn Baker
dd002ee38a RELEASE - 3rd release candidate M19-RC03 2019-01-24 23:26:12 +00:00
Katelyn Baker
b51d8d70e1
CORDA-2497 - fix (#4630) (#4635)
CORDA-2497 fix
* Added test to show the fix working.
* Now backwards compatible.
* Refactored out some duped code.
* Added better explanations for what's going on.
* Fixed test which was failing due to the serializationEnvRule problem.
* Addressed Tudor's review comments.
2019-01-24 23:24:24 +00:00
Andrius Dagys
6ec3a208ed ENT-2822 - Add a note about experimental notary upgradability (#4599) 2019-01-24 21:42:34 +00:00
szymonsztuka
8c35133f70 CORDA-2504 - improve error message of missing contract attachments (#4628) (#4633)
* CORDA-2504 Improved MissingContractAttachments error to ensure it contains contractClassName.

* CORDA-2504 Improved MissingContractAttachments error to ensure it contains contractClassName - additional API overloaded method.

* Docs

(cherry picked from commit 1b89ece09b183338b28030bd086a5e7b4d5de65f)
2019-01-24 21:41:06 +00:00
Shams Asari
9a66a3b4ee CORDA-2228 - Exceptions emanating from ReceiveFinalityFlow are sent to the flow hospital (#4621) (#4626)
(cherry picked from commit 5bb5244e5571f9f7f73e708de6abb68c39493e5b)
2019-01-24 13:32:28 +00:00
szymonsztuka
3384470f6b CORDA-2490 Attachment in the directory fails to correctly upload (#4627) (#4629)
The column 'uploader' was marked as not updatable entity so any update wasn't propagated to the database when the attachment was uploaded again and the uploader field was changed to a trusted one. Also 'saveOrUpdate' removed, the entity is already managed, saveOrUpdate is for detached/new entity.

(cherry picked from commit 9f4c8bcea5bb780eec1c1f663302ed92f2c38733)
2019-01-24 10:23:26 +00:00
josecoll
2bc1e73833 CORDA-2485 - Add minimum platform version check before attempting a hash -> signature constraints auto migration. (#4623) (#4625) 2019-01-23 16:21:08 +00:00
Anthony Keenan
25ad122a50 CORDA-2445 - print out the underlying error when an RPC call fails (#4605) (#4615)
make it red.
2019-01-23 09:47:29 +00:00
Anthony Keenan
18d00d9e42 CORDA-2482 - Fix issue with devModeOptions.allowCompatabilityZone not working (#4613) (#4616) 2019-01-23 09:44:52 +00:00
JamesHR3
34818634d1 CORDA-2435 - Print an error and exit if the vault contains V3 states (#4619)
* Exit and raise an error if there are V3 states in the vault

* Add a test to check that old vault states are correctly detected

* Fix test to correctly close database transaction

* Update the documentation to add a warning about V3 states

* Address review comments and revert unnecessary refactor

* Address further review comments

* Add configuration option to disable exiting on V3 states

* Fix merge damage to reference.conf

* Fix issue with mock network
2019-01-23 09:42:20 +00:00
josecoll
1945b2274a CORDA-2475 - Adjust attachments query logic to return correct results (#4612) (#4622)
* CORDA-2475 Adjust attachments query logic to return correct results sets for signed/unsigned jars.

* Updates following PR review feedback by RP.
2019-01-23 09:40:34 +00:00
Dimos Raptis
dbf78d02db CORDA-2349 - Enable methods synthesized by Kotlin in api scanning (#4595) (#4601) 2019-01-18 14:19:07 +00:00
Katelyn Baker
218a92c866 RELEASE - Inc build number for 2nd RC candidate of 4.0 M19-RC02 2019-01-16 22:13:44 +00:00
JamesHR3
131fcc65de CORDA-2432 - Update documentation for filtering by state relevancy in vault queries (#4597)
* [CORDA-2432] Update documentation for filtering by state relevancy in vault queries

* Add missing file to fix
2019-01-16 22:10:56 +00:00
Shams Asari
3b1929371c CORDA-2434 - CordaRPCClient now only has c'tors rather a mix of c'tors and factory methods (#4569) (#4578)
(cherry picked from commit 24a7821dceaa8cb02ff4d10a915880e435354f92)
2019-01-16 19:49:32 +00:00
Katelyn Baker
6bced399d7
CORDA-2441 - Fix Stdout progress renderer to swap out correct appender (#4582) (#4594)
* Fix stdout renderer to swap out correctly named appender.

Also fix two compiler warnings

* Add clearer exception when console appender cannot be found

* Change error displayed when appender not found to warning

* Remove type declaration on separate line
2019-01-16 19:48:42 +00:00
Shams Asari
9286278f59 CORDA-2442: Added wither methods to the vault query classes (#4585)
(cherry picked from commit 498db538d7c755cefe8aa5b0b99d21241818f2b5)
2019-01-16 17:41:11 +00:00
Dimos Raptis
f5148e8b6c [CORDA-2431] - Small refactorings following-up on PR-4551 (#4564)
* Small refactorings following-up on PR-4551

* Adjust thread context class loader

* Address Shams' comments
2019-01-16 14:28:38 +00:00
Dimos Raptis
0dd245b5ae [CORDA-2431] - Reduce memory footprint of classpath scanning (#4576)
* Reduce memory footprint of classpath scanning

* Close scan result in the end
2019-01-16 14:28:38 +00:00
Shams Asari
c68e1c3edd RELEASE - Fixed release branch due to various issues with back porting (#4588)
* Add back V3 TransactionBuilder c'tor (#4587)

(cherry picked from commit 5bb38e455ca4268500856ab36224c437cd18c860)

* Regen isolated jar to fix failing test(s) (#4583)

https://github.com/corda/corda/pull/4541 removed TransactionBuilder c'tor (which was introduced post-V3) which the frozen isolated jar was using
(cherry picked from commit f5920252735944dc7e28cd633bf79e199b069f7d)

* Fixed AttachmentLoadingTests (#4565)

There were two issues:
* The original "sealing violation: can't seal package net.corda.nodeapi" issue was due to the isolated CorDapp containing some code in the net.corda.nodeapi namespace. This has been moved to the isolated namespace.
* The test was not correctly creating the second transaction with the dummy command

(cherry picked from commit 3b8347e1500ca0c002b11f068d7f7c9cbdc39762)

* Regen isolated.jar to make sure it's based on the branch
2019-01-16 14:27:22 +00:00
Michele Sollecito
31d799f636 CORDA-2403: Flagged API issues between 4.0 and 3.3. (#4541) 2019-01-15 16:56:42 +00:00
Christian Sailer
22388d812c Corda-2209 - Make the AMQP bridge individually ACK artemis messages (so that we don't have to wait for an ack flush or end up with ack'd messages queued up). (#4568) (#4574) 2019-01-14 15:38:41 +00:00
Shams Asari
8e535b2a8a CORDA-2418 - Fixed inability to use TestCordapp under gradle in Windows if referring to self cordapp (#4562) (#4570)
The gradle process that runs the tests keeps an exclusive hold on built jars in Windows, which means if a test wants to get hold of the CorDapp, and it's requested from the same module, it will fail. Now instead of deleting the "libs" dir  we just use the latest created jar.

(cherry picked from commit 1bbcb8722edf02d6422888095d7195a4f73079d4)
2019-01-14 14:32:13 +00:00
Katelyn Baker
477a46c61c RELEASE: Set RC version number M19-RC01 2019-01-13 20:26:48 +00:00
Dimos Raptis
5b34020e59 [CORDA-2390] - Add whitelists and custom serializers from cordapps to serialization … (#4551)
* Add whitelists and custom serializers from cordapps to serialization context

* Remove changes in TransactionBuilder, add caching

* Add whitelists and custom serializers from cordapps to serialization context

* Remove changes in TransactionBuilder, add caching

* Address comments

* Increase node memory for SIMM integration test

* Cache only serialization context

* Increase integ test timeout

* Fix API breakage

* Increase max heap size for web server integ test

* Move classloading utils from separate module to core.internal

* Adjust heap size for more integ tests

* Increase time window for IRS demo transactions

* Fix determinator

* Add parameter in core-deterministic

* Stub out class-loading method for DJVM
2019-01-13 20:15:05 +00:00
JamesHR3
36cd9b9791
[CORDA-2402] Ensure out of order transactions result in correct vault state (#4559)
* Pass states to record through to transaction resolution

* Add a test case

* Add comment indicating why states are always added in tx resolution

* Update observer node documentation
2019-01-13 15:03:53 +00:00
szymonsztuka
7a4b6b3e44
CORDA-2405 Update versions of whitelisted attachments (#4549)
The version of contract attachments that are whitelisted should be read from NetworkParameters.whitelistedContractImplementations.
It use the lattes network map from db with the highest epoch.
2019-01-13 11:38:19 +00:00
Roger Willis
084b3a1a1d
CORDA-2426 Fixed bug in state pointer search. (#4561)
* Fixed bug in state pointer search and added tests.

* Blacklisted problematic package.

* Addressed Shams' comments.

* Addressed round two of comments.

* Fixed another bug whereby the DFS gets stuck in an infinite loop.
2019-01-13 08:58:52 +00:00
Michele Sollecito
5c5407fbed Avoid TransactionBuilder behaviour change for v3 or below. (#4555) 2019-01-12 17:56:50 +00:00
Shams Asari
caad18f6db
CORDA-2347: Added backwards compatibility to SwapIdentitiesFlow (#4548)
The API has been reverted to be completely ABI compatible with V3, and the small changes that were made to the wire format in https://github.com/corda/corda/pull/4260 have also been reverted.
2019-01-12 14:23:20 +00:00
josecoll
8785bc1b84
Update Corda gradle plugins to 4.0.38 (#4558)
* Update Corda gradle plugins.

* Update Corda gradle plugins.

* Update upgrade notes.

* Minor clarification.
2019-01-12 14:03:05 +00:00
Shams Asari
6f14a9f0b9
CORDA-2406: FinalityFlow can support mix of participants using the new and old APIs (#4532)
Otherwise it's impossible to finalise a transaction and the participants are a mix of those using the new API and those using the old.
2019-01-12 12:01:23 +00:00
JamesHR3
0832587096
[CORDA-1897] Improve exception handling on startup (#4452)
* Select a console logger based on logging level

* Ensure consistent formatting

* Ensure stack traces only printed when console logging enabled
2019-01-11 17:40:32 +00:00
Florian Friemel
558d2fd45c
[CORDA-2403] Fix API breakage: PermissionException and CordappImpl constructor (#4554)
* Undo renaming of c'tor parameter (API break).
* Re-introduce default param in CordappImpl c'tor.
* Make 'msg' a property of PermissionException to make it serializable.
2019-01-11 17:39:22 +00:00