Rossen Stoyanchev
b732ff3495
Ensure mutable headers for Jetty WebFlux request
...
In Jetty 10, request headers are immutable, see
https://github.com/eclipse/jetty.project/pull/4777 , but we need to
remove/hide forwarded headers when they have been used.
See gh-27424
3 years ago
Juergen Hoeller
d84ca2ba90
Jakarta EE 9 migration
...
Upgrades many dependency declarations; removes old EJB 2.x support and outdated Servlet-based integrations (Commons FileUpload, FreeMarker JSP support, Tiles).
Closes gh-22093
Closes gh-25354
Closes gh-26185
Closes gh-27423
See gh-27424
3 years ago
Juergen Hoeller
5822f1bf85
Drop RPC-style remoting
...
Closes gh-27422
3 years ago
Juergen Hoeller
b7b078d26e
Remove Joda-Time support
...
Closes gh-27426
3 years ago
Juergen Hoeller
b74e93807e
Remove JDK 9 workarounds etc
...
See gh-17778
3 years ago
Juergen Hoeller
cf2429b0f0
Remove support for deprecated Java SecurityManager (-> JDK 17 build compatibility)
...
Includes hard JDK 9+ API dependency in CGLIB ReflectUtils (Lookup.defineClass) and removal of OutputStream spy proxy usage (avoiding invalid Mockito proxy on JDK 17)
Closes gh-26901
3 years ago
Rossen Stoyanchev
caf88ff2cc
Improve HandlerMethod#bridgedMethod initialization
...
Ensure makeAccessible is called once when the bridgedMethod is
initialized.
Closes gh-19795
3 years ago
Phillip Webb
52b03e3326
Migrate CoroutinesUtils to Java
...
Migrate `CoroutinesUtils` from Kotlin code to Java and drop the
`kotlin-coroutines` module.
This update removes the need for Kotlin tooling IDE plugins to be
installed.
Closes gh-27379
3 years ago
Sam Brannen
04e6b233ca
Upgrade to JUnit 5.8
...
Closes gh-27392
3 years ago
Brian Clozel
cecc0849a8
Upgrade to Gradle 7.2
...
This commit upgrades Gradle to 7.2.
Gradle configuration names are updated accordingly.
This also upgrades Gradle build plugins.
See gh-26870
3 years ago
Sam Brannen
c3e424c29a
Polishing
3 years ago
Rossen Stoyanchev
c23f0cd070
Polishing contribution
...
See gh-27374
3 years ago
Ruslan Stelmachenko
63ffa710d6
Include all bytes of body in UnknownContentTypeException
...
HttpMessageConverterExtractor uses MessageBodyClientHttpResponseWrapper
which may read the first byte of the response stream to check if there
is content. After that it is necessary to use the wrapper to get the
full body.
This commit ensures that when UnknownContentTypeException is raised
it gets the body through the wrapper, or otherwise the first byte is
missed if the InputStream is not markable.
Closes gh-27374
3 years ago
Sam Brannen
d8191b4808
Polish contribution
...
See gh-26984
3 years ago
Yin-Jui
417bce8be5
Add tests for MessageBodyClientHttpResponseWrapper
...
Closes gh-26984
3 years ago
Rossen Stoyanchev
bec0bb0c53
Revert "Add doOnDiscard hook for streaming mode"
...
This reverts commit 77a562dfee
.
As per findings under
https://github.com/reactor/reactor-netty/issues/1746 it looks this
wasn't the issue and isn't required.
3 years ago
Philippe Marschall
debf61b948
Remove unused private loggers
...
Closes gh-27336
3 years ago
Sam Brannen
b28f403bf8
Fix Checkstyle violation
...
See gh-27303
3 years ago
Sam Brannen
6c71cf2f96
Polishing
3 years ago
Sam Brannen
99970a5ddc
Polish contribution
...
See gh-27303
3 years ago
Erik van Paassen
462e19d417
Fix UrlPathHelper#shouldRemoveSemicolonContent() ( #27303 )
...
The checkReadOnly() method should only be called from
methods that modify properties to prevent modification
of read-only instances.
Fixes #27256
3 years ago
LEE Juchan
caf6760ddd
Fix grammatical errors in Javadoc
...
Closes gh-27298
3 years ago
Sam Brannen
6770e4b3cc
Fix and document CompositeUriComponentsContributor#hasContributors()
...
Prior to this commit, the hasContributors() method incorrectly returned
false if contributors had been configured.
This commit fixes the logic in hasContributors() and documents it.
Closes #27271
3 years ago
Rossen Stoyanchev
77a562dfee
Add doOnDiscard hook for streaming mode
...
Potential fix for issue reported at
https://github.com/reactor/reactor-netty/issues/1746
3 years ago
joshua-qa
3a35d79c72
Fix typo in DefaultPartHttpMessageReader
...
See gh-27260
3 years ago
Syuziko
eaf9deedfd
Polish tests
...
See gh-27248
3 years ago
Sam Brannen
e4b9b1fadb
Introduce setDefaultCharacterEncoding() in MockHttpServletResponse
...
Prior to this commit, it was possible to set the character encoding
in MockHttpServletResponse via setCharacterEncoding() or
setContentType(); however, those methods append "charset=..." to the
Content-Type header which may not be an acceptable side effect.
This commit addresses this shortcoming by introducing a new
setDefaultCharacterEncoding() in MockHttpServletResponse which allows
one to override the previously hard coded value of "ISO-8859-1". In
addition, setDefaultCharacterEncoding() does not modify the Content-Type
header.
The reset() method has also been updated to reset the character encoding
to the configured default character encoding.
Closes gh-27214
3 years ago
Rossen Stoyanchev
55e17ef306
Polishing contribution
...
Closes gh-27203
3 years ago
Yanming Zhou
f2be4e9320
Use MessageSource for @ExceptionHandler methods
...
Follow-up for commit bb816c123c
See gh-27203
3 years ago
Sam Brannen
5b3f11c543
Add @Nullable to setLocale in MockHttpServletResponse
...
See gh-26493
3 years ago
Sam Brannen
96ee8a3bc7
Ensure characterEncoding in MockHttpServletResponse is non-null
...
Closes gh-27219
3 years ago
Sam Brannen
403e04c0b4
Polish MockHttpServletResponse
3 years ago
Rossen Stoyanchev
6c68419073
Polishing contribution
...
Closes gh-27216
3 years ago
Moncef AOUDIA
a747cc3e91
Fix error message in SynchronossPartHttpMessageReader
3 years ago
Rossen Stoyanchev
d034a1f26d
Blockhound rule for MediaTypeFactory static initializer
...
Closes gh-26631
3 years ago
Rossen Stoyanchev
460947651a
Minor refactoring in DefaultPathContainer
...
Closes gh-27204
3 years ago
Juergen Hoeller
ba08006d52
ObjectMapper.configure(MapperFeature, boolean) is deprecated as of Jackson 2.13
...
Closes gh-27206
3 years ago
Juergen Hoeller
2594f4e058
Avoid unnecessary cause initialization in ResponseStatusException
...
Closes gh-27196
3 years ago
Rossen Stoyanchev
0b1d14cdd9
Follow-up fix, checking also "ws" and port 80 case
...
See gh-27097
3 years ago
Rossen Stoyanchev
bb816c123c
Use MessageSource in HandlerMethod for error reason
...
Closes gh-27156
3 years ago
Rossen Stoyanchev
e1f51cbce7
Check both https and wss in forwarded header checks
...
Closes gh-27097
3 years ago
Juergen Hoeller
e1c0f3b067
CommonsMultipartResolver supports configurable HTTP methods
...
Closes gh-27161
3 years ago
Juergen Hoeller
1ff8da3635
StandardServletMultipartResolver provides strict Servlet compliance option
...
Closes gh-26826
3 years ago
Juergen Hoeller
ed27ea7aa0
Restrict fallback multipart binding to POST requests with multipart/form-data
...
Closes gh-26999
See gh-26826
3 years ago
Juergen Hoeller
128689e79b
Use entrySet iterator in getBodyFromServletRequestParameters
...
Closes gh-27081
3 years ago
Rossen Stoyanchev
f9167c3df5
Improve Javadoc of ContentCachingRequestWrapper
...
Closes gh-27068
3 years ago
Rossen Stoyanchev
39442143b7
Fix and improve docs on {*var} pattern
...
Closes gh-27132
3 years ago
Juergen Hoeller
8680fdb8bc
Polishing
3 years ago
Arjen Poutsma
297880d93e
Reinstate abortOnCancel in JettyClientHttpRequest
...
This commit reinstates abortOnCancel in the ReactiveRequest builder,
which allows a cancel signal to abort the request.
See gh-26287 and gh-27112
3 years ago
Arjen Poutsma
9cbb5af622
Support request/response wrappers in JettyHttpHandlerAdapter
...
This commit makes JettyServerHttpRequest aware of
HttpServletRequestWrapper, and JettyServerHttpResponse aware of
HttpServletResponseWrapper.
Closes gh-27146
3 years ago