Simone Bordet
092a592278
Merged branch 'jetty-11.0.x' into 'jetty-12.0.x'.
...
Signed-off-by: Simone Bordet <simone.bordet@gmail.com>
2023-03-20 10:22:23 +01:00
Joakim Erdfelt
89a519b082
Fix flaky test
2023-03-15 11:31:25 -05:00
Joakim Erdfelt
71e94a57c0
Merge pull request #9481 from eclipse/fix/12.0.x/dependency-updates-report
...
Jetty 12 - Dependency Updates and Report Script
2023-03-14 06:06:56 -05:00
Greg Wilkins
bd0186c2f7
Jetty 12.0.x 9444 servlet paths fully decoded ( #9479 )
...
getServletPath and getPathInfo will never return an encoded path segment. Instead, they will throw an IllegalArgumentException if they are called when there is a URI with violations.
Signed-off-by: gregw <gregw@webtide.com>
Co-authored-by: Joakim Erdfelt <joakim.erdfelt@gmail.com>
2023-03-11 14:13:09 +01:00
Greg Wilkins
b63c5ef611
HttpMessage interface for BadMessageException
...
Convert class BadMessageException to a HttpMessage.RuntimeException to allows different types of HttpExceptions exceptions.
This follows the pattern of the QuietException interface.
2023-03-10 09:59:05 +01:00
Jan Bartel
fc08390d4e
Path can have no elements.
2023-03-09 17:18:19 +01:00
Jan Bartel
f9a018105d
Issue #9459 empty session path in cookie ( #9477 )
2023-03-10 00:38:52 +11:00
Joakim Erdfelt
20404f760c
<onlyUpgradable> set to true
2023-03-09 06:36:35 -06:00
Joakim Erdfelt
7f52d4f3f0
Set <onlyProjectDependencies> config to true
2023-03-08 16:13:27 -06:00
Joakim Erdfelt
0feff8d35a
Ignoring jetty releases and maven alpha/beta versions
2023-03-08 16:08:09 -06:00
Joakim Erdfelt
d66058732f
Initial Dependency Update Reports
2023-03-08 15:12:28 -06:00
Joakim Erdfelt
0099491435
Merge remote-tracking branch 'origin/jetty-11.0.x' into jetty-12.0.x
2023-03-08 14:31:45 -06:00
Greg Wilkins
916cd9894d
Decode safe Path for #9444 ( #9455 )
...
Added URIUtil.decodeSafePath for EE10, to allow for %2F and %25 to remain encoded in the servlet API.
Fixed async dispatch to also safeDecode
Updated tests to expect decoded space
Apply suggestions from code review
Co-authored-by: Simone Bordet <simone.bordet@gmail.com>
2023-03-03 14:36:19 +01:00
Greg Wilkins
474136de57
#9311 Add Queued and Compound Pool implementations
...
This adds a QueuedPool that can wrap any other pool and provided a queue of Entries as a kind of cache.
2023-02-27 13:37:53 +01:00
Ludovic Orban
e819809723
Fix `HugeResourceTest` ( #9411 )
...
#9408 : restored HugeResourceTest:
- fixed double-release bug in MultiPartFormData
- used ByteBufferPool.NonPooling pool to work around #9311
Signed-off-by: Ludovic Orban <lorban@bitronix.be>
2023-02-27 09:12:50 +01:00
Simone Bordet
e4c46b1e14
Fixes #9440 - Jetty 12: HttpCookieStore should return cookies for "ws" schemes ( #9441 )
...
Now only using whether the scheme is secure in the key used to store cookies,
not the scheme string.
Signed-off-by: Simone Bordet <simone.bordet@gmail.com>
2023-02-26 23:06:03 +01:00
Greg Wilkins
6c114b00db
Improve CookieCompliance testing ( #9399 )
...
Improved handling of CookieCompliance.from method
Added tests for request and response cookie handling
Use from in jetty.xml
Signed-off-by: gregw <gregw@webtide.com>
2023-02-23 20:35:51 +11:00
Jan Bartel
3f24cc4f0a
Fix bad merges from jetty-11
2023-02-22 16:45:07 +11:00
Jan Bartel
ed04e19282
Merge remote-tracking branch 'origin/jetty-11.0.x' into jetty-12.0.x
2023-02-22 16:18:07 +11:00
gregw
af8bd97f55
Fixed Merge remote-tracking branch 'origin/jetty-11.0.x' into jetty-12.0.x
...
# Conflicts:
# jetty-core/jetty-http/src/test/java/org/eclipse/jetty/http/RFC6265CookieParserLenientTest.java
# jetty-core/jetty-http/src/test/java/org/eclipse/jetty/http/RFC6265CookieParserTest.java
# jetty-core/jetty-server/src/main/config/etc/jetty.xml
# jetty-core/jetty-server/src/test/java/org/eclipse/jetty/server/ServerHttpCookieTest.java
# jetty-ee9/jetty-ee9-nested/src/main/java/org/eclipse/jetty/ee9/nested/Cookies.java
# jetty-http/src/main/java/org/eclipse/jetty/http/HttpCookie.java
# pom.xml
2023-02-21 22:17:21 +11:00
gregw
e7d3181e7b
fixing merge
...
Signed-off-by: gregw <gregw@webtide.com>
2023-02-21 22:09:51 +11:00
gregw
b720d65f4f
Merge remote-tracking branch 'origin/jetty-11.0.x' into jetty-12.0.x
2023-02-21 22:01:31 +11:00
gregw
3bdd75f682
Set server on default handler
...
Fixes #9398 and #9322
2023-02-20 19:22:11 +11:00
Lachlan
81046650ab
Merge pull request #9356 from eclipse/jetty-12.0.x-websocket-JPMS
...
cleanup of websocket to fix JPMS warnings
2023-02-17 15:30:54 +11:00
Lachlan Roberts
41d550047f
ensure the WebSocketConnection is set on the WebSocketCoreSession
...
Signed-off-by: Lachlan Roberts <lachlan@webtide.com>
2023-02-17 14:05:48 +11:00
Lachlan Roberts
05fb8127d9
remove osgi internal imports for websocket-core
...
Signed-off-by: Lachlan Roberts <lachlan@webtide.com>
2023-02-17 11:41:03 +11:00
Lachlan Roberts
229b300f22
rename WebSocketUtil to WebSocketUtils
...
Signed-off-by: Lachlan Roberts <lachlan@webtide.com>
2023-02-17 11:37:01 +11:00
Lachlan Roberts
eb493f1b9d
make WebSocketCoreSession public & other fixes
...
Signed-off-by: Lachlan Roberts <lachlan@webtide.com>
2023-02-17 11:33:02 +11:00
Simone Bordet
a8737cd170
Javadocs for Response and Context. ( #9388 )
...
Signed-off-by: Simone Bordet <simone.bordet@gmail.com>
Co-authored-by: Greg Wilkins <gregw@webtide.com>
2023-02-17 10:47:16 +11:00
Simone Bordet
d21f38798e
Moved implementation methods ensure*() from the Response interface ( #9390 )
...
to ResponseUtils to avoid cluttering the main Response interface.
Signed-off-by: Simone Bordet <simone.bordet@gmail.com>
2023-02-17 08:50:46 +11:00
gregw
af78d13030
Fix #9387
2023-02-17 08:11:55 +11:00
Greg Wilkins
0ca6295cbc
Rename process to handle ( #9385 )
...
Renamed Request.Processor to Request.Handler
Renamed Handler.process to Handler.handle
Renamed Rule.Processor to Rule.Handler.
Renamed accordingly methods and variable.
Updated comments accordingly.
Signed-off-by: Simone Bordet <simone.bordet@gmail.com>
Co-authored-by: Simone Bordet <simone.bordet@gmail.com>
2023-02-16 18:21:12 +01:00
Lachlan Roberts
0742202ce2
remove setClassLoader from CoreSession interface
...
Signed-off-by: Lachlan Roberts <lachlan@webtide.com>
2023-02-16 13:16:00 +11:00
Lachlan
b0fa9e20cb
Merge pull request #9357 from eclipse/jetty-12.0.x-9336-ChunksPart
...
Issue #9336 - remember ContentSources to fail from ChunksPart
2023-02-16 10:40:08 +11:00
Lachlan Roberts
5775887786
Issue #9336 - remember ContentSources to fail from ChunksPart
...
Signed-off-by: Lachlan Roberts <lachlan@webtide.com>
2023-02-15 23:24:47 +11:00
gregw
033de8611b
Fixed FormAuthenticator redirection
...
Response redirect now correctly consumes content
2023-02-15 17:48:39 +11:00
Lachlan Roberts
43718f3e52
Merge remote-tracking branch 'origin/jetty-12.0.x' into jetty-12.0.x-websocket-JPMS
2023-02-15 17:12:59 +11:00
Lachlan Roberts
e25c936802
remove exporting of internal packages in ee9 & ee10 websocket
...
Signed-off-by: Lachlan Roberts <lachlan@webtide.com>
2023-02-15 16:59:29 +11:00
gregw
a15af55a56
Merge remote-tracking branch 'origin/jetty-11.0.x' into jetty-12.0.x
...
Signed-off-by: gregw <gregw@webtide.com>
2023-02-15 15:31:33 +11:00
Jan Bartel
b9b26e2a82
Jetty 12 - Restore ee10 tests ( #9214 )
...
* Restore jetty-ee10-test-http2-webapp and jetty-ee10-test-integration modules
Co-authored-by: Lachlan Roberts <lachlan@webtide.com>
2023-02-15 14:24:55 +11:00
gregw
015e3d761c
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/CookieCutter.java
# jetty-core/jetty-http/src/main/java/org/eclipse/jetty/http/CookieParser.java
# jetty-core/jetty-http/src/main/java/org/eclipse/jetty/http/RFC6265CookieParser.java
# jetty-core/jetty-http/src/test/java/org/eclipse/jetty/http/CookieCutterTest.java
# jetty-core/jetty-http/src/test/java/org/eclipse/jetty/http/CookieParserTest.java
# jetty-core/jetty-http/src/test/java/org/eclipse/jetty/http/RFC6265CookieParserTest.java
# jetty-ee9/jetty-ee9-nested/src/main/java/org/eclipse/jetty/ee9/nested/Cookies.java
# jetty-http/src/main/java/org/eclipse/jetty/http/HttpCookie.java
# jetty-http/src/test/java/org/eclipse/jetty/http/CookieCutterLenientTest.java
2023-02-15 14:22:38 +11:00
gregw
0ac3c3f7e6
Merge remote-tracking branch 'origin/jetty-11.0.x' into jetty-12.0.x
2023-02-14 18:09:33 +11:00
Lachlan Roberts
ce270cf34b
fix remaining JPMS issues in websocket-core
...
Signed-off-by: Lachlan Roberts <lachlan@webtide.com>
2023-02-14 17:25:15 +11:00
Lachlan Roberts
1d8e13220a
resolve JPMS issues with CoreSession and WebSocketCoreSession
...
Signed-off-by: Lachlan Roberts <lachlan@webtide.com>
2023-02-14 15:34:53 +11:00
Olivier Lamy
0387c6ddbc
Merge branch 'jetty-11.0.x' into jetty-12.0.x
2023-02-14 09:38:28 +10:00
gregw
4aa6bca630
Merge remote-tracking branch 'origin/jetty-11.0.x' into jetty-12.0.x
...
# Conflicts:
# jetty-core/jetty-server/src/test/java/org/eclipse/jetty/server/ForwardedRequestCustomizerTest.java
# jetty-ee9/jetty-ee9-nested/src/main/java/org/eclipse/jetty/ee9/nested/Request.java
# jetty-ee9/jetty-ee9-nested/src/test/java/org/eclipse/jetty/ee9/nested/RequestTest.java
2023-02-14 10:07:18 +11:00
Lachlan Roberts
cc40a545dc
move websocket-core-common messages and util packages out of internal
...
Signed-off-by: Lachlan Roberts <lachlan@webtide.com>
2023-02-14 09:43:25 +11:00
Simone Bordet
e5b313e379
Jetty 12 - Review client notifiers ( #9335 )
...
* Introduced ResponseListeners to reduce per-request allocation.
* Removed ResponseNotifier in favor of ResponseListeners.
* Introduced RequestListeners to reduce the per-request allocation.
* Removed RequestNotifier in favor of RequestListeners.
* Removed unnecessary sharing of HttpRequest.requestListeners.
Signed-off-by: Simone Bordet <simone.bordet@gmail.com>
2023-02-13 17:36:29 +01:00
Simone Bordet
4db0c70735
Fixes #9326 - Rename DecryptedEndPoint to SslEndPoint.
...
Signed-off-by: Simone Bordet <simone.bordet@gmail.com>
2023-02-09 22:17:51 +01:00
Lachlan Roberts
2d11517dd6
Merge remote-tracking branch 'origin/jetty-12.0.x' into jetty-12.0.x-websocket-autodemanding
2023-02-09 18:22:49 +11:00