Commit Graph

28492 Commits

Author SHA1 Message Date
gregw f4b97fbfb8 Added missing releases and sorted in date order 2023-08-22 13:00:48 +10:00
Olivier Lamy 97e1527ed6
Jetty 12.0.x use Maven build cache for PRs and branches except jetty-12.0.x main branch (#9871)
* apply configuration/changes for build cache

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

Signed-off-by: Olivier Lamy <olamy@apache.org>
2023-08-22 02:46:46 +02:00
Joakim Erdfelt 2178dc2913
Issue #10309 - Duplicate `X-Powered-By` headers (#10310)
* Make HttpChannelState responsible for X-Powered-By / Server headers
* Remove X-Powered-By handling in HttpGenerator
2023-08-21 17:00:21 -05:00
Simone Bordet 57d46fe0f7
Merged branch 'jetty-11.0.x' into 'jetty-12.0.x'.
Signed-off-by: Simone Bordet <simone.bordet@gmail.com>
2023-08-21 10:45:57 +02:00
Simone Bordet 0de5cca81e
Merged branch 'jetty-10.0.x' into 'jetty-11.0.x'.
Signed-off-by: Simone Bordet <simone.bordet@gmail.com>
2023-08-21 10:45:27 +02:00
Simone Bordet 36faf1d369
Removed break statement wrongly introduced by #10326.
Signed-off-by: Simone Bordet <simone.bordet@gmail.com>
2023-08-21 10:45:02 +02:00
Simone Bordet 486ec677cf
Merged branch 'jetty-11.0.x' into 'jetty-12.0.x'.
Signed-off-by: Simone Bordet <simone.bordet@gmail.com>
2023-08-21 10:43:49 +02:00
Simone Bordet 295cbe4d5a
Merged branch 'jetty-10.0.x' into 'jetty-11.0.x'.
Signed-off-by: Simone Bordet <simone.bordet@gmail.com>
2023-08-21 09:01:22 +02:00
Simone Bordet e91a68923a
Fixes #8926 - HttpClient GZIPContentDecoder should remove Content-Len… (#10326)
Now Content-Length and Content-Encoding are removed/modified by the decoder.
In this way, applications have a correct sets of headers to decide whether to decode the content themselves.

Signed-off-by: Simone Bordet <simone.bordet@gmail.com>
2023-08-21 08:58:22 +02:00
Simone Bordet 7de4b6a0e9
Fixes #10315 - ServletInputStream::isReady results in IllegalArgument… (#10343)
Made sure that when HttpServletRequest.isReady() returns false, it is possible to call it again without getting an exception.

Fix ProxyServletTest.testExpect100ContinueRespond100ContinueSomeRequestContentThenFailure by flipping the input state to IDLE before unblocking a blocking read.

Signed-off-by: Simone Bordet <simone.bordet@gmail.com>
Signed-off-by: Ludovic Orban <lorban@bitronix.be>
Co-authored-by: Ludovic Orban <lorban@bitronix.be>
2023-08-21 08:51:47 +02:00
Greg Wilkins c74437f9a8
Improve contextpath javadoc (#10297)
Fix #10294 Improve getContextPath javadoc
2023-08-21 08:07:46 +10:00
Simone Bordet 660ba4bbe5
Fixes #10284 - Document all HttpFields methods (#10308)
* Added javadocs where missing and updated existing in both HttpFields and HttpField.
* Removed HttpFields.takeAsImmutable() because it had a confusing semantic.
* Deprecated HttpFields.[Mutable|Immutable]HttpFields and moved their implementation to top level package private classes.
* Deprecated HttpField.valueParameters(), as there is an identical getValueParameters()
* Fixed inconsistencies of HttpField.value, where in most cases could not be null, but in one case was allowed; now it can never be null.

Signed-off-by: Simone Bordet <simone.bordet@gmail.com>
2023-08-18 10:19:36 +02:00
gregw 13cf2dade7 Merge remote-tracking branch 'origin/jetty-11.0.x' into jetty-12.0.x
# Conflicts:
#	jetty-core/jetty-http/src/main/java/org/eclipse/jetty/http/HttpParser.java
#	jetty-core/jetty-http/src/test/java/org/eclipse/jetty/http/HttpParserTest.java
2023-08-18 17:38:44 +10:00
gregw 04eeb0c075 Merge remote-tracking branch 'origin/jetty-10.0.x' into jetty-11.0.x 2023-08-18 17:21:20 +10:00
Greg Wilkins 003e46cae4
Various cleanups in HttpParser (#10329)
Various cleanups in HttpParser
Signed-off-by: gregw <gregw@webtide.com>

---------

Signed-off-by: gregw <gregw@webtide.com>
2023-08-18 17:09:17 +10:00
Olivier Lamy 667d2c5d75
Remove Autobahn Jenkinsfile as we do not have any more Autobahn build capability in jetty-12 better to focus on TCK (#10341)
Signed-off-by: Olivier Lamy <olamy@apache.org>
2023-08-18 08:02:32 +02:00
Joakim Erdfelt 235c5086aa
Improved `MetaInfConfigurationTest` cases (#10282)
+ Establish baseline tests for MetaInfConfiguration in preparation for PRs that adjust lookup / scan behaviors of MetaInfConfiguration
2023-08-17 20:25:41 -05:00
Jan Bartel fe1831008a
Issue #10323 Fix ee10 Request.isRequestedSessionIdValid (#10331)
* Issue #10323 Fix ee10 Request.isRequestedSessionIdValid
2023-08-18 03:19:53 +02:00
Jan Bartel 5160ad29ef
Issue #10207 Update missing JSP message. (#10320)
* Issue #10207 Update missing JSP message.
2023-08-18 03:19:06 +02:00
Jan Bartel 33ef0b040a
Issue #10158 Change ignored deployment message to WARN (#10321) 2023-08-18 03:18:29 +02:00
Greg Wilkins 042841a7c6
Fix #10306 getServerHost (#10311)
Fix #10306 getServerHost
2023-08-18 10:11:39 +10:00
Joakim Erdfelt 7cd55498e2
Issue #10158 - tests to prove out XML only based deployment technique (#10209) 2023-08-17 16:48:59 -05:00
Simone Bordet cab3128d53
Fixed POM dependency.
Signed-off-by: Simone Bordet <simone.bordet@gmail.com>
2023-08-17 17:15:52 +02:00
Simone Bordet 4c9679c5b3
Merged branch 'jetty-11.0.x' into 'jetty-12.0.x'.
Signed-off-by: Simone Bordet <simone.bordet@gmail.com>
2023-08-17 17:14:59 +02:00
Simone Bordet 939f1362f6
Merged branch 'jetty-10.0.x' into 'jetty-11.0.x'.
Signed-off-by: Simone Bordet <simone.bordet@gmail.com>
2023-08-17 17:02:13 +02:00
yokotaso e33d026259 chore: Fix javadoc following the source code 2023-08-17 17:01:14 +02:00
Greg Wilkins 5aea1e44b7
Experiment/12/improve default servlet (#10222)
* Improve Jetty 12 DefaultServlet

 + don't wrap the httpServletRequest unless necessary due to wrapping
 + don't wrap the httpServletResponse unless necessary due to wrapping
 + send content asynchronously if large and unfiltered
 + Remove unused boolean return from ServletChannel.handle
 + added TODOs where range request handling could calculate content length
 + Call multipartlength, even though it is always -1
 + Use static for bytes written
2023-08-18 00:54:05 +10:00
Joakim Erdfelt 6702634494
Issue #10213 Ensuring proper usage of StartLog logging (to prevent accidental exceptions) (#10214) 2023-08-17 07:37:40 -05:00
Joakim Erdfelt fd1413db58
Issue #10274 - Improve javadoc + move internal methods (#10276)
* Improve javadoc + move internal methods
2023-08-16 16:09:36 -05:00
Simone Bordet 24792db09c Fixes #10218 - NPE in HttpChannelOverFCGI.receive()
Simplified the code, removing all leftover cruft present since FCGI was multiplexed.
Now the FCGI implementation is very similar to HTTP1.

Made HttpConnectionOverFCGI.channel final so that it cannot NPE anymore.

The client now properly handling server-side connection closes.

Signed-off-by: Simone Bordet <simone.bordet@gmail.com>
2023-08-16 15:27:59 +02:00
Simone Bordet 17c3649771
Fixes #10217 - Review ProxyConnectionFactory buffer management. (#10225)
Fixed buffer leak in ProxyConnection classes.
Introduced ArrayByteBufferPool.Tracking to test buffer leaks.

Signed-off-by: Simone Bordet <simone.bordet@gmail.com>
2023-08-16 15:26:57 +02:00
Simone Bordet 8f6a38aca8 Added documentation to migrate from Servlet to Handler.
Introduced CompletableTask to simplify Content.Source reads.

Signed-off-by: Simone Bordet <simone.bordet@gmail.com>
2023-08-16 15:02:57 +02:00
Joakim Erdfelt 5bca699464
Merge pull request #10318 from eclipse/fix/10.0.x/upgrade-guava-dep
Bump guava to 32.1.2-jre
2023-08-16 06:38:57 -05:00
Simone Bordet b126407c4e
Fixed Maven coordinates, wrongly reported just as `jetty-servlet`, to `jetty-eeN-servlet`.
Signed-off-by: Simone Bordet <simone.bordet@gmail.com>
2023-08-16 13:13:41 +02:00
Joakim Erdfelt 00e01829cf
Bump guava to 32.1.2-jre
Signed-off-by: Joakim Erdfelt <joakim.erdfelt@gmail.com>
2023-08-15 16:14:21 -05:00
Joakim Erdfelt 2ce29fc036
Merge pull request #10316 from eclipse/fix/10.0.x/websocket-deps
Cleaning up dependencies on WebSocket Server
2023-08-15 14:42:22 -05:00
Joakim Erdfelt 42443c19c2
Cleaning up dependencies on websocket to avoid pulling in annotations on websocket-server
Signed-off-by: Joakim Erdfelt <joakim.erdfelt@gmail.com>
2023-08-15 11:34:16 -05:00
Greg Wilkins cdf5035ab2
Various Cleanup in ServletChannel (#10064)
remove lambdas for clarity
 TODO Non-blocking error dispatch
 TODO isHandled does not exist
 TODO checkAndPrepareUpgrade and implement servlet upgrade?
 remove unused variables
 review javadoc (including any warnings)
 review any compiler or findbug warnings (if any)

---------

Signed-off-by: gregw <gregw@webtide.com>
2023-08-15 20:02:25 +10:00
Olivier Lamy 7f0b7d5e11
Merge branch 'jetty-10.0.x' into jetty-11.0.x 2023-08-15 15:13:03 +10:00
Olivier Lamy 98d25a788a
Update Jenkinsfile-autobahn to not use not anymore available container (#10001) 2023-08-15 07:11:26 +02:00
Simone Bordet c66f9809ba
Added documentation profile for Java 21.
Signed-off-by: Simone Bordet <simone.bordet@gmail.com>
2023-08-14 21:39:25 +02:00
Simone Bordet 8d50f55b32
Updated virtual threads documentation.
Now examples are in code, and added POM profiles to deal with virtual threads preview APIs.

Signed-off-by: Simone Bordet <simone.bordet@gmail.com>
2023-08-14 18:12:17 +02:00
Simone Bordet 5b782c18c9
Small fixes after review.
Signed-off-by: Simone Bordet <simone.bordet@gmail.com>
2023-08-14 17:58:33 +02:00
Simone Bordet 2e98d55a04
Updated Maven Artifact Changes table.
Signed-off-by: Simone Bordet <simone.bordet@gmail.com>
2023-08-12 15:50:49 +02:00
Jesse McConnell 812b8c4739
Update release-template.md
Add a link to jetty-website repo with instructions on deploying eclipse jetty website for new releases.
2023-08-11 11:38:10 -05:00
Jan Bartel 723a833db8 Merge remote-tracking branch 'origin/jetty-10.0.x' into jetty-11.0.x 2023-08-11 17:58:47 +10:00
Jan Bartel 48955d3e8f
Update question-template.md 2023-08-11 09:56:53 +02:00
Jan Bartel 883a11464d
Add Jetty Environment to issue-template.md 2023-08-11 09:54:20 +02:00
Greg Wilkins 16b00e2a13
Allow better configuration of WebAppContext classloader (#10163)
* Allow better configuration of WebAppContext classloader

Moved the creation of a WebAppContext classloader into an extensible method.

* Allow better configuration of WebAppContext classloader

EE8/9 also

* Allow better configuration of WebAppContext classloader

Only close loader if context created it.
2023-08-11 11:24:46 +10:00
Simone Bordet eb35e42cb6
Fixed documentation that was still referring to `Handler.process()` which has now become `Handler.handle()`.
Signed-off-by: Simone Bordet <simone.bordet@gmail.com>
2023-08-10 16:47:37 +02:00