Commit Graph

1054 Commits

Author SHA1 Message Date
Jan Bartel 05a0498627
Update deployment documentation for new features (#11997) 2024-07-03 05:57:43 +02:00
Greg Wilkins 5e8cc2243e
Remove buffer from pool on write failure (#11951)
* Experiment with removable buffer from pool
* Changed remove return to be release boolean
* Fixes to avoid double release
* Tracking ByteBufferPool handles remove
* Adding assert on _channelState.isLockHeldByCurrentThread()

---------

Co-authored-by: Joakim Erdfelt <joakim.erdfelt@gmail.com>
2024-06-27 18:37:09 -05:00
Joakim Erdfelt f89e3b8aee
Merge pull request #11950 from jetty/experiment/jetty-12.0.x/11932-icb-subclasses
Make succeeded and failed in ICB final + introduce onSuccess
2024-06-27 12:00:27 -05:00
Joakim Erdfelt 32c1df6bd2
Merge pull request #11967 from jetty/fix/12.0.x/flakyCSLT
Fix flaky ContextScopeListenerTest
2024-06-27 11:50:43 -05:00
Jan Bartel 893911a833
Jetty 12.0.x 11774 backport env web xml (#11966)
* Jetty 12.0.x jetty ee web xml (PR #11746)
* Resolve jetty-eeX-web.xml before jetty-web.xml
* Support jetty-eeX-env.xml, as per jetty-eeX-web.xml
* Support jetty-eeX-env.xml, as per jetty-eeX-web.xml

---------

Co-authored-by: Greg Wilkins <gregw@webtide.com>
2024-06-27 11:50:03 -05:00
Joakim Erdfelt 2caf9c11c0 Cleanup XML environment specific deployment AppProviders 2024-06-27 11:48:37 -05:00
Joakim Erdfelt c6b3095e44
Bump ee8 apache-jsp from 10.1.16 to 10.1.25 2024-06-27 06:29:52 -05:00
Olivier Lamy 4aaada0910
force jetty-client in invoker it tests
Signed-off-by: Olivier Lamy <olamy@apache.org>
2024-06-27 11:46:42 +02: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
gregw 7ee5cfc7e8 Fix flaky ContextScopeListenerTest 2024-06-27 09:47:28 +10:00
Lachlan f21bbcf40f
Merge pull request #11906 from jetty/jetty-12.0.x-coreMultiPart
Improve support for MultiPart in jetty-core
2024-06-26 12:57:35 +10:00
gregw 9a9ef89cb4 Fix flaky test 2024-06-25 12:01:17 +10:00
Lachlan Roberts c7249c7156 Merge remote-tracking branch 'origin/jetty-12.0.x' into jetty-12.0.x-coreMultiPart 2024-06-24 12:44:22 +10:00
Lachlan Roberts 9de9a487e1 PR #11906 - changes from review
Signed-off-by: Lachlan Roberts <lachlan@webtide.com>
2024-06-24 12:43:55 +10: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
Jan Bartel fd263c727d
Jetty 12.0.x object identity ee8 and ee9 (#11888)
* Fix for ee8/9 object identity
2024-06-20 07:53:53 +02:00
Ludovic Orban 9546b3ab49
Fix missing notifyRemoteAsyncErrors http config wiring (#11897)
Fixed missing notifyRemoteAsyncErrors http config wiring and add tests

Signed-off-by: Ludovic Orban <lorban@bitronix.be>
2024-06-18 20:00:04 +02:00
Lachlan 745cba4a6a
Merge pull request #11907 from jetty/jetty-12.0.x-openid
Fix openid.mod files for Jetty 12
2024-06-18 15:58:46 +10:00
Simone Bordet 8e6ab939f5
Fixes #11892 - mtls not working with http/3. (#11900)
The client certificate is now exposed in QuicheConnection, so that it can be returned by QuicStreamEndPoint.getSslSessionData().

Not much else is exposed by Quiche, so not much else that we can provide to applications, for example no TLS session id, no cipher suite, etc.

Fixed --enable-native-access command line option to run tests, as the foreign dependency is in the class-path.

Signed-off-by: Simone Bordet <simone.bordet@gmail.com>
2024-06-12 17:29:16 +02:00
Lachlan Roberts bc24f87303 Fix openid.mod files for Jetty 12
Signed-off-by: Lachlan Roberts <lachlan@webtide.com>
2024-06-12 01:11:03 +10:00
Lachlan Roberts 76cf685763 Improve support for MultiPart in jetty-core
Signed-off-by: Lachlan Roberts <lachlan@webtide.com>
2024-06-11 19:01:55 +10: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
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
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
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
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 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
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
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
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 7f9312fe20
Issue #11766 - null out ReadListener on recycle to aid GC. 2024-05-10 10:27:10 +00:00
Jan Bartel 0346b0619f
Issue #11760 fix NPE getRequestURL() for cross context (#11770)
* Issue #11760 fix NPE getRequestURL() for cross context

---------

Co-authored-by: Joakim Erdfelt <joakim.erdfelt@gmail.com>
2024-05-10 08:34:43 +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
Simone Bordet 724273be09
Fixes #11679 - Jetty 12.0.8 seems to leak connection when it encounters earlyEOF. (#11719)
* Fixes #11679 - Jetty 12.0.8 seems to leak connection when it encounters earlyEOF.
* Changed HttpConnection.RequestHandler.earlyEOF() to produce EofException instead of BadMessageException, as it is more appropriate.
* Changed handling of HttpChannelState.onFailure() to not fail the write side unless there is a pending write callback.
* Early EOF events now produce a EofException that is also an HttpException.
* Now failures only impact pending writes, so that it would be possible to write an HTTP error response.

---------

Signed-off-by: Simone Bordet <simone.bordet@gmail.com>
Co-authored-by: Joakim Erdfelt <joakim.erdfelt@gmail.com>
2024-05-03 08:56:09 -04:00
Ludovic Orban 8e07ede5f9
Fix `IllegalArgumentException: demand pending` (#11721)
* Do not attempt to read from the underlying content source when there's a demand pending, i.e.: when inputState is unready
* document the inputState FSM and improve the doc of its internal API

Signed-off-by: Ludovic Orban <lorban@bitronix.be>
Signed-off-by: Simone Bordet <simone.bordet@gmail.com>
Co-authored-by: Simone Bordet <simone.bordet@gmail.com>
2024-05-03 14:09:35 +02:00
Jan Bartel b11d1cb27f
Issue #11709 fix jetty-with-custom-class.xml file and use it (#11716)
* Issue #11709 fix jetty-with-custom-class.xml file and use it
2024-05-03 04:14:46 +02:00
Simone Bordet c5b2533fde
Fixed XML files after #11722.
Signed-off-by: Simone Bordet <simone.bordet@gmail.com>
2024-05-02 18:14:50 +02:00
Simone Bordet 42ba415318
Addendum to #11566. (#11722)
* Addendum to #11566.

Restored methods that were removed in WebAppClassLoader.Context.

Fixed method signatures for deprecated method -- they must take the deprecated ClassMatcher, not the newly introduced one.

Signed-off-by: Simone Bordet <simone.bordet@gmail.com>
2024-05-02 17:40:49 +02:00
Jan Bartel e9c71be811
Jetty 12.0.x refactor common maven plugin classes (#11651)
* Issue #11514 - Cleanup `jetty.webapp.addServerClasses` property behavior for ee10/ee9/ee8

* Merging patterns (default -> env -> config)
* Moved ClassMatcher to util
* System Server Classes
* Renaming to Hidden/Protected
* Updated for loss of dump.war
* Update jetty-core/jetty-ee/src/main/java/org/eclipse/jetty/ee/WebappClassLoading.java
* fixed OSGi tests
* Ensure default hidden server and system classes.
* Fixed ee9 OSGi to load jetty-ee
* Adding more deprecations
* Changing XML demos/tests to use new getter names
* rollback xml changes in ee9/ee8
* Fix ee8 maven plugin
* Make jetty-maven dependency optional in ee9 to match ee10

---------

Co-authored-by: Joakim Erdfelt <joakim.erdfelt@gmail.com>
Co-authored-by: gregw <gregw@webtide.com>
2024-04-25 20:53:40 -05:00
Joakim Erdfelt 91633359c3
Issue #11699 - ISE when Response does not exist. 2024-04-25 10:13:46 -05:00
Jan Bartel 23ca73e833
Issue #11677 fix AttributeNameTest (#11689) 2024-04-24 08:42:53 -05:00
Jan Bartel aef8cb1b50
Issue #11676 fix session CreationTest (#11685) 2024-04-24 08:42:29 -05:00
Ludovic Orban bb633b8a0f
Fix `HttpFields.Mutable.Wrapper.computeField()` (#11688)
* #11687 make HttpFields.Mutable.Wrapper.computeField() call onRemoveField() and remove the field when null is returned by computeFn
* #11687 replace IAE with NPE
* #11687 replace collect(Collectors.toList()) with toList()

---------

Signed-off-by: Ludovic Orban <lorban@bitronix.be>
2024-04-23 18:13:01 -05:00
Joakim Erdfelt ebe1b0e4cc
Merge pull request #11684 from jetty/fix/12.0.x/asynccontexttest-improvements
Cleaning up ee10 `AsyncContextTest`
2024-04-23 13:37:16 -05:00
Ludovic Orban a1450f5cf7
Fix for some invalid server behaviors when a client is aborting a request (#11637)
* #11631 abort instead of rethrow when the exception handler in handle() throws an exception
* fix ee10 state machine error when client aborts
* H3: wire client-sent reset packet on abort
* H3: only fail finished streams when fill interested is false

---------

Signed-off-by: Ludovic Orban <lorban@bitronix.be>
2024-04-23 08:30:21 -05:00