Commit Graph

3570 Commits

Author SHA1 Message Date
3e007c02f4 Fix potential file handle leak in Attachment (#539)
* Make mockito available everywhere (core in particular).
* Also set the not-found path as FNFE message.
2017-04-12 15:30:28 +01:00
ac337240a6 Minor: more cleanups 2017-04-12 14:42:30 +02:00
bea799c60d Minor: node: fix inspector warnings and delete dead code. 2017-04-12 14:42:30 +02:00
1a86ac481f Minor: core: fix static analysis warnings.
One actual bug was found this way, albeit a harmless one.
2017-04-12 14:42:29 +02:00
d35bd74596 Standardise identities used in tests, demos, etc.
Standaridise the identity names of Alice, Bob and Charlie, notary, map service, etc. in order
to ensure consistency across the code base and reduce number of places that have to be changed
to introduce proper X.500 names.

Move Alice, Bob & Charlie identities into the utilities package so they can be used in demos
2017-04-12 11:40:48 +01:00
ea1bbd6baf Update tutorial documentation 'by' with 'using' 2017-04-12 12:27:02 +02:00
108f171e03 Replace 'by' with 'using' to avoid overloading Kotlin keyword in contracts DSL. Deprecates 'by' with offered replacement. 2017-04-12 12:27:02 +02:00
36d5d0d7b2 Refactor of CompositeKeys to implement PublicKey interface. (#433)
* Make CompositeKey implement PublicKey

The initial implementation of composite keys as their own distinct class separate from PublicKey
means that the keys cannot be used on standard classes such as Certificate. This work is a beginning
to modifying CompositeKey to being a PublicKey implementation, although significant further work
is required to integrate this properly with the standard Java APIs, especially around verifying
signatures using the new key type.

* First stage of making CompositeKey implement PublicKey interface. Revert to using PublicKey everywhere we expect a key.

* Move algorithm and format into companion object (#432)

Move algorithm and format into companion object so that they can be referenced from other
classes (i.e. the upcoming signature class).

* Add simple invariants to construction of CompositeKey.
Builder emits CompositeKeys in simplified normalised form. Forbid keys with single child node, force ordering on children and forbid duplicates on the same level. It's not full semantical normalisation.

* Make constructor of CompositeKey private, move NodeWeight inside the class.
Add utility function for Kryo deserialization to read list with length constraints.
2017-04-12 11:13:20 +01:00
cb84f7b707 Doc changes 2017-04-12 11:48:34 +02:00
c80b3b787c Minor: work around a type inference bug in Kotlin 2017-04-11 15:53:05 +02:00
cf4363dc2e Minor: more helpful warning when an observable is leaked. 2017-04-11 15:53:05 +02:00
0c0c5521c0 Minor: address more formatting issues spotted by Shams 2017-04-11 15:53:05 +02:00
4853e41a58 Minor: inspector fixes 2017-04-11 15:53:05 +02:00
c097229935 Minor: run code cleanup inspections 2017-04-11 15:53:05 +02:00
e62250ff7b Minor: auto-format of module: webserver 2017-04-11 15:53:05 +02:00
4d6d4c167e Minor: auto-format of module: tools, verifier 2017-04-11 15:53:05 +02:00
cda04b0e7b Minor: auto-format of module: test-utils 2017-04-11 15:53:05 +02:00
9948815df1 Minor: auto-format of module: samples 2017-04-11 15:53:05 +02:00
eec8b9e4da Minor: auto-format of module: node-api, node-schemas 2017-04-11 15:53:05 +02:00
d6af727751 Minor: auto-format of module: node 2017-04-11 15:53:05 +02:00
3a7bcee15b Minor: auto-format of module: finance 2017-04-11 15:53:05 +02:00
6f200562b3 Minor: auto-format of module: client 2017-04-11 15:53:05 +02:00
d9391b3d29 Minor: auto-format of module: core 2017-04-11 15:53:05 +02:00
ba902f1549 Make quasar unit test setup work if there is whitespace in $PROJECT_DIR$ (#523) 2017-04-11 13:39:08 +01:00
43459789ee Merge pull request #510 from corda/andr3ej-runConfigurations
Fix always-failing command in Getting set up documentation
2017-04-11 13:20:21 +01:00
1ebb2967d1 Minor: add a missing dependency on stdlib-jre8 to the :client:jfx module which was causing IntelliJ to cry. 2017-04-11 14:17:43 +02:00
35fa9d2e59 Version number parser can now handle patch versions. (#516) 2017-04-11 12:08:42 +01:00
d795132e7f Restore :client:rpc unit tests to their correct location. (#530) 2017-04-11 09:49:28 +01:00
d31a6fae85 Fix up HibernateObserver to allow cascading persistence after bug report (#524) 2017-04-10 11:33:03 +01:00
c17fe29a62 Converted FullNodeConfiguration into a data class and added ability to parse Configs into data classes 2017-04-07 17:54:03 +01:00
868a490bba Merge pull request #520 from corda/pat-M10-contributors
M10 contributors
2017-04-07 17:41:18 +01:00
dd7bb61b68 M10 contributors 2017-04-07 17:33:45 +01:00
f4bdb00f70 Bump version to M10.1 in docs for release (#517) 2017-04-07 16:28:18 +01:00
2c5247d1cf Update DemoBench documentation. (#499)
* Document DemoBench's download link and the location of its log file.
* Document locations of DemoBench's runtime dependencies.
* Initial changes following review from Richard Brown.
2017-04-07 12:19:15 +01:00
7b216d6dc3 M10 release note (#509) 2017-04-07 10:12:01 +01:00
8dbd0d2e25 Improve Quasar agent config instructions for unit testing (#512)
Procedure to get IntelliJ to automatically add quasar agent to all new unit test configs.
2017-04-06 15:37:18 +01:00
f7dd2733f2 Kryo register FileInputStream and addDefaultSerializer for InputStream (#471)
HashCheckingStream CordaSerializable and FileInputStream Kryo register
2017-04-06 11:25:49 +01:00
d6403ce8cb Move CordaRPCClientTest into :client:rpc module. (#511) 2017-04-06 10:06:58 +01:00
8853a6069c Command fails as .idea/runConfiguration doesn't exist in version control, should be .idea/runConfigurations . 2017-04-05 15:19:37 +01:00
a9463ebf45 Tidy up a few rough edges for DemoBench. (#507)
* Install DemoBench as a systemwide application.
* This application's correct full name is "Corda DemoBench".
* Tidy up imports.
* Cordapps -> CorDapps
* Ensure application name is "Corda DemoBench" on MacOSX.
2017-04-05 13:13:59 +01:00
4829524244 Avoid errors if Corda / Explorer cannot be found at runtime. (#501)
* Avoid NPE if corda.jar cannot be found.
* Log an error if Node Explorer or WebServer fail to start.
* Display an error dialog if we cannot find corda.jar at start-up.
* Use official notUsed() function for unwanted Observables.
* Fix unit tests.
* Rename function to readErrorLines().
2017-04-04 17:25:37 +01:00
0a60d389d7 Update production readiness warning (#505)
* Updated Development State to reflect that Corda is maturing, that we're targetting production readiness in 2017 but still to warn that APIs are not yet stable

* newlines
2017-04-04 16:58:24 +01:00
d994469ab4 Bumping gradle plugins version to be able to publish the latest changes to the cordformation plugin. 2017-04-04 15:58:11 +01:00
69d6286a5e Args are correctly passed to node runner (#503)
* Arguments are now correctly passed to the noderunner from platform specific scripts.

* Node runner doesn't start CRaSH shell when running in headless mode.
2017-04-04 15:56:14 +01:00
b5c6f6053a Changed dependencies of deployNodes everywhere to depend on the jar task and not build to reduce build time. (#502) 2017-04-04 15:45:41 +01:00
a93692e434 Added an exception mapper that prints out errors emitted by the webserver (#484)
Added an exception mapper that prints out errors emitted by the JAX-RS server to aid debugging.
2017-04-04 15:43:55 +01:00
23224fc92c M11 snapshot version bump (#497) 2017-04-04 13:46:26 +01:00
48b121d145 Add Cash*Flow tests
Add tests for CashIssueFlow, CashPaymentFlow and CashExitFlow. While these were mostly covered by other tests
already, CashExistFlow was not, and any bugs would be harder to identify because they are mixed in with other
functionality (i.e. vault tests)
2017-04-04 13:44:10 +01:00
848988bf1c Merge pull request #487 from corda/shams-sealed-data-classes
Converted sealed data types to be data classes
2017-04-04 13:04:38 +01:00
e8316dedd0 Runnodes now exposes default ports for nodes automatically (#480)
Cordformation now automatically assigns a debug port
2017-04-04 11:58:56 +01:00