Commit Graph

30332 Commits

Author SHA1 Message Date
Joakim Erdfelt 82e6bace2f
Merge remote-tracking branch 'origin/jetty-12.0.x' into jetty-12.1.x 2024-09-30 07:09:43 -05:00
Joakim Erdfelt e376b1a951
HttpURI.Mutable path changes should clear out any existing path violations before parsing the new path. (#12306)
* HttpURI.Mutable path changes should clear out any existing path violations before parsing the new path.

Fixes: #11298
2024-09-30 07:09:21 -05:00
Jan Bartel 2f20d1f289 Merge remote-tracking branch 'origin/jetty-12.0.x' into jetty-12.1.x 2024-09-30 17:26:31 +10:00
Jan Bartel 97ff5486ff
Jetty 12.0.x 12191 alt debug listener (#12254)
* Issue #12191 reinstate debug listener modules

---------

Co-authored-by: Greg Wilkins <gregw@webtide.com>
2024-09-30 17:15:20 +10:00
Olivier Lamy 7b592aef74
Jetty 12.1.x add Eclipse dash too usagee (#12325)
* Jetty 12.0.x add Eclipse Dash License plugin as part the build process (#12224)

* Issue #12195 add eclipse dash profile to run license-check tool
* upgrade hazelcast

---------

Signed-off-by: Olivier Lamy <olamy@apache.org>

* upgrade weld version to 6.0.0.Beta4

Signed-off-by: Olivier Lamy <olamy@apache.org>

* weld is only use for testing purpose

Signed-off-by: Olivier Lamy <olamy@apache.org>

---------

Signed-off-by: Olivier Lamy <olamy@apache.org>
2024-09-30 08:23:37 +10:00
Olivier Lamy a1dbb725da
Jetty 12.0.x add Eclipse Dash License plugin as part the build process (#12224)
* Issue #12195 add eclipse dash profile to run license-check tool
* upgrade hazelcast

---------

Signed-off-by: Olivier Lamy <olamy@apache.org>
2024-09-29 11:46:33 +10:00
Simone Bordet ce5518e257
Merged branch 'jetty-12.0.x' into 'jetty-12.1.x'.
Signed-off-by: Simone Bordet <simone.bordet@gmail.com>
2024-09-27 18:13:33 +02:00
Simone Bordet 11476a9f1c Fixes #7515 - Connection limit problem for "onAccepting" connections.
* Fixed `ManagedSelector.Accept` to emit the event "accept failed" when closed.
* Fixed `ConnectionLimit` to close connections that exceed the maximum (may happen when the connector is configured with acceptors=0).
* Added test cases.
* Added documentation.

Signed-off-by: Simone Bordet <simone.bordet@gmail.com>
2024-09-27 19:12:52 +03:00
Simone Bordet 269af78a3a
Merged branch 'jetty-12.0.x' into 'jetty-12.1.x'.
Signed-off-by: Simone Bordet <simone.bordet@gmail.com>
2024-09-27 18:12:15 +02:00
Simone Bordet bcadd0a515 Fixes #12265 - Jetty 12.0.13 fails to start when the threadpool-all-virtual module is enabled.
Added missing constructor and test case.

Signed-off-by: Simone Bordet <simone.bordet@gmail.com>
2024-09-27 19:11:28 +03:00
Simone Bordet 29aa1541b6
Merged branch 'jetty-12.0.x' into 'jetty-12.1.x'.
Signed-off-by: Simone Bordet <simone.bordet@gmail.com>
2024-09-27 17:55:34 +02:00
Simone Bordet b371002594
Issue #929 - Implement a utility class to save large downloads to a file.
* PathResponseListener now yields a PathResponse record with Path and Response.
* Code cleanups.
* Simplified test cases.
* Added documentation.

Signed-off-by: Simone Bordet <simone.bordet@gmail.com>
2024-09-27 17:16:20 +02:00
Oleksandr Krutko 03af351b14
Fixes #929 - Implement a utility class to save large downloads to a file.
Introduced `PathResponseListener`, and related test cases.

Signed-off-by: Oleksandr Krutko <alexander.krutko@gmail.com>
2024-09-27 17:14:25 +02:00
Joakim Erdfelt f4c38c433e
Issue #11092 - Allow MetaInfConfiguration parsing of `java.class.path` to support globs (#12287)
* Issue #11092 - Allow MetaInfConfiguration parsing of java.class.path to support globs
* Work with unwrapped URIs for uriPredicate (and test assertion)
2024-09-26 06:40:29 -05:00
Olivier Lamy 09b8aacc30
Remove jdk22 build (#12314)
Signed-off-by: Olivier Lamy <olamy@apache.org>
2024-09-26 06:38:22 -05:00
Jan Bartel ba0ba99919
Issue #12315 fix flakey session AsyncTest (#12316) 2024-09-26 16:45:59 +10:00
Robbie 8aa9c8b011
Use sessionRequest for wrapping HTTP stream instead of original Request. (#12303)
Add SessionHandlerTest case to ensure that flushOnResponseCommit is not broken
in the future.

Signed-off-by: Robert B. Langer <robertlanger03@gmail.com>
2024-09-26 13:36:10 +10:00
Simone Bordet 32156caedc
Merged branch 'jetty-12.0.x' into 'jetty-12.1.x'.
Signed-off-by: Simone Bordet <simone.bordet@gmail.com>
2024-09-25 17:36:53 +02:00
Simone Bordet af3ac05806
Fixes #7951 - OutputStreamContentProvider blocks forever during an HTTP2 upload after idle timeout is reached. (#12312)
Improved javadocs.

Signed-off-by: Simone Bordet <simone.bordet@gmail.com>
2024-09-25 17:34:42 +02:00
gregw 73d2b4ddf1 Merge remote-tracking branch 'origin/jetty-12.0.x' into jetty-12.1.x
# Conflicts:
#	jetty-ee10/jetty-ee10-servlet/src/main/java/org/eclipse/jetty/ee10/servlet/ServletContextHandler.java
2024-09-25 15:00:08 +10:00
Jan Bartel 04fd45d94e
Issue #12309 replaced transient keyword for SessionAuthentication.session (#12310) 2024-09-25 14:31:17 +10:00
gregw 018647d873 Added test for #11298 2024-09-25 10:42:16 +10:00
Greg Wilkins 18b9782550
Avoid list copy on reverse iteration (#12297)
This reverts/modified parts of commit 115ee1cf39.

Co-authored-by: Simone Bordet <simone.bordet@gmail.com>

---------

Co-authored-by: Simone Bordet <simone.bordet@gmail.com>
2024-09-25 07:43:01 +10:00
gregw 7367bce760 Merge remote-tracking branch 'origin/jetty-12.0.x' into jetty-12.1.x 2024-09-24 14:41:17 +10:00
Niklas Keller 1d9f10871a
Issue #12047 allow disabling opening connectors before starting (#12049) 2024-09-24 14:40:16 +10:00
Ludovic Orban cbc3ac01f2 #11841 add reproducer using jetty client
Signed-off-by: Ludovic Orban <lorban@bitronix.be>
2024-09-23 13:27:26 +02:00
Simone Bordet 3b1f38e592
Merged branch 'jetty-12.0.x' into 'jetty-12.1.x'.
Signed-off-by: Simone Bordet <simone.bordet@gmail.com>
2024-09-20 16:00:12 +02:00
Simone Bordet 115ee1cf39
Fixes #12289 - Improve ConcurrentPool concurrency. (#12290)
A call to `sweep()`, although protected by the lock for concurrent calls to `reserve()`, may be concurrent with `remove(Entry)`.

`remove(Entry)` in turn calls `entries.remove(Object)`, so that the concurrent iteration in `sweep()` over `entries` fails with an `ArrayIndexOutOfBoundsException`.

Now using the bulk `entries.removeIf(Predicate)` method in `sweep()`, so that sweeping is atomic with respect to `entries.remove(Object)`.

Fixed other occurrences of manual iteration over CopyOnWriteArrayList that may be concurrent with removals.

Signed-off-by: Simone Bordet <simone.bordet@gmail.com>
2024-09-20 15:50:39 +02:00
Simone Bordet 838b97d5d2
Merged branch 'jetty-12.0.x' into 'jetty-12.1.x'.
Signed-off-by: Simone Bordet <simone.bordet@gmail.com>
2024-09-20 15:43:50 +02:00
Simone Bordet 9c342637cc Fixed #12284 - Excessive heap consumption by SSLSessionImpl by Jetty Server with TLS 1.3 and long-lived client.
Now `SslSessionData` is stored as a field, rather than in the `SSLSession` as an attribute.
This implies a little more cost to create the `SslSessionData` per connection rather than per `SSLSession`, but it should be negligible.

Now `SslSessionData` cannot be retrieved as a `SSLSession` attribute, but we have explicit APIs to retrieve it, so it should not be a problem.

Signed-off-by: Simone Bordet <simone.bordet@gmail.com>
2024-09-20 16:41:15 +03:00
gregw acb30ab98a Merge branch 'jetty-12.0.x' into jetty-12.1.x 2024-09-19 09:41:12 +10:00
Jan Bartel 6f83639d32
Issue #12279 ensure handlers added correctly for maven plugin (#12282)
* Issue #12279 ensure handlers added correctly for maven plugin
2024-09-19 09:38:08 +10:00
Jan Bartel 41333a7712
Issue #12255 Dump CookieConfig (#12257) 2024-09-18 06:57:30 -05:00
gregw a6125e40f0 Merge remote-tracking branch 'origin/jetty-12.0.x' into jetty-12.1.x 2024-09-18 07:17:52 +10:00
Greg Wilkins dc43f3d498
Optimize request buffer release #12239 (#12240)
Release request buffer before handling when there is no content

---------

Signed-off-by: Simone Bordet <simone.bordet@gmail.com>
Co-authored-by: Simone Bordet <simone.bordet@gmail.com>
2024-09-18 07:11:32 +10:00
Olivier Lamy db1c878cbc
Merge pull request #12280 from jetty/jetty-12.1.x-test-distribution-cleanup
Jetty 12.1.x test distribution cleanup merge
2024-09-17 20:50:01 +10:00
Olivier Lamy a9513c0ae8
log to search for restart can be different depending on eexx
Signed-off-by: Olivier Lamy <olamy@apache.org>
2024-09-17 20:12:43 +10:00
Olivier Lamy 4a0ee278c1
fix logging
Signed-off-by: Olivier Lamy <olamy@apache.org>
2024-09-17 19:54:56 +10:00
Olivier Lamy fb8e237dca
need this dependency
Signed-off-by: Olivier Lamy <olamy@apache.org>
2024-09-17 19:08:41 +10:00
Olivier Lamy b89f767be6
needed dependencies
Signed-off-by: Olivier Lamy <olamy@apache.org>
2024-09-17 18:38:48 +10:00
Olivier Lamy 0c31ab7ca6
checkstyle
Signed-off-by: Olivier Lamy <olamy@apache.org>
2024-09-17 18:24:53 +10:00
Olivier Lamy efcddd330a
checkstyle
Signed-off-by: Olivier Lamy <olamy@apache.org>
2024-09-17 18:22:25 +10:00
Olivier Lamy b152630eb6
spotless
Signed-off-by: Olivier Lamy <olamy@apache.org>
2024-09-17 17:50:46 +10:00
Olivier Lamy ac18df08af
restore jetty-test-common as it is used in multiple places
Signed-off-by: Olivier Lamy <olamy@apache.org>
2024-09-17 16:55:16 +10:00
Olivier Lamy 6f69383188
fix merge
Signed-off-by: Olivier Lamy <olamy@apache.org>
2024-09-17 16:20:31 +10:00
Olivier Lamy dd172f58db
Merge branch 'jetty-12.0.x' into jetty-12.1.x 2024-09-17 16:08:57 +10:00
Olivier Lamy e52bd7a9c7
Jetty 12.0.x Simplify tests with OpenId by using an exising openid provider and avoid extra not necessary maven modules (#12274)
* use keycloak as openid provider for testing
* merge all test-distribution into a single one

---------

Signed-off-by: Olivier Lamy <olamy@apache.org>
2024-09-17 15:08:49 +10:00
Simone Bordet 9eaedb04be
Merged branch 'jetty-12.0.x' into 'jetty-12.1.x'.
Signed-off-by: Simone Bordet <simone.bordet@gmail.com>
2024-09-16 10:05:16 +02:00
Simone Bordet 8c943c4bfb Issue #12256 - Configuring Virtual Thread executor in Jetty Http client makes my Spring Boot app freeze
* Defaulted the number of selectors to 1 in HttpClientTransportOverHTTP, to align with ClientConnector.
* Improved virtual thread documentation.

Signed-off-by: Simone Bordet <simone.bordet@gmail.com>
2024-09-16 11:01:06 +03:00
Ludovic Orban 76962e966a
Merge remote-tracking branch 'origin/jetty-12.0.x' into jetty-12.1.x 2024-09-16 09:32:11 +02:00