5.1.x#23723
Closed
xunqirui wants to merge 399 commits into
Closed
Conversation
This commit restricts the allowed HTTP methods on HiddenHttpMethodFilter (Servlet variant) to the following: PUT, DELETE, PATCH. This filter is meant to be used to simulate those methods from HTML forms sent by browsers, so no other methods are allowed. Issue: SPR-16836 (Cherry-picked from f64fa3d)
This commit restricts the allowed HTTP methods on HiddenHttpMethodFilter (Reactive variant) to the following: PUT, DELETE, PATCH. This filter is meant to be used to simulate those methods from HTML forms sent by browsers, so no other methods are allowed. Issue: SPR-16836 (Cherry-picked from a5cd01a)
Issue: SPR-16395
Issue: SPR-16395
This commit fixes the write checks for `ResourceRegionHttpMessageConverter`, which was previously not checking properly the parameterized type (e.g. in case of a `List<Something>`). Issue: SPR-16932 (Cherry-picked from 05ff8b7)
Includes removal of PathVariable's MultiValueMap support claim. Issue: SPR-16936 (cherry picked from commit 0b64bcd)
To avoid compiler issues on Eclipse.
Issue: SPR-16940
In SPR-16892, the `EncoderHttpMessageWriter` has been improved to write `"Content-Length"` HTTP response headers if the response body is of type `Mono` (i.e. the actual content length is easily accessible without buffering a possibly large response body). That change was relying on the fact that the server side is using a `ChannelSendOperator` to delay the writing of the body until the first signal is received. This strategy is not effective on the client side, since no such channel operator is used for `WebClient`. This commit improves `EncoderHttpMessageWriter` and delays, for `Mono` HTTP message bodies only, the writing of the body so that we can write the `"Content-Length"` header information once we've got the body resolved. Issue: SPR-16949 (Cherry-picked from 4a26f93)
Issues: SPR-16957
Issue: SPR-16972 (cherry picked from commit 2a15962)
Issue: SPR-16974 (cherry picked from commit 847202c)
Issue: SPR-16951 (cherry picked from commit 08e1c8c)
Issue: SPR-16908 (cherry picked from commit 7a02e43)
Issue: SPR-16981 (cherry picked from commit b68e692)
Issue: SPR-16947
Includes a clarification of ThreadPoolExecutor configuration options and a note on early AsyncConfigurer initialization. Issue: SPR-16944 Issue: SPR-16945 (cherry picked from commit d58c09b)
Issue: SPR-17392 (cherry picked from commit da23505)
Issue: SPR-17417 (cherry picked from commit 83a54db)
Issue: SPR-17413 (cherry picked from commit dd2ce20)
Issue: SPR-17414 (cherry picked from commit 1c67ef4)
Prior to this commit, `ResourceTransformerSupport.toAbsolutePath` would call `StringUtils.applyRelativePath` in all cases. But this implementation is prepending the given path even if the relative path starts with `"/"`. This commit skips the entire operation if the given path is absolute, i.e. it starts with `"/"`. Issue: SPR-17432 (Cherry-picked from 2146e13)
Also includes Apache Johnzon 1.1.10 and JRuby 9.1.17.
Prior to this commit, no `ResourceUrlProvider` was configured in WebFlux (no bean was contributed by the WebFlux infrastructure). Also, several `ResourceTransformer` instances that extend the `ResourceTransformerSupport` base class need a `ResourceUrlProvider` to resolve absolute URLs when rewriting resource URLs. At this point, no `ResourceUrlProvider` was configured and they could only resolve relative URLs. This commit contributes a new `ResourceUrlProvider` to the WebFlux configuration; this bean can be reused by the WebFlux infrastructure and application code. This also automatically configure this shared `ResourceUrlProvider` instance on the resource chain where needed. Issue: SPR-17433 (Cherry-picked from fc957e9)
Issue: SPR-17374 (cherry picked from commit dc1e3b4)
Issue: SPR-16636
After the fix #658c7f for lenient parsing of dates, the error message raised uses an HttpHeaders-formatted date. As a result the test verifying the error message fails in the beginning of the month between 1-9 because it's formatted slightly differently.
Issue: SPR-17469
Includes deprecation of NON_BRIDGED_METHODS constant. Issue: SPR-17464 (cherry picked from commit 0a7dcf1)
Issue: SPR-17448 (cherry picked from commit 59fa647)
Issue: SPR-17442 (cherry picked from commit b1f5f51)
Issue: SPR-17445 (cherry picked from commit ea3250c)
Issue: SPR-17306
Issue: SPR-17476 (cherry picked from commit 362c59c)
Issue: SPR-14514 Issue: SPR-15600
Issue: SPR-17473
Unlike 5,1, TEMPLATE_AND_VALUES is not the default encoding mode. Nevertheless when that mode is used, it should work consistently. Issue: SPR-17465
|
@xunqirui Please sign the Contributor License Agreement! Click here to manually synchronize the status of this Pull Request. See the FAQ for frequently asked questions. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
sorry,
I accidentally pressed the wrong key