Commit Graph

379 Commits

Author SHA1 Message Date
Tomas Langer
ac8a3ebb0c Upgrage GraalVM (#2510)
* Upgrade GraalVM.

Signed-off-by: Tomas Langer <tomas.langer@oracle.com>
2020-11-10 00:05:26 +01:00
Tim Quinn
e7dd2c1f6c Add vetoed-bean support to metrics CDI extension (#2507)
* Use ProcessManagedBean instead of ProcessAnnotatedType to actually define metrics

Signed-off-by: tim.quinn@oracle.com <tim.quinn@oracle.com>
2020-11-05 18:20:15 -06:00
Romain Grecourt
22ff1b30c9 remove weld-probe-core (#2506)
* remove weld-probe-core

* remove owasp suppression, add exclusion of weld-probe-core to avoid the supression (even if optional)
2020-11-05 12:58:41 -08:00
Tim Quinn
59fec6151f Convert tests to use the new infrastructure (#2498)
* Convert tests to use the new infrastructure

Signed-off-by: tim.quinn@oracle.com <tim.quinn@oracle.com>
2020-11-05 11:15:44 -06:00
Santiago Pericasgeertsen
e7b9b8b8d3 Request scope propagation for non-async calls in FT (#2495)
* New test for issue 2480.

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

* Swithed to new test framework for MP.

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

* Use a wrapped supplier to propagate request scope even for synchronous calls as some FT primitives (like Retry) use executors and may run code in a different thread. Updated new test that fails without this change and passes with it.

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

* Renamed variable.

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

* Fixed copyright problems.

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

* Dropped fixed port in config.

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

* Remove redundant main class.

Signed-off-by: Santiago Pericasgeertsen <santiago.pericasgeertsen@oracle.com>
2020-11-04 09:20:46 -05:00
Laird Nelson
c701e38737 Initial stab at incorporating some Loom features into Helidon in a way that will work under JDK 11 or 16-loom-ea (#2417)
Signed-off-by: Laird Nelson <laird.nelson@oracle.com>
2020-10-29 10:52:39 -07:00
Romain Grecourt
f281bc9c68 Fix pom.xml of helidon-microprofile-tests-junit5 (#2485)
Make io.helidon.microprofile.tests:helidon-microprofile-tests-junit5 inherit from io.helidon.microprofile:helidon-microprofile-project instead of io.helidon.microprofile.tests:tests-project.
io.helidon.microprofile.tests:tests-project is not deployed to Maven and thus cannot be in the parent pom chain of any pom that needs to be deployed (otherwise effective pom resolution fails).
2020-10-26 11:21:56 -07:00
Santiago Pericasgeertsen
1d4399a4b6 Override parent pom properties to include artifact in release (#2476)
* Override parent pom properties to include artifact in release. Fixed spotbugs issue.

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

* New module-info file.

Signed-off-by: Santiago Pericasgeertsen <santiago.pericasgeertsen@oracle.com>
2020-10-22 09:03:58 -04:00
Joe DiPol
62b4b562d5 Add owasp dependency-check-maven plugin (#2472)
* Add owasp dependency-check-maven plugin and script
2020-10-21 13:47:02 -07:00
Joe DiPol
437fbd730d Update version to 2.1.1-SNAPSHOT (#2462) 2020-10-16 15:37:23 -07:00
Tomas Langer
b300e54b7f CDI.current().getBeanManager() now available during shutdown (#2438)
* CDI.current().getBeanManager() now available during shutdown

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

* Guarding debug statement

Signed-off-by: Tomas Langer <tomas.langer@oracle.com>
2020-10-15 12:07:31 -07:00
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
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
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
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
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
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
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
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
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
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
78eddfe47a Update version to 2.0.3-SNAPSHOT (#2323) 2020-09-04 11:18:57 -07:00
Tim Quinn
721a1853ff Use CDI to instantiate Application classes to invoke getClasses (#2325)
* Use CDI (instead of simple instantiation) to instantiate and inject Application instances during OpenAPI processing

Signed-off-by: tim.quinn@oracle.com <tim.quinn@oracle.com>
2020-09-04 12:07:23 -05:00
Jonathan Knight
ad553ba24e Fix issue with gRPC clients and services where method signatures have types with nested generics (#2283)
* Fix issue with gRPC clients and services where method signatures have types with nested generics
2020-09-03 16:32:35 +02:00
Tomas Langer
abdffa0438 Service class fixed. (#2317)
Signed-off-by: Tomas Langer <tomas.langer@oracle.com>
2020-09-02 07:51:32 -07:00
Laird Nelson
8b58ec5d17 Introduces an ExecutorServices implementation to Helidon's repackaged Weld implementation to ensure context classloaders are never null (#2269)
* Introduces an ExecutorServices implementation to Helidon's repackaged Weld implementation to ensure context classloaders are never null.
Signed-off-by: Laird Nelson <laird.nelson@oracle.com>
2020-08-31 17:14:22 -07:00
Tomas Langer
ce559644a7 Security CDI extension has higher priority (#2299)
* Security now has higher priority
* Abac now correctly handles validator config
* Other services that expose endpoints have changed priority
* Added an integration test for #2297
2020-08-31 19:03:31 +02:00
Joe DiPol
18034ca5b1 Set junit4 version where used. Fixes #2289 (#2290) 2020-08-26 15:05:52 -07:00
Tim Quinn
0bfd979dc1 Support MP health 2.2 (#2264)
* Minor adaptation to MicroProfile Health 2.2

Signed-off-by: tim.quinn@oracle.com <tim.quinn@oracle.com>
2020-08-19 07:35:43 -05:00
Tomas Langer
4dfb573d17 Support for bean producers in different package than beans that have … (#2241)
* Support for bean producers in different package than beans that have package local methods.
* Update to proxy services
- name is generated with super interface first
- proxy classes are defined using private lookup
- proxy classes are defined using a class loader for weld specific packages

Signed-off-by: Tomas Langer <tomas.langer@oracle.com>
2020-08-13 20:54:51 +02:00
Tim Quinn
a554d67a57 Add support for MP Metrics 2.3 (#2245) 2020-08-12 15:50:34 -05:00
Santiago Pericasgeertsen
e17878136a Fixed import problem. New test for request scope propagation.
Signed-off-by: Santiago Pericasgeertsen <santiago.pericasgeertsen@oracle.com>
2020-08-03 16:32:50 -04:00
Santiago Pericasgeertsen
a1144d9563 Updated comment.
Signed-off-by: Santiago Pericasgeertsen <santiago.pericasgeertsen@oracle.com>
2020-08-03 16:32:50 -04:00
Santiago Pericasgeertsen
14df4246a8 Changes required to ensure request scope is propagated to other threads. Requires access to Jersey internals in order to fully support @Context and @Inject injections.
Signed-off-by: Santiago Pericasgeertsen <santiago.pericasgeertsen@oracle.com>
2020-08-03 16:32:50 -04:00
Tomas Langer
968923f4fa Security can now be disabled. (#2157)
* Security can now be disabled.

Signed-off-by: Tomas Langer <tomas.langer@oracle.com>
2020-07-14 02:40:24 +02:00
Tomas Langer
0c6324a727 Security injection in application scope. (#2154) 2020-07-14 02:39:57 +02:00
Joe DiPol
0bb8d792da Bump version to 2.0.2-SNAPSHOT. Update CHANGELOG (#2111)
* Bump version to 2.0.2-SNAPSHOT Update CHANGELOG
2020-06-30 14:47:34 -07:00
Tomas Langer
12cfae97d6 Support for SE mappers in MP. (#2091)
* Support for SE mappers in MP.
* Removed mandatory use of object mapping from security providers.
* Use direct APIs to retrieve booleans.
* Fixes to object mapping support in MP.

Signed-off-by: Tomas Langer <tomas.langer@oracle.com>
2020-06-26 10:09:06 +02:00
Joe DiPol
8bbe29ecc8 2.0: Update version to 2.0.1-SNAPSHOT. Update CHANGELOG (#2082)
* Update CHANGELOG.md after 2.0.0 release

* Update version to 2.0.1-SNAPSHOT
2020-06-23 11:32:04 -07:00
Tomas Langer
af949542c8 SE Config can be created from MP Config (#2060)
* MP to SE config now works including environment variables.
* Empty config now does not create an executor service.
* Using the same classloader when null is sent in MP config.
* Added env var test.
* Ensure the reference config uses its own configuration (intermitent failure fix)

Signed-off-by: Tomas Langer <tomas.langer@oracle.com>
Co-authored-by: Romain Grecourt <romain.grecourt@oracle.com>
2020-06-19 16:07:20 +02:00
Tomas Langer
61c97a9caa MP native image no longer misses bean types for proxies. (#1988)
Signed-off-by: Tomas Langer <tomas.langer@oracle.com>
2020-06-16 14:31:38 -07:00
Tomas Langer
4abd0a3cd6 Feature refactoring (#1944)
* Features simplification.
* Added  excludes
* Moved initialization of log to native image extension
* Log statements for unsupported features in native image

Signed-off-by: Tomas Langer <tomas.langer@oracle.com>
2020-06-16 18:21:24 +02:00
Tomas Langer
28ab6f39cc Fail deployment for Gauges in RequestScoped beans (#1978)
* Fail deployment for Gauges in RequestScoped beans
* Warn for Gauges not in (ApplicationScoped or Singleton) beans

Signed-off-by: Tomas Langer <tomas.langer@oracle.com>
2020-06-11 15:42:08 +02:00
Tomas Langer
6fbffcb41e Module and Java 12+ friendly way of defining classes for Weld Proxies. (#1967)
* Module and Java 12+ friendly way of defining classes for Weld Proxies.

Signed-off-by: Tomas Langer <tomas.langer@oracle.com>
2020-06-11 10:44:22 +02:00
Aleks Seovic
a0c8d7e8c3 Minor gRPC 2.0 fixes and improvements (#1959) 2020-06-10 08:14:06 -05:00
Tim Quinn
cfae9e2de2 Revert "Minor gRPC fixes (2.0) (#1951)" (#1956)
This reverts commit c30057f99d.
2020-06-09 17:06:28 -05:00
Aleks Seovic
c30057f99d Minor gRPC fixes (2.0) (#1951) 2020-06-09 13:21:02 -05:00