Commit Graph

30002 Commits

Author SHA1 Message Date
Lachlan dc28714de8
Merge pull request #11874 from jetty/jetty-12.0.x-11873-ServerResources
Issue #11873 - Server resources are not found if the server is subclassed in a different package
2024-06-04 23:38:12 +10:00
Lachlan Roberts 21f8e58e04 Issue #11873 - fixes for getDefaultFavicon and getDefaultStyleSheet in Server
Signed-off-by: Lachlan Roberts <lachlan@webtide.com>
2024-06-04 13:47:02 +10:00
Olivier Lamy ba8732ea4e
Adapt release template for Jetty 12 (#11871)
Signed-off-by: Olivier Lamy <olamy@apache.org>
2024-06-03 23:50:35 +02: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
Olivier Lamy b3fcb17981
a bit more memory
Signed-off-by: Olivier Lamy <olamy@apache.org>
2024-05-30 14:31:55 +10:00
Olivier Lamy e1c7a7ca02 commented code
Signed-off-by: Olivier Lamy <olamy@apache.org>
2024-05-30 04:25:16 +02:00
Olivier Lamy a4e186fb19 comment flaky part of the test
Signed-off-by: Olivier Lamy <olamy@apache.org>
2024-05-30 04:25:16 +02:00
Jan Bartel 4bf8e412e3 Issue #11851 export org.eclipse.jetty.ee8.websocket.javax.server 2024-05-30 04:25:16 +02:00
Simone Bordet a089fbf3ea
Fixes #9778 - Jetty 12 - Remove WriteFlusher.Listener. (#11839)
* Fixes #9778 - Jetty 12 - Remove WriteFlusher.Listener.

This listener is not necessary anymore, as the min data rate checks have been moved to a StatisticsHandler.MinimumDataRateHandler.

Signed-off-by: Simone Bordet <simone.bordet@gmail.com>
2024-05-29 10:13:25 +02: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
Greg Wilkins 042582813f
Fix #9177 dump JVM info (#11845)
Fix #9177 dump info from Runtime, Jetty.VERSION and System.getProperties
2024-05-28 10:14:48 +10:00
Greg Wilkins 7e36f3c6e9
Fix #11507 getAttribute javadoc (#11843)
Fix #11507 getAttribute javadoc.
As some stage we should consider @Nullable or @NotNull annotations...
2024-05-28 08:06:06 +10:00
Simone Bordet e782f91ef2 Fixes #1470 - Replace Timer use with Jetty Scheduler.
Removed usages of the Timer class.

Deprecated TimerScheduler.

Code cleanup in ee10 classes.

Signed-off-by: Simone Bordet <simone.bordet@gmail.com>
2024-05-27 22:38:17 +02:00
Simone Bordet 65a016d1aa Fixes #11778 - jetty-http-spi does not properly provide SPI for modules.
Fixed all module-info.java files that did not have a "provides" declaration but had META-INF/services files.

Signed-off-by: Simone Bordet <simone.bordet@gmail.com>
2024-05-27 11:05:48 +02: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 a39b93ae3e fix VERSION.TXT
Signed-off-by: Olivier Lamy <olamy@apache.org>
2024-05-27 03:19:34 +02:00
Olivier Lamy b4d01fdc86
Merge branch 'jetty-10.0.x' into jetty-11.0.x 2024-05-27 11:18:40 +10: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 326446ab30 last Jetty 10 release last as we do not want a huge VERSION.TXT
Signed-off-by: Olivier Lamy <olamy@apache.org>
2024-05-27 03:11:27 +02:00
Olivier Lamy 6cf7ce2ec8 enable maven stack trace if failure
Signed-off-by: Olivier Lamy <olamy@apache.org>
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
Simone Bordet be7491e13a Sometimes it happens that some process is listening to `connector.getLocalPort() + 1`, making this test fail.
Now using a non-allocated privileged port from IANA, that nobody should listen to, so the test should not fail.
It is not a 100% guarantee, but perhaps better than before, especially because now a port < 1024 is used.

Signed-off-by: Simone Bordet <simone.bordet@gmail.com>
2024-05-23 22:06:46 +02:00
Simone Bordet 36cdc12ab7 Fixed JPMS declarations.
Some require transitive was missing, and has been added.
In other cases, making a field private (e.g. for log instances) made the warning go away.
In another case, removed explicit dependency on websocket core exception, as it was not necessary.

Clean up the POMs for jetty-eeN-annotations, that had unnecessary dependencies.

Signed-off-by: Simone Bordet <simone.bordet@gmail.com>
2024-05-23 22:06:01 +02:00
Greg Wilkins 456fd8020a
removed unused resources (#11830) 2024-05-23 14:48:32 +10:00
Jan Bartel e0066a48ba
Issue #11791 fix suffix mapping for non default DefaultServlet usage. (#11799)
* Issue #11791 fix suffix mapping for non default DefaultServlet usage.

Co-authored-by: Greg Wilkins <gregw@webtide.com>
2024-05-23 03:34:50 +02:00
Greg Wilkins eafa7ab0d6
Fix #11756 empty byte array for no content in ChunkAccumulator (#11827)
Fix #11756 empty byte array for no content in ChunkAccumulator
2024-05-23 06:45:27 +10:00
Greg Wilkins 10d0898460
Fix #11811 insensitive header name set (#11823)
* Fix #11811 insensitive header name set

Fix #11811 insensitive header name set by:
 + Using a EnumSet and TreeSet to ensure no duplicates in the set
 + Using an ArrayList to preserve the ordering (not necessary, but useful).

* updates from review
2024-05-23 06:42:01 +10:00
Ludovic Orban 07991f41d3
Allow ContentListener and AsyncContentListener to throw Exception (#11825)
#11800 allow ContentListener and AsyncContentListener to throw Exception

Signed-off-by: Ludovic Orban <lorban@bitronix.be>
2024-05-22 09:28:16 +02:00
Greg Wilkins 1b82757854
Fix Deprecated ClassMatcher #11767 (#11769)
Fix #11767 by making deprecated ClassMatcher class wrap the util ClassMatcher

Co-authored-by: Joakim Erdfelt <joakim.erdfelt@gmail.com>
2024-05-21 10:42:33 +10:00
Greg Wilkins a1b3acb08a
Fixed header cache for unknown values (#11808)
Avoid adding the unknown marker into the CACHE index. Issue introduced in #11661 fixing #11659
2024-05-21 10:40:43 +10:00
Dan Allen 00f322f092 migrate documentation to Antora 2024-05-21 00:37:51 +02:00
Simone Bordet c069897274
Merged branch 'jetty-11.0.x' into 'jetty-12.0.x'.
Signed-off-by: Simone Bordet <simone.bordet@gmail.com>
2024-05-21 00:37:06 +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 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
Ludovic Orban c97c995642
Don't create circular throwables and don't throw StackOverflowError if one gets logged (#11793)
#11792 detect loops in throwables to avoid StackOverflowError

Signed-off-by: Ludovic Orban <lorban@bitronix.be>
2024-05-17 11:39:01 +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
Simone Bordet a9b2da533f
Fixes #11763 - Race condition in QoSHandler. (#11772)
* Fixes #11763 - Race condition in QoSHandler.

Now using a read-write lock to atomically execute expire().
This guarantees that there are no races with resume().

The concurrency between handle() and resume(), which should be the most common case, is handled by atomic data structures.

Signed-off-by: Simone Bordet <simone.bordet@gmail.com>
2024-05-14 10:37:00 +02:00
Ludovic Orban 33bc4f7376 #11777 change Index to allow null string keys to avoid having to add null checks
Signed-off-by: Ludovic Orban <lorban@bitronix.be>
2024-05-14 09:37:08 +02:00
Joakim Erdfelt 9160108b6b Issue #11776 - NPE proteection in Request.getServerPort
If the HttpURI is scheme-less, the attempt to get the port can result in a NPE
2024-05-14 09:37:08 +02:00
Ludovic Orban c54141a4cb #11736 do not rethrow already thrown exception
Signed-off-by: Ludovic Orban <lorban@bitronix.be>
2024-05-13 12:05:10 +02:00
Olivier Lamy 980576d6cb
build cache 1.2.0 (#11783)
Signed-off-by: Olivier Lamy <olamy@apache.org>
2024-05-13 10:29:59 +02:00
Simone Bordet ceaaa9167c HTTP/2 parser improvements.
Refactored length checks so that they are mostly performed once, rather than multiple times, during parsing.

Signed-off-by: Simone Bordet <simone.bordet@gmail.com>
2024-05-13 09:32:10 +02:00
Simone Bordet e8dd649520
Merged branch 'jetty-11.0.x' into 'jetty-12.0.x'.
Signed-off-by: Simone Bordet <simone.bordet@gmail.com>
2024-05-13 09:28:09 +02:00