Commit Graph

1635 Commits

Author SHA1 Message Date
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
Laird Nelson
652a6271b4 Adds a unit test proving that multiple persistence units can be injected. (#2503)
Signed-off-by: Laird Nelson <laird.nelson@oracle.com>
2020-11-04 12:34:08 -08: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
Santiago Pericasgeertsen
7425747cc5 Support for a max payload limit on client requests (#2491)
* Initial support for new server config property max-payload-size to limit the payload sizes in client requests, with or without the use of chunked encoding.

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

* Fixed issue forwarding chunks and cleaned up reset logic.

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

* Removed unnecessary log instruction.

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

* Restored logging properties file.

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

* Do not closed the channel when a 413 response is in flight.

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

* Webserver config doc update.

Signed-off-by: Santiago Pericasgeertsen <santiago.pericasgeertsen@oracle.com>
2020-11-03 09:10:09 -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
Joe DiPol
d59a0b8e19 Update doc's microprofile version to 3.3 (#2488) 2020-10-27 12:57:42 -07:00
Joe DiPol
c64b139d15 Upgrade apache-httpclient, google-api-client and snakeyaml (#2482)
* Upgrade apache-httpclient, google-api-client and snakeyaml
2020-10-27 11:27:47 -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
Tomas Langer
ff157c97ba Make sure span.finish() is not called twice (#2466)
* Make sure span.finish() is not called twice

Signed-off-by: Tomas Langer <tomas.langer@oracle.com>
2020-10-22 17:07:01 +02: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
Bryan Atsatt
7434a911f8 Replace echo-maven-plugin with helidon-maven-plugin log goal. (#2471)
* Replace echo-maven-plugin with helidon-maven-plugin log goal.
2020-10-21 15:13:21 -07: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
Bryan Atsatt
4204ce51ae Fix uses of jlink-image directories to use new "-jri" suffix. (#2469)
* Fix uses of jlink-image directories to use new "-jri" suffix.
2020-10-21 12:07:12 -07:00
Joe DiPol
e694b443c4 Update smoketest with changes from doing 2.1.0 release (#2464) 2020-10-16 15:37:50 -07:00
Joe DiPol
60949dc1e0 Update CHANGELOG after 2.1.0 release (#2463) 2020-10-16 15:37:36 -07:00
Joe DiPol
437fbd730d Update version to 2.1.1-SNAPSHOT (#2462) 2020-10-16 15:37:23 -07:00
Joe DiPol
8a44af7f9b Add third-party-license-report execution to archetype project poms (#2459) 2020-10-15 16:35:04 -07:00
Joe DiPol
a45582c779 Upgrade to build tools 2.1.2 (#2458) 2020-10-15 14:36:31 -07:00
Joe DiPol
73884ad0c2 Fix doc issues for config (#2449) and grpc (#2451) (#2457) 2020-10-15 13:20:37 -07:00
Joe DiPol
6e742ec8fe Update changelog in prep for 2.1.0 (#2452) 2020-10-15 12:08:16 -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
Romain Grecourt
2dd6a2fa9d Update the helidon-cli profile to declare the helidon-cli-maven-plugin as an extension instead of the helidon-maven-plugin. (#2446)
Also remove the version since the plugin is already managed.

Fixes #2398
2020-10-15 10:03:40 -07:00
David Král
80909a0926 Config now supports merging of objects and lists (#2448)
Signed-off-by: David Kral <david.k.kral@oracle.com>
2020-10-15 17:40:36 +02:00
Daniel Kec
1cb9fbd6b9 Log Kafka sending error which caused channel cancel (#2447)
Signed-off-by: Daniel Kec <daniel.kec@oracle.com>
2020-10-15 11:46:25 +02:00
Tomas Langer
69d0ae25c6 Public API to get absolute URI of the request. (#2441)
* Public API to get absolute URI of the request.
* Absolute URI uses lazy value, added test.

Signed-off-by: Tomas Langer <tomas.langer@oracle.com>
2020-10-15 10:32:44 +02:00
Tomas Langer
7b1266f1b8 Junit 4 upgrade (used in MP TCKs). (#2450)
Signed-off-by: Tomas Langer <tomas.langer@oracle.com>
2020-10-15 00:34:48 +02:00
Tomas Langer
f198919104 Attempt to start a stopped server will fail with IllegalStateException (#2439)
Signed-off-by: Tomas Langer <tomas.langer@oracle.com>
2020-10-14 19:39:59 +02:00
Daniel Kec
52734e1815 Fix NPE on error in tx #2286 (#2437)
* Fix NPE on error in tx #2286
* Switch to Single
* Fix nullability
* Fix single result handling

Signed-off-by: Daniel Kec <daniel.kec@oracle.com>
2020-10-14 12:53:23 +02:00
Joe DiPol
eb2115dc16 New licensing module (#2403)
* New licensing module to contain licensing info and HELIDON_THIRD_PARTY_LICENSES.xml
* Add third-party-license-report execution to helidon-maven-plugin
2020-10-13 16:12:39 -07:00
Tim Quinn
bde9564a60 MP health edits (#2443)
* MP health edits

Signed-off-by: tim.quinn@oracle.com <tim.quinn@oracle.com>
2020-10-13 12:09:10 -05:00
Tomas Langer
6a9ece1b0e Fix test that caused NPE in other tests. (#2440)
Signed-off-by: Tomas Langer <tomas.langer@oracle.com>
2020-10-12 19:39:18 +02:00
Tomáš Kraus
317d5e36fb DBClient integration tests for MySQL, MadiaDB, PostgreSQL and MS SQL (#2383)
* DBClient integration tests for MySQL, MadiaDB, PostgreSQL and MS SQL Server.
* Changes requested in PR.
* Fixed javadoc build issue.

Signed-off-by: Tomas Kraus <Tomas.Kraus@oracle.com>
2020-10-12 15:04:14 +02:00
Joe DiPol
154786c3e2 Third party attributions for MicroProfile Rest Client 1.4.1 (#2432)
* Update third party attributions for MicroProfile Rest Client 1.4.1
2020-10-09 14:05:15 -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
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