162 Commits

Author SHA1 Message Date
Daniel Kec
774010ab5f Copyright space fix
Signed-off-by: Daniel Kec <daniel.kec@oracle.com>
2020-11-13 22:03:45 +01:00
Tomas Langer
e3a804216a Support for overriding configuration of security providers using simple properties. (#2511)
Signed-off-by: Tomas Langer <tomas.langer@oracle.com>
2020-11-13 17:36:31 +01:00
Daniel Kec
f97ae1bb0a JMS Reactive Messaging connector (#2282)
* JMS Connector
* Oracle AQ Connector

Signed-off-by: Daniel Kec <daniel.kec@oracle.com>
2020-11-13 13:49:11 +01: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
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
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
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
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
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
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
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
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
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
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
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
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
David Král
7d3261c7d3 Changes of the request via WebClientService are now propagated (#2321)
Change of the request via WebClientService is now supported.

Signed-off-by: David Kral <david.k.kral@oracle.com>
2020-09-07 13:26:25 +00:00
Joe DiPol
78eddfe47a Update version to 2.0.3-SNAPSHOT (#2323) 2020-09-04 11:18:57 -07:00
Daniel Kec
1824a3aa04 Tyrus support for native-image (#2097)
Signed-off-by: Daniel Kec <daniel.kec@oracle.com>
2020-09-03 17:54:03 +02:00
David Král
38e3fe8cb3 Webclient uses relative uri in request instead of full uri (#2309)
Webclient uses relative uri in request instead of full uri

Signed-off-by: David Kral <david.k.kral@oracle.com>
2020-09-03 09:49:16 +02:00
Tomas Langer
59a67b2658 Support for non-String parameters in JAX-RS for native image (#2303)
* Support for non-String parameters (query, header, path) in JAX-RS for native image.

Signed-off-by: Tomas Langer <tomas.langer@oracle.com>
2020-09-01 09:08:12 -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
Daniel Kec
499063664a Kafka message default ack npe fix (#2252)
Signed-off-by: Daniel Kec <daniel.kec@oracle.com>
2020-08-21 18:39:17 +02: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
Daniel Kec
5075b939dc Kafka connector topic pattern (#2242)
* Kafka connector topic pattern

Signed-off-by: Daniel Kec <daniel.kec@oracle.com>
2020-08-11 11:48:42 +02:00
Daniel Kec
6ecabe4b61 Native smoke test for webclient (#2112)
* Native smoke test for webclient

Signed-off-by: Daniel Kec <daniel.kec@oracle.com>
2020-08-10 12:00:04 +02:00
David Král
68ad56d260 Form params with ampersand and no value fix (#2227)
* Form params with ampersand and no value fix

Signed-off-by: David Kral <david.k.kral@oracle.com>
2020-08-04 11:01:29 +02:00
Santiago Pericasgeertsen
8d79e66bba Fixed typo.
Signed-off-by: Santiago Pericasgeertsen <santiago.pericasgeertsen@oracle.com>
2020-08-03 16:32:50 -04: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
David Král
57008e4e09 Media support for forms improved (#2144)
* Media support for forms improved

Signed-off-by: David Kral <david.k.kral@oracle.com>

* Sending multipart forms from client is now supported

Signed-off-by: David Kral <david.k.kral@oracle.com>

* checkstyle fix

Signed-off-by: David Kral <david.k.kral@oracle.com>

* spotbugs fix

Signed-off-by: David Kral <david.k.kral@oracle.com>
2020-07-20 13:12:08 -07:00
Tomas Langer
7c10e26285 Removed unnecessary plugin versions, now inherited. (#2181)
Signed-off-by: Tomas Langer <tomas.langer@oracle.com>
2020-07-17 22:56:23 +02:00
David Král
926a633ac2 Webclient keep-alive (#2139)
WebClient keep-alive support

Signed-off-by: David Kral <david.k.kral@oracle.com>
2020-07-14 19:56:02 +02:00
David Král
5239a8cf62 WebClient redirection to path fix (#2150)
Signed-off-by: David Kral <david.k.kral@oracle.com>
2020-07-13 17:33:45 +02:00
Tomas Langer
8a68523d83 Native image update (#2078)
* Native image update
* Remove use of AutomaticFeature (unsupported API)
* Remove use of context impl (unsupported API)
* Using a third-party classpath scanning tool

Signed-off-by: Tomas Langer <tomas.langer@oracle.com>
2020-07-02 23:39:47 +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
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
1c6cf71ab1 Update native image for JPA.
* use Helidon h2 driver
* move native configuration to correct modules

Signed-off-by: Tomas Langer <tomas.langer@oracle.com>
2020-06-19 16:49:13 +02:00
Tomas Kraus
8233ebb3d4 JPA tests and native-image build changes
Signed-off-by: Tomas Kraus <Tomas.Kraus@oracle.com>
2020-06-19 16:49:13 +02:00
Tomas Langer
96583b271c Native image updates (#2050)
Oracle hibernate dialect moved to Helidon configuration, so it does not emit a warning when not on classpath
Using different build flags for mp-2 tests, as it took too long
Added native-image config for new Jersey proxies
Updated Netty native options due to a new failure

Signed-off-by: Tomas Langer <tomas.langer@oracle.com>
2020-06-18 18:10:36 +02:00
Tomas Langer
b78c4b1ef0 Oracle with JPA (#2044)
Signed-off-by: Tomas Langer <tomas.langer@oracle.com>
2020-06-18 15:36:35 +02:00
Daniel Kec
c40814526d Messaging with Kafka examples (#2016)
* Bump up Kafka to 2.5.0 with scala 2.12

Signed-off-by: Daniel Kec <daniel.kec@oracle.com>
2020-06-17 20:48:07 +02:00
Tomas Langer
6b7eb53335 Database native support update (#2028)
* Database access for native image update
* Support for Oracle JDBC driver
* Support for H2 JDBC driver
* Support for mongoDB
* Updated Pokemon example to work with all of the above

Signed-off-by: Tomas Langer <tomas.langer@oracle.com>
Co-authored-by: Paul Parkinson <paul.parkinson@gmail.com>
2020-06-17 19:32:13 +02:00
Santiago Pericasgeertsen
c9a3d3488d Updated copyrights.
Signed-off-by: Santiago Pericasgeertsen <santiago.pericasgeertsen@oracle.com>
2020-06-17 13:31:31 -04:00
Santiago Pericasgeertsen
2a8d526916 Fixed copyright year.
Signed-off-by: Santiago Pericasgeertsen <santiago.pericasgeertsen@oracle.com>
2020-06-17 13:31:31 -04:00
Santiago Pericasgeertsen
b522967972 Use the Helidon connector with Jersey while running tests in this module.
Signed-off-by: Santiago Pericasgeertsen <santiago.pericasgeertsen@oracle.com>
2020-06-17 13:31:31 -04:00
David Král
8bc6a410da SSL in WebClient and WebServer changed to TLS (#2006)
WebClient SSL naming aligned with WebServer

Signed-off-by: David Kral <david.k.kral@oracle.com>
2020-06-17 10:29:49 +02: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