Commit Graph

541 Commits

Author SHA1 Message Date
Joakim Erdfelt 9f90cedce3
Updating to version 12.0.11 2024-06-27 18:42:08 -05:00
Ludovic Orban 6d0bddc07a
#11932 make succeeded and failed in ICB final + introduce onSuccess
Signed-off-by: Ludovic Orban <lorban@bitronix.be>
2024-06-27 11:46:18 +02:00
Joakim Erdfelt 25bb6a2104
Merge remote-tracking branch 'origin/jetty-12.0.x' into jetty-12.1.x 2024-06-21 15:28:23 -05:00
Joakim Erdfelt b15cfd125d
Update URLs for new jetty locations 2024-06-21 13:33:46 -05:00
Joakim Erdfelt aac0353092
Merge remote-tracking branch 'origin/jetty-11.0.x' into jetty-12.0.x 2024-06-21 13:30:06 -05:00
Joakim Erdfelt 3d7f6d8dc5
Update URLs for new jetty locations 2024-06-21 11:38:22 -05:00
Joakim Erdfelt aa723a2cdc
Merge remote-tracking branch 'origin/jetty-10.0.x' into jetty-11.0.x 2024-06-21 07:00:39 -05:00
Jan Bartel 8acb33349c Update doco to current version EE11 2024-06-21 10:55:08 +10:00
Joakim Erdfelt 35903ae262
Update github URL references to new location 2024-06-20 09:43:05 -05:00
Joakim Erdfelt 6bebb2ddd2
Update URL references to jetty.org 2024-06-20 09:41:42 -05:00
Joakim Erdfelt af23f51d92
Merge remote-tracking branch 'origin/jetty-12.0.x' into jetty-12.1.x 2024-06-19 16:18:15 -05:00
Jan Bartel 619c539af3
Issue #11911 Fix documentation example for Request.getHttpUri (#11916)
* Issue #11911 Fix documentation example for Request.getHttpUri
2024-06-14 11:18:31 +02:00
Jan Bartel 45562b012a
Issue #11893 fix maven helloworld example (#11896) 2024-06-11 01:53:19 +02:00
Joakim Erdfelt 8b506b4f28
Merge remote-tracking branch 'origin/release/12.0.10' into jetty-12.0.x 2024-06-04 11:39:43 -05:00
Joakim Erdfelt f653c2f658
Merge remote-tracking branch 'origin/jetty-12.0.x' into jetty-12.1.x 2024-06-04 10:48:58 -05:00
Joakim Erdfelt 3776b6c9c6
Merge remote-tracking branch 'origin/jetty-11.0.x' into jetty-12.0.x 2024-06-04 10:47:45 -05:00
Joakim Erdfelt 5d4c778ee2
Merge remote-tracking branch 'origin/jetty-10.0.x' into jetty-11.0.x 2024-06-04 10:44:24 -05:00
Jesse McConnell 08124fb38c
Update index.adoc
add version to the title to resolve jetty/jetty.website#33
2024-06-02 10:03:08 -05:00
Olivier Lamy fb1697fd07
Updating to version 12.0.11-SNAPSHOT 2024-05-30 15:23:16 +10:00
Olivier Lamy 26106dfc84
Updating to version 12.0.10 2024-05-30 14:39:40 +10:00
Lachlan bc03176224
Issue #11745 - fix the environment var for the GAE Instance in id-manager.xml (#11797)
* Issue #11745 - fix the environment var for the GAE Instance in id-manager.xml

Signed-off-by: Lachlan Roberts <lachlan@webtide.com>
2024-05-28 03:54:59 +02:00
Jan Bartel 810eccaeea Merge remote-tracking branch 'origin/jetty-12.0.x' into jetty-12.1.x 2024-05-28 10:23:00 +10:00
Olivier Lamy e4a89074f7 fix parent version
Signed-off-by: Olivier Lamy <olamy@apache.org>
2024-05-27 03:19:34 +02:00
Olivier Lamy f6ac9c4d55 Updating to version 11.0.22-SNAPSHOT 2024-05-27 03:19:34 +02:00
Olivier Lamy c5af9e265b Updating to version 11.0.21 2024-05-27 03:19:34 +02:00
Olivier Lamy 81ef1d2fb6 fix parent version
Signed-off-by: Olivier Lamy <olamy@apache.org>
2024-05-27 03:11:27 +02:00
Olivier Lamy 193cd0e995 Updating to version 10.0.22-SNAPSHOT 2024-05-27 03:11:27 +02:00
Olivier Lamy 7cbe89a433 Updating to version 10.0.21 2024-05-27 03:11:27 +02:00
Olivier Lamy b16460252f
Disable cache antora as it looks to have some bugs with forking lifecycle (#11835)
Signed-off-by: Olivier Lamy <olamy@apache.org>
2024-05-23 23:31:30 +02:00
Jan Bartel 7272937df0 Fix version on new documentation poms 2024-05-23 09:41:47 +10:00
Simone Bordet a57001530b
Merged branch 'jetty-12.0.x' into 'jetty-12.1.x'.
Signed-off-by: Simone Bordet <simone.bordet@gmail.com>
2024-05-21 00:39:34 +02:00
Dan Allen 00f322f092 migrate documentation to Antora 2024-05-21 00:37:51 +02:00
Dan Allen 3c6379b496 migrate documentation to Antora 2024-05-21 00:27:16 +02:00
Dan Allen f3bc547622 migrate documentation to Antora 2024-05-21 00:20:07 +02:00
Simone Bordet ac47ae8d22
Merged branch 'jetty-12.0.x' into 'jetty-12.1.x'.
Signed-off-by: Simone Bordet <simone.bordet@gmail.com>
2024-05-20 22:58:06 +02:00
Simone Bordet a4c297011b
Fixes #11072 - Jetty 12: CompleteCallbackHandler (#11786)
Introduced StateTrackingHandler.

StateTrackingHandler is a troubleshooting Handler that helps to identify those cases where the Handler/Request/Response APIs are used improperly.

In particular, it tracks the events described in StateTrackingHandler.Listener, such as the Handler callback not completed, or blocking demand callback, or a write callback not completed, etc.

It also provides dump() capabilities, so the current requests and their state is dumped to help troubleshooting.

Signed-off-by: Simone Bordet <simone.bordet@gmail.com>
2024-05-19 19:32:37 +02:00
Simone Bordet 66b13d5df1
Updated XML example to use ${project.basedir} instead of ${basedir}.
Signed-off-by: Simone Bordet <simone.bordet@gmail.com>
2024-05-16 19:04:48 +02:00
gregw 22ddb6db77 Merge remote-tracking branch 'origin/jetty-12.0.x' into jetty-12.1.x 2024-05-16 17:28:29 +10:00
Jan Bartel 6f2f599b17
Issue #11761 fix jetty maven doco and integration test (#11771)
* Issue #11761 fix jetty maven doco and integration test
2024-05-13 01:44:13 +02:00
Joakim Erdfelt 8e7e42201a
Updating to version 12.0.10-SNAPSHOT 2024-05-03 09:28:36 -04:00
Joakim Erdfelt efe8023327
Updating to version 12.0.9 2024-05-03 09:02:37 -04:00
gregw b11996a3c4 Introduced EE11 and jetty-12.1.x 2024-04-26 22:42:57 +10:00
Simone Bordet c10ec98b5b
Fixes #11597 - Document Request Customizers.
Documented the request customizers in the programming guide.

Signed-off-by: Simone Bordet <simone.bordet@gmail.com>
2024-04-24 18:57:16 +02:00
Simone Bordet e491fc3d30
Document the rewrite Jetty module. (#11686)
* Document the rewrite Jetty module.

Signed-off-by: Simone Bordet <simone.bordet@gmail.com>
2024-04-24 18:19:34 +02:00
Joakim Erdfelt 24f3a249c4
Merge remote-tracking branch 'refs/remotes/origin/jetty-11.0.x' into jetty-12.0.x
# Conflicts:
#	documentation/jetty-documentation/src/main/asciidoc/programming-guide/maven/jetty-maven-plugin.adoc
2024-04-19 15:13:52 -05:00
Joakim Erdfelt 326a68078c
Merge remote-tracking branch 'refs/remotes/origin/jetty-10.0.x' into jetty-11.0.x 2024-04-19 15:06:24 -05:00
Jesse McConnell 284de51564 fix broken xrefs in the documentation that need resolved before the antora migration 2024-04-19 14:05:08 -05:00
Joakim Erdfelt 766a058786
Introduce various aliases to start.jar options (#11639)
* Issue #5944 - introduce --files=<uri>|<location> alias
* Issue #5945 - introduce --skip-create-files=<moduleName> alias
* Issue #5946 - introduce --add-config-dir=<path> alias
* Updating documentation for new names
2024-04-19 11:10:42 -05:00
Greg Wilkins 30bee710f1
Move ClassMatcher to core to have a consistent fix for addServerClasses in all environments (#11566)
* Issue #11514 - Cleanup `jetty.webapp.addServerClasses` property behavior for ee10/ee9/ee8

* Fix test

* Merging patterns (default -> env -> config)

* Moved ClassMatcher to util

* Adding more deprecations

* Changing XML demos/tests to use new getter names

* rollback xml changes in ee9/ee8

---------

Co-authored-by: Joakim Erdfelt <joakim.erdfelt@gmail.com>
Co-authored-by: Jan Bartel <janb@webtide.com>
2024-04-12 17:31:47 +10:00
Joakim Erdfelt b3ef872d6b
Updating to version 12.0.9-SNAPSHOT 2024-03-29 15:20:11 -05:00
Joakim Erdfelt ffffdcc3c8
Updating to version 12.0.8 2024-03-29 14:31:57 -05:00
Ludovic Orban 89c41b2550
Cleanup Resource IO (#11364)
Refactorings to rationalize and simplify how we do IO with resources internally by introducing the IOResources helper.

Signed-off-by: Ludovic Orban <lorban@bitronix.be>
2024-03-28 11:08:44 +01:00
Simone Bordet 29bed1435f Fixes #11563 - HttpClient InputStream.read() hangs intermittently.
Clarified documentation about HttpClient request and response listener: they cannot block.

Signed-off-by: Simone Bordet <simone.bordet@gmail.com>
2024-03-25 15:17:14 +01:00
Simone Bordet bb30fdfeca Clarified documentation about using WebSocket endpoints with JPMS.
Signed-off-by: Simone Bordet <simone.bordet@gmail.com>
2024-03-25 15:16:45 +01:00
Simone Bordet 258a5e04de
Fixes #10870 - How to set HttpConfiguration.securePort when the HTTPS port is dynamic? (#11547)
Introduced NetworkConnector.Listener to notify of open/close events.
Applications can register a listener on one NetworkConnector, be notified when it opens, and configure other components (for example using the NetworkConnector.localPort).

Cleaned up ManagedSelector.CloseConnections, which had code that was not used, and fixed the close of non-connection elements such as the ServerSocketChannel and DatagramChannel (when acceptors=0).

Signed-off-by: Simone Bordet <simone.bordet@gmail.com>
2024-03-24 20:52:56 +01:00
Simone Bordet ae6f98ed47
Fixes #7647 - Document org.eclipse.jetty.client.Socks4Proxy "secure" parameter. (#11533)
Added javadocs and documentation.

Signed-off-by: Simone Bordet <simone.bordet@gmail.com>
2024-03-22 16:46:07 +01:00
Ludovic Orban 0a2382408f
Fix StatisticsHandler not receiving implicit status 200 (#11487)
#11482 introduce new onComplete event in EventsHandler and use it to record status in StatisticsHandler

Signed-off-by: Ludovic Orban <lorban@bitronix.be>
2024-03-13 17:30:33 +01:00
Joakim Erdfelt 369d9f7e2f
Merge remote-tracking branch 'origin/release/12.0.7' into jetty-12.0.x 2024-03-06 11:00:50 -06:00
Jan Bartel efafbedb27 Small fixes to jndi doco 2024-03-06 11:24:47 +01:00
Joakim Erdfelt 18b2a7c201
Updating to version 12.0.8-SNAPSHOT 2024-02-29 16:00:27 -06:00
Joakim Erdfelt c89aca8fd3
Updating to version 12.0.7 2024-02-29 15:18:56 -06:00
Simone Bordet 561b8da4dd Changed CrossOriginHandler default to allow no origin and no credentials.
This makes the default configuration more secure and explicitly requires configuration from users.

Signed-off-by: Simone Bordet <simone.bordet@gmail.com>
2024-02-29 15:47:20 +01:00
Simone Bordet 24c1140917
Fixes #8979 - Jetty 12 - HttpClientTransport network "modes". (#11368)
* Introduced oej.io.Transport as the abstraction for the low-level transport of high-level protocols.
Now protocols such as HTTP/1.1 or HTTP/2 can be transported over TCP, QUIC, Unix-Domain, memory, and possibly over other low-level custom protocols too.
* Introduced oej.client.Request.transport(Transport) to specify Transport for each request.
* Introduced Transport to [HTTP2Client|HTTP3Client].connect(...) methods.
* Introduced [Client|Server]QuicConfiguration so that it can be used in other Connectors such as MemoryConnector.
* Introduced oej.server.MemoryConnector and EndPoint.Pipe for memory communication between peers, along with a MemoryTransport.
* Introduced QuicTransport as a wrapper for other Transports, so that QUIC can now also be transported over memory.
* Improved javadocs and documentation.
* Removed usage of ClientConnector.forUnixDomain() from FastCGIProxyServlet (ee10 and ee9).
* Replaced usage of HTTP3ServerConnector with QuicServerConnector in jetty-http3.xml.
* Fixed handling of Instruction notifications in case of re-entrance.
Now first clear the list, then notify to avoid that when re-entering the same instruction is notified multiple times.
* Introduced ContentSourceRequestContent, and updated ProxyHandler to use it.

Signed-off-by: Simone Bordet <simone.bordet@gmail.com>
2024-02-26 17:24:24 +01:00
Joakim Erdfelt bfac61cd89
Issue #11424 - Document default of `jetty.deploy.scanInterval` at `0` (#11437)
+ Update documentation and defaults in mod files
2024-02-22 14:25:01 -06:00
Simone Bordet a683690678
Added documentation about `SslHandshakeListener`. (#11383)
* Added documentation about `SslHandshakeListener`.

Signed-off-by: Simone Bordet <simone.bordet@gmail.com>
2024-02-10 17:06:40 +01:00
Joakim Erdfelt fcaa004389
Fixing contribution-guide links 2024-02-06 10:34:06 -06:00
Joakim Erdfelt 4d1b05ff97
Merge remote-tracking branch 'origin/jetty-10.0.x' into jetty-11.0.x 2024-02-06 10:24:26 -06:00
Joakim Erdfelt 721b1743cb
Correct contribution-guide documentation
Signed-off-by: Joakim Erdfelt <joakim.erdfelt@gmail.com>
2024-02-06 10:24:01 -06:00
Simone Bordet 192294f9b9
Fixed javadocs links in documentation.
Signed-off-by: Simone Bordet <simone.bordet@gmail.com>
2024-02-06 15:33:42 +01:00
Joakim Erdfelt 82d9177f0c
Updating to version 12.0.7-SNAPSHOT 2024-01-29 21:04:51 -06:00
Joakim Erdfelt 78ab6e6ba1
Updating to version 12.0.6 2024-01-29 20:42:49 -06:00
Joakim Erdfelt dd641b2736
Updating to version 11.0.21-SNAPSHOT 2024-01-29 15:17:40 -06:00
Joakim Erdfelt 922f8dc188
Updating to version 11.0.20 2024-01-29 15:03:56 -06:00
Joakim Erdfelt a7d14d6874
Updating to version 10.0.21-SNAPSHOT 2024-01-29 14:58:51 -06:00
Joakim Erdfelt 3a745c71c2
Updating to version 10.0.20 2024-01-29 14:46:10 -06:00
Lachlan Roberts aedafcff42 Issue #11329 - fix artifactIds in 11->12 migration guide
Signed-off-by: Lachlan Roberts <lachlan@webtide.com>
2024-01-29 12:11:01 +11:00
Simone Bordet b5d0fd6f2f
Fixes #11096 - IllegalAccessException when invoking WebSocket endpoint methods in Jetty 12 (#11229)
Changed `JettyWebSocketFrameHandlerFactory` to use an application MethodHandle.Lookup (rather than a server one) when creating listener metadata.
This fixes the JPMS problem so that now JPMS applications do not need any additional configuration to invoke endpoints.
The (acceptable) downside is that anonymous inner classes (that are not public) cannot be used as listener endpoints.

This change affects core and EE10 WebSocket; EE9 and EE8 WebSocket have not been fixed (so they allow anonymous inner classes but are broken in JPMS).

Renamed "connectLatch" fields to "openLatch" in test classes.

Signed-off-by: Simone Bordet <simone.bordet@gmail.com>
Signed-off-by: Olivier Lamy <olamy@apache.org>
Co-authored-by: Olivier Lamy <olamy@apache.org>
2024-01-25 16:40:48 +01:00
Simone Bordet ce928e5ff1
Reorganized and refactored JettyHomeTester to introduce JPMSTester. (#11228)
* Renamed module "jetty-home-tester" to "jetty-testers".
* Moved JettyHomeTester to module jetty-testers.
* Introduced JPMSTester, refactoring common code with JettyHomeTester.
* Changed File-based APIs in favor of Path APIs.
* Introduced ProcessWrapper to simplify process forking.
* Refactored tests to follow refactoring changes.

Signed-off-by: Simone Bordet <simone.bordet@gmail.com>
2024-01-24 18:56:27 +01:00
Simone Bordet a9e564ad8c
Fixes #10220 - Implement CrossOriginHandler. (#11093)
Introduced CrossOriginHandler.
Added cross-origin Jetty module.
Added CrossOriginHandler documentation to the programming guide.
Added CrossOriginHandler documentation to the operations guide.
Added cross-origin headers to the HttpHeader enum.
Added test cases.
Deprecated ee10 CrossOriginFilter.

Signed-off-by: Simone Bordet <simone.bordet@gmail.com>
2024-01-12 09:57:21 +01:00
Joakim Erdfelt 2f3c9257d1
Results of: mvn spotless:apply 2024-01-03 10:40:38 -06:00
Simone Bordet 231d8deb8a Fixes #10870 - How to set HttpConfiguration.securePort when the HTTPS port is dynamic?
Updated and expanded documentation.
Restored compilation of documentation Java sources.

Signed-off-by: Simone Bordet <simone.bordet@gmail.com>
2024-01-03 16:39:35 +01:00
Simone Bordet 4fca6781ce Fixes #11213 - Improve programming guide WebSocket JPMS documentation
Signed-off-by: Simone Bordet <simone.bordet@gmail.com>
2024-01-03 15:53:35 +01:00
Joakim Erdfelt 9a18dc8722
Results of: mvn spotless:apply 2024-01-03 03:12:56 -06:00
Joakim Erdfelt 96eea590ee
Updating to version 12.0.6-SNAPSHOT 2023-12-18 08:25:22 -06:00
Joakim Erdfelt 3aed62e495
Updating to version 12.0.5 2023-12-18 08:05:54 -06:00
Joakim Erdfelt fd81c80194
Updating to version 11.0.20-SNAPSHOT 2023-12-15 15:09:03 -06:00
Joakim Erdfelt f781e475c8
Updating to version 11.0.19 2023-12-15 14:54:13 -06:00
Joakim Erdfelt c91e3fbc48
Updating to version 10.0.20-SNAPSHOT 2023-12-15 14:49:33 -06:00
Joakim Erdfelt 8492d1c78f
Updating to version 10.0.19 2023-12-15 14:38:06 -06:00
Lachlan 35af2d8984
Do not use HttpStream.Wrapper in SizeLimitHandler (#11051)
* Do not use HttpStream.Wrapper in SizeLimitHandler
* Updated the SizeLimitHandlerServletTest
* Udpated documentation and javadocs.

Signed-off-by: Lachlan Roberts <lachlan@webtide.com>
Signed-off-by: Simone Bordet <simone.bordet@gmail.com>
Co-authored-by: Simone Bordet <simone.bordet@gmail.com>
2023-12-15 15:11:57 +01:00
Jan Bartel d926380651
Refactor eeX plus.security and plus.annotation classes to core (#11030)
* Refactor eeX plus.security and plus.annotation classes to core
2023-12-13 06:34:55 +01:00
Jan Bartel 7fc4b74a04
Jetty 12.0.x 10856 jndi doco (#11028)
* Update JNDI doc for jetty-12
2023-12-07 02:49:32 +01:00
Simone Bordet 8638d80bd5
Fixes #10277 - Review read failures impacting writes. (#10948)
* Separated read failures from write failures.
* In this way it is possible to read even if the write side is failed and write even if the read side is failed.

Signed-off-by: Simone Bordet <simone.bordet@gmail.com>
2023-12-06 21:48:47 +01:00
Joakim Erdfelt 8597033339
Updating to version 12.0.5-SNAPSHOT 2023-11-30 13:33:03 -06:00
Joakim Erdfelt 9b415c6424
Updating to version 12.0.4 2023-11-30 13:14:15 -06:00
Simone Bordet 0ca80b9d9a
Fixes #10484 - Clarify documentation about how to make a non-blocking… (#10934)
Added documentation about non-blocking Handlers.

Signed-off-by: Simone Bordet <simone.bordet@gmail.com>
2023-11-30 17:52:16 +01:00
Jan Bartel 03425a2bd5 Change 2023-11-29 19:13:12 +11:00
Jan Bartel f6eac3ebbc Issue #10925 More updates to jetty maven plugin documentation. 2023-11-29 18:53:58 +11:00
Simone Bordet 8c10ea8a9b
Fixes #10912 - Document Request listeners (#10920)
* Fixes #10912 - Document Request listeners

* Documented Request listeners and updated javadocs.
* Removed code in HttpChannelState.onIdleTimeout() that was automatically complete the Handler callback.
* Invoking failure listeners only once (although HttpChannelState.onFailure() may be called multiple times).
* Made sure that in ChannelCallback.succeeded() the last stream send uses the ChannelResponse as Callback, like it is done in Response.write().
* Moved Request listeners tests from various test classes into RequestListenersTest.

Signed-off-by: Simone Bordet <simone.bordet@gmail.com>
2023-11-28 12:56:17 +01:00
Greg Wilkins 7dcab84b91
Fix jetty 12.0.x transient timeouts (#10844)
Fixes #10234

* Introduced transient failures in reads where a failure chunk has last=false.
* Transient failure now do not fail the handler callback.
* Improve eeN ContentProducer to more carefully assert transient and terminal errors + enable HttpInputIntegrationTest
* Do not add connection: close to the response when the error is transient
* Rework ChunksContentSource to support null chunks
* Added tests to verify the new transient failure cases
* Review all code that handles failure, and handling correctly transient failure, either by making them fatal, and/or by failing Content.Source.

Signed-off-by: Ludovic Orban <lorban@bitronix.be>
Signed-off-by: Olivier Lamy <olamy@apache.org>
Signed-off-by: Simone Bordet <simone.bordet@gmail.com>
Co-authored-by: Ludovic Orban <lorban@bitronix.be>
Co-authored-by: Olivier Lamy <olamy@apache.org>
Co-authored-by: Joakim Erdfelt <joakim.erdfelt@gmail.com>
Co-authored-by: Chad Wilson <chadw@thoughtworks.com>
Co-authored-by: Simone Bordet <simone.bordet@gmail.com>
2023-11-23 15:25:03 +01:00