Simone Bordet
9d908839cf
Fixes #10338 - ErorrHandler#writeErrorJson is private
...
Made the writeErrorXYZ() methods protected in ErrorHandler for core, ee9 and ee10.
Signed-off-by: Simone Bordet <simone.bordet@gmail.com>
2023-08-23 18:03:13 +02:00
Simone Bordet
04b53f3f15
Specifying the $JETTY_BASE directory in testVirtualThreadPoolPreview().
...
Signed-off-by: Simone Bordet <simone.bordet@gmail.com>
2023-08-23 18:01:10 +02:00
Simone Bordet
7f1d262aee
Merged branch 'jetty-11.0.x' into 'jetty-12.0.x'.
...
Signed-off-by: Simone Bordet <simone.bordet@gmail.com>
2023-08-23 15:47:15 +02:00
Greg Wilkins
8f5590c1d9
Fix #10349 ContentType set twice ( #10358 )
...
Fix #10349 which was caused by a put of ContentType being intercepted as a remove followed by an add. The remove was incorrectly forgetting the charset without reference to the source of the charset.
2023-08-23 22:31:57 +10:00
Simone Bordet
9efe3a113a
Merged branch 'jetty-10.0.x' into 'jetty-11.0.x'.
...
Signed-off-by: Simone Bordet <simone.bordet@gmail.com>
2023-08-23 13:43:48 +02:00
Simone Bordet
153f5dfae8
Fixes #10350 - Support Java 21 virtual threads
...
* Introduced module `threadpool-virtual` for Java 21.
* Updated virtual threads documentation to refer to Java 21.
* Updated requirements that the releases should use Java 21, so that the documentation can properly render the virtual threads documentation.
Signed-off-by: Simone Bordet <simone.bordet@gmail.com>
2023-08-23 11:58:24 +02:00
Lachlan Roberts
3b1e07ef99
make AuthenticationState.ServeAs as class instead of interface
...
Signed-off-by: Lachlan Roberts <lachlan@webtide.com>
2023-08-23 17:10:39 +10:00
Lachlan Roberts
dadd5b0c04
fix bug in ServletContextRequest.wrap
...
Signed-off-by: Lachlan Roberts <lachlan@webtide.com>
2023-08-23 12:37:20 +10:00
Lachlan Roberts
5a28d48b93
Move ServeAs code to Request, so it can be used elsewhere
...
Signed-off-by: Lachlan Roberts <lachlan@webtide.com>
2023-08-23 12:32:46 +10:00
Lachlan Roberts
7e875d1411
make the ServeAs.PathWrapper take HttpURI instead of String
...
Signed-off-by: Lachlan Roberts <lachlan@webtide.com>
2023-08-23 11:23:19 +10:00
Lachlan Roberts
d319431281
rename to TestUserIdentity
...
Signed-off-by: Lachlan Roberts <lachlan@webtide.com>
2023-08-23 11:06:14 +10:00
Olivier Lamy
a51c67dbb4
fix maven codeql setup ( #10270 )
...
Signed-off-by: Olivier Lamy <olamy@apache.org>
2023-08-22 23:14:20 +02:00
Ludovic Orban
1fff9787bd
#10226 - handle review comments
...
Signed-off-by: Ludovic Orban <lorban@bitronix.be>
2023-08-22 10:17:33 +02:00
Ludovic Orban
5b93435358
#10330 - handle review comments
...
Signed-off-by: Ludovic Orban <lorban@bitronix.be>
2023-08-22 10:17:33 +02:00
Ludovic Orban
ded90926f6
#10330 - fix tests after merge
...
Signed-off-by: Ludovic Orban <lorban@bitronix.be>
2023-08-22 10:17:33 +02:00
Ludovic Orban
57823bef6e
#10330 - add extra ResourceHandler range tests
...
Signed-off-by: Ludovic Orban <lorban@bitronix.be>
2023-08-22 10:17:33 +02:00
Ludovic Orban
6b1c490dbc
#10330 - simplify acceptRanges setting's handling logic
...
Signed-off-by: Ludovic Orban <lorban@bitronix.be>
2023-08-22 10:17:33 +02:00
Ludovic Orban
dd6a971f27
#10330 - Fix broken EE10 DefaultServlet range requests
...
Signed-off-by: Ludovic Orban <lorban@bitronix.be>
2023-08-22 10:17:33 +02:00
Ludovic Orban
7f0a356585
#10330 - Fix broken EE9 DefaultServlet range requests
...
Signed-off-by: Ludovic Orban <lorban@bitronix.be>
2023-08-22 10:17:33 +02:00
Lachlan Roberts
f0953e4d29
add javadoc and rename AuthenticationState.ServeAs.PathWrapper
...
Signed-off-by: Lachlan Roberts <lachlan@webtide.com>
2023-08-22 15:02:37 +10:00
gregw
f4b97fbfb8
Added missing releases and sorted in date order
2023-08-22 13:00:48 +10:00
Lachlan Roberts
2126ac262c
Issue #10337 - fixes for SizeLimitHandler
...
Signed-off-by: Lachlan Roberts <lachlan@webtide.com>
2023-08-22 10:49:24 +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
Lachlan Roberts
e6942da18e
Issue #10337 - fixes for SizeLimitHandler
...
Signed-off-by: Lachlan Roberts <lachlan@webtide.com>
2023-08-18 17:08:13 +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
Lachlan Roberts
a8832c4fa9
fixes for BasicAuthenticatorTest
...
Signed-off-by: Lachlan Roberts <lachlan@webtide.com>
2023-08-18 14:57:15 +10:00
Lachlan Roberts
9f6da9a11e
add some javadoc and cleanup to Request.get
...
Signed-off-by: Lachlan Roberts <lachlan@webtide.com>
2023-08-18 12:42:03 +10:00
Lachlan Roberts
f9f42d5303
add testing for core FormAuthenticator dispatch
...
Signed-off-by: Lachlan Roberts <lachlan@webtide.com>
2023-08-18 12:27:28 +10:00
Lachlan Roberts
6e5ea8196f
cleanups and changes from review
...
Signed-off-by: Lachlan Roberts <lachlan@webtide.com>
2023-08-18 11:55:36 +10:00
Lachlan Roberts
a418e0db71
Merge remote-tracking branch 'origin/jetty-12.0.x' into jetty-12.0.x-10295-formAuthDispatch
2023-08-18 11:43:31 +10: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