1650 Commits

Author SHA1 Message Date
Tim Quinn
6a6fbe23ff Avoid race condition by using ConcurrentHashMap (#2435)
Signed-off-by: tim.quinn@oracle.com <tim.quinn@oracle.com>
2020-10-09 14:49:34 -05:00
Santiago Pericasgeertsen
b1ddbe8828 Allow user-provided CDI extensions to veto JAX-RS classes (#2429)
* Allow user-provided CDI extensions to veto JAX-RS classes so that they are not included as part of an application during discovery. Changed JaxRsCdiExtension to use a different event to process classes. Updated the bookstore-mp test to verify the veto process and also modernized its tests.

Signed-off-by: Santiago Pericasgeertsen <santiago.pericasgeertsen@oracle.com>

* Fixed checkstyle issues.

Signed-off-by: Santiago Pericasgeertsen <santiago.pericasgeertsen@oracle.com>
2020-10-08 16:00:11 -04:00
Tomas Langer
2a992422f9 Documentation review fixes. (#2428)
Signed-off-by: Tomas Langer <tomas.langer@oracle.com>
2020-10-08 16:29:50 +02:00
David Král
59c71a2868 MP rest client version updated to 1.4.1 (#2426)
Signed-off-by: David Kral <david.k.kral@oracle.com>
2020-10-08 15:47:55 +02:00
Tomas Langer
c674f851d5 Secure static content (#2411)
* Securing static content.

- Documentation update.
- Example

Signed-off-by: Tomas Langer <tomas.langer@oracle.com>
2020-10-08 14:40:51 +02:00
David Král
80886a4844 Jersey update to version 2.32 (#2406)
Jersey update to version 2.32

Signed-off-by: David Kral <david.k.kral@oracle.com>
2020-10-08 10:30:53 +02:00
Joe DiPol
c6ee227a4e Update attributions for Prometheus Simple Client 0.9.0 (#2422) 2020-10-07 13:07:43 -07:00
Tim Quinn
6322b7e9c7 Update release of Prometheus Java client (#2419)
Signed-off-by: tim.quinn@oracle.com <tim.quinn@oracle.com>
2020-10-07 13:51:33 -05:00
Joe DiPol
fda1102a1c Update THIRD_PARTY_LICENSES for Jersey 2.32 (#2414) 2020-10-07 10:38:22 -07:00
Daniel Kec
9aa8185441 Multi discrepancies (#2413)
* Multi discrepancies

Signed-off-by: Daniel Kec <daniel.kec@oracle.com>
2020-10-07 18:28:21 +02:00
Víctor Orozco
3d9a3f944a Fixing broken link for SubtrateVM limitations on GraalVN Native Docs (#2410) 2020-10-05 15:01:40 -07:00
Santiago Pericasgeertsen
ac3ff4f168 Support for a name for all those operations that implement FtHandler. These names can be used for debugging, error reporting and future config support. Fixed some warnings too. (#2404)
Signed-off-by: Santiago Pericasgeertsen <santiago.pericasgeertsen@oracle.com>
2020-10-01 14:51:34 -04:00
David Král
84b97ef3e6 Git config native-image support (#2400)
Git config native-image support

Signed-off-by: David Kral <david.k.kral@oracle.com>
2020-10-01 18:12:41 +02:00
David Král
0dc4d4b408 DataChunkedInputStream deadlock protection removed (#2401)
Deadlock protection removed from DataChunkedInputStream

Signed-off-by: David Kral <david.k.kral@oracle.com>
2020-10-01 18:11:52 +02:00
Daniel Kec
86e7cdc8bd ClassPathContentHandler can survive tmp folder cleanup (#2361)
* ClassPathContentHandler can survive tmp folder cleanup

Signed-off-by: Daniel Kec <daniel.kec@oracle.com>
2020-09-30 21:44:59 +02:00
Santiago Pericasgeertsen
24e39b9710 Fault Tolerance SE Documentation (#2399)
* Initial draft.

Signed-off-by: Santiago Pericasgeertsen <santiago.pericasgeertsen@oracle.com>

* New section and fixed some typos.

Signed-off-by: Santiago Pericasgeertsen <santiago.pericasgeertsen@oracle.com>

* Some new sections and a new file name.

Signed-off-by: Santiago Pericasgeertsen <santiago.pericasgeertsen@oracle.com>

* Links to Javadocs.

Signed-off-by: Santiago Pericasgeertsen <santiago.pericasgeertsen@oracle.com>

* Updated sitegen.yaml with new entry for FT.

Signed-off-by: Santiago Pericasgeertsen <santiago.pericasgeertsen@oracle.com>

* Updated sitegen.yaml with new entry for FT.

Signed-off-by: Santiago Pericasgeertsen <santiago.pericasgeertsen@oracle.com>

* Updates to the Handler Composition section with new example. Some minor fixes in Javadocs referenced from this document.

Signed-off-by: Santiago Pericasgeertsen <santiago.pericasgeertsen@oracle.com>

* Some minor rewording in Bulkhead section.

Signed-off-by: Santiago Pericasgeertsen <santiago.pericasgeertsen@oracle.com>

* A couple of more typos.

Signed-off-by: Santiago Pericasgeertsen <santiago.pericasgeertsen@oracle.com>
2020-09-30 14:34:49 -04:00
Daniel Kec
64f3e04916 Messaging health check (#2352)
Messaging health

* readiness check
* aliveness check

Signed-off-by: Daniel Kec <daniel.kec@oracle.com>
2020-09-30 19:25:13 +02:00
Tomas Langer
7f1a1ad865 Disable automatic propagation from security providers (#2357)
* Security providers no long automatically propagate.
* Updated security provider documentation

Signed-off-by: Tomas Langer <tomas.langer@oracle.com>
2020-09-30 18:18:45 +02:00
Tomas Langer
6881ec8787 Update for MP tracing documentation. (#2397)
Extracted common parts into shared section.

Signed-off-by: Tomas Langer <tomas.langer@oracle.com>
2020-09-25 23:07:09 +02:00
Joe DiPol
b6aa1e8ce7 Add license text to THIRD_PARTY_LICENSES.xml (#2394) 2020-09-25 08:25:10 -07:00
Joe DiPol
388c622171 Fix 2391 Bug in generated Dockerfile.native from quickstart-mp (#2393) 2020-09-24 13:39:24 -07:00
Santiago Pericasgeertsen
147166a08f New WebServer document describing how to enable HTTP compression.
Signed-off-by: Santiago Pericasgeertsen <santiago.pericasgeertsen@oracle.com>
2020-09-24 13:45:41 -04:00
Santiago Pericasgeertsen
c31a3f07c5 Enable support for HTTP compression in the webserver (#2379)
* Enable support for HTTP compression in the webserver. Netty provides support for gzip and deflate encodings. Some new tests to show how it works.

Signed-off-by: Santiago Pericasgeertsen <santiago.pericasgeertsen@oracle.com>

* Support for enable-compression flag, set to false by default. Test updated.

Signed-off-by: Santiago Pericasgeertsen <santiago.pericasgeertsen@oracle.com>

* New functional test for HTTP compression in MP. Restored old Jersey test.

Signed-off-by: Santiago Pericasgeertsen <santiago.pericasgeertsen@oracle.com>

* Some cleanup of pom and test files.

Signed-off-by: Santiago Pericasgeertsen <santiago.pericasgeertsen@oracle.com>

* 2334 webserver compression (#2)

* Enable support for HTTP compression in the webserver. Netty provides support for gzip and deflate encodings. Some new tests to show how it works.

Signed-off-by: Santiago Pericasgeertsen <santiago.pericasgeertsen@oracle.com>

* Support for enable-compression flag, set to false by default. Test updated.

Signed-off-by: Santiago Pericasgeertsen <santiago.pericasgeertsen@oracle.com>

* New functional test for HTTP compression in MP. Restored old Jersey test.

Signed-off-by: Santiago Pericasgeertsen <santiago.pericasgeertsen@oracle.com>

* Some cleanup of pom and test files.

Signed-off-by: Santiago Pericasgeertsen <santiago.pericasgeertsen@oracle.com>

* Changes for new test support.

Signed-off-by: Tomas Langer <tomas.langer@oracle.com>

Co-authored-by: Santiago Pericasgeertsen <santiago.pericasgeertsen@oracle.com>

* Fixing some problems after a merge.

Signed-off-by: Santiago Pericasgeertsen <santiago.pericasgeertsen@oracle.com>

* Fixing some problems after a merge.

Signed-off-by: Santiago Pericasgeertsen <santiago.pericasgeertsen@oracle.com>

* Fixed location and annotations on enableCompression method in builder.

Signed-off-by: Santiago Pericasgeertsen <santiago.pericasgeertsen@oracle.com>

Co-authored-by: Tomas Langer <tomas.langer@gmail.com>
2020-09-24 13:45:15 -04:00
Joe DiPol
f834d11ce9 Update gRPC attribution for 1.32.1 (#2389) 2020-09-24 08:55:14 -07:00
Jonathan Knight
53b9834b7e Update to the latest gRPC Java version to match with the version of Netty being used by Helidon. (#2388) 2020-09-23 12:12:45 -07:00
Santiago Pericasgeertsen
4a4c4542ef Updated test to verify @CircuitBreaker does not interfere with request scope in latest implementation.
Signed-off-by: Santiago Pericasgeertsen <santiago.pericasgeertsen@oracle.com>
2020-09-23 14:05:13 -04:00
David Král
f750827271 media-jackson native-image support (#2385)
Signed-off-by: David Kral <david.k.kral@oracle.com>
2020-09-23 16:16:03 +02:00
Tomas Langer
5e28f8d87b OIDC fixes (#2378)
* Outbound security disabled in OidcConfig when invoking OIDC identity provider.
* Pre-matching filter now using security executor service instead of jersey async executor service.
* Async executor was triggered by pre-matching security filter, now by test itself.

Signed-off-by: Tomas Langer <tomas.langer@oracle.com>
2020-09-23 13:40:49 +02:00
Tomas Langer
446afa7675 Injection of web target with correct endpoint. (#2380)
* Injection of web target with correct endpoint.
* Support for junit5 tests already in MP Config implementation
* Support for inherited repeating annotations.

Signed-off-by: Tomas Langer <tomas.langer@oracle.com>
2020-09-23 13:40:01 +02:00
Lisa Jamen
62279c7b3c fix MP/SE framework distinction (#2351) 2020-09-21 08:40:13 -07:00
Joe DiPol
5ff380788e Third party license file updates (#2373)
* Update THIRD_PARTY_LICENSES.txt and add structured version (THIRD_PARTY_LICENSES.xml)
2020-09-17 15:29:26 -07:00
Santiago Pericasgeertsen
dcb41afc0a Updates to FT tests to take advantage of the new @HelidonTest support. Also removed unnecessary public modifiers and improved code in a few places.
Signed-off-by: Santiago Pericasgeertsen <santiago.pericasgeertsen@oracle.com>
2020-09-17 15:10:01 -04:00
Tomas Langer
c93c5cbec4 Added support for remote host and port to jersey and security. (#2368)
Signed-off-by: Tomas Langer <tomas.langer@oracle.com>
2020-09-17 18:10:33 +02:00
Tomas Langer
c0fc3b919e Use latest version for helidon plugin to include native image fix. (#2374)
Signed-off-by: Tomas Langer <tomas.langer@oracle.com>
2020-09-17 18:09:39 +02:00
Tomas Langer
3b7e1d0f60 Update javadoc of EvictableCache (#2367)
* Update javadoc

Signed-off-by: Tomas Langer <tomas.langer@oracle.com>
2020-09-16 17:58:42 +02:00
Tomas Langer
d6bfedfccd MP Testing (#2353)
* MP Testing
* support for per test method CDI container.
* support custom config sources
* support for constructor injection in single CDI container mode
* support for `SeContainer` parameter in per test method CDI container mode
* validations of annotations depending on mode

Signed-off-by: Tomas Langer <tomas.langer@oracle.com>
2020-09-16 17:58:01 +02:00
Santiago Pericasgeertsen
00beda0d67 Fixed URLs and added a note about MP config.
Signed-off-by: Santiago Pericasgeertsen <santiago.pericasgeertsen@oracle.com>
2020-09-16 07:46:01 -04:00
Santiago Pericasgeertsen
9ccf4bc9ba Updates Fault Tolerance MP docs with config information for new implementation. Created a couple of new tests to verify that thread pool sizes can be configured using an application.yaml file.
Signed-off-by: Santiago Pericasgeertsen <santiago.pericasgeertsen@oracle.com>
2020-09-16 07:46:01 -04:00
Tomáš Kraus
386a734d52 When class is annotated with @MappedSuperclass, its private fields can't be accessed from JPA with native image (#2127)
Signed-off-by: Tomas Kraus <Tomas.Kraus@oracle.com>
2020-09-15 12:17:49 +02:00
Romain Grecourt
d62d70ef53 Update standalone quickstarts. (#2360)
- surefire & failsafe updated to 3.0.0-M5
 - removed plugin dependency on junit-jupiter-engine
 - set useModulePath to false
 - add native-image profile to quickstart-standalone-se
 - remove junit-platform-surefire-provider in quickstart-standalone-se
2020-09-14 17:29:19 -07:00
dansiviter
701a01cdae WebSocket Extensions (#1934)
* Addresses #1607
2020-09-14 15:17:00 -07:00
Santiago Pericasgeertsen
b08b86243c Limit module visibility by making several classes package private (#2359)
* Limit module visibility by making several classes package private. None of these classes should be used directly by Helidon applications.

Signed-off-by: Santiago Pericasgeertsen <santiago.pericasgeertsen@oracle.com>

* Removed public from constructors and fixed copyrights.

Signed-off-by: Santiago Pericasgeertsen <santiago.pericasgeertsen@oracle.com>
2020-09-14 17:03:47 -04:00
Santiago Pericasgeertsen
74956be772 Implementation of MP FT 2.1.1 using FT SE (#2348)
* Replacing FailSafe and Hystrix by our own implementation of FT primitives. Some minor changes to our first version of these primitive operations was necessary to be fully compatible with MP and pass all the TCKs.

Signed-off-by: Santiago Pericasgeertsen <santiago.pericasgeertsen@oracle.com>
2020-09-14 13:20:46 -04:00
Suren Konathala
ec0a12600d Updated maven surefire plugin to helidon-standalone-quickstart-mp (#1849)
* Updated maven-surefire plugin verion in pom.xml

* Updated pom.xml with 2.0.0-SNAPSHOT version

Co-authored-by: Suren Konathala <suren@Surens-MacBook-Pro.local>
2020-09-11 16:40:53 -07:00
Daniel Kec
85a77ca335 Single.never not singleton
Signed-off-by: Daniel Kec <daniel.kec@oracle.com>
2020-09-10 15:18:04 -04:00
Romain Grecourt
2a23a68e20 Update surefire and failsafe to 3.0.0-M5 (#2307)
* Update surefire and failsafe to 3.0.0-M5
Remove dependencies on jupiter-engine, and junit-platform-surefire-provider

* disable module path for surefire and failsafe

* version.lib.surefire.testng to 3.0.0-M5
remove duplicates dependencies in tests/integration/mp-grpc/pom.xml
suppress warnings in top level pom

* add back junit-jupiter-engine

* add junit:junit in config/jgit as jgit.junit requires junit4

* add junit-jupiter-api to database-se archetype
2020-09-10 10:42:01 -07:00
Joe DiPol
3eb4b58dd6 Update Jackson version in third party license file (#2330) 2020-09-09 11:07:09 -07:00
Joe DiPol
1f6f41abea Update MP Database archetype README to use "type" not "idType" (#2329) 2020-09-09 11:06:10 -07:00
David Král
18d4c7c866 Windows native-image fix (#2336)
Signed-off-by: David Kral <david.k.kral@oracle.com>
2020-09-09 16:49:12 +02:00
David Král
0cc91a067c WebClient Tracing intermittent test failure fix (#2347)
Signed-off-by: David Kral <david.k.kral@oracle.com>
2020-09-09 16:48:50 +02:00