Juergen Hoeller
640c8ff693
Polishing
8 years ago
Juergen Hoeller
2c8a6bb6f5
Explicitly document UriTemplate as thread-safe
...
Issue: SPR-16173
(cherry picked from commit de78202 )
8 years ago
Juergen Hoeller
dc0a934c99
MockHttpServletResponse.getDateHeader returns -1 for non-existent header
...
Includes consistent getDateHeader results in both MockHttpServletResponse variants (spring-test and spring-web)
Issue: SPR-16160
(cherry picked from commit 80a0cf7 )
8 years ago
Juergen Hoeller
9ca4de1ccf
MockHttpServletRequest.getRequestURL aligns with getServerName/Port
...
Issue: SPR-16138
(cherry picked from commit 0edf4d6 )
8 years ago
Rossen Stoyanchev
9470719cdb
Support charset config by (static) resource location
...
This commit adds support for configuring static resource locations
with a charset to be applied to relative paths.
8 years ago
Rossen Stoyanchev
97bc2762e1
Handle errors via AsyncListener
...
This is a limited backport of commit #e0678b mainly providing the fix without
exposing the onError callbacks.
Issue: SPR-16058
8 years ago
Juergen Hoeller
ab19c227d3
DefaultResponseErrorHandler.hasError tolerates unknown status codes
...
Issue: SPR-16108
8 years ago
Juergen Hoeller
b0ae8f6058
ModelAttributeMethodProcessor detects re-enabled binding declaration
...
Issue: SPR-16083
(cherry picked from commit bec1fc1 )
8 years ago
Juergen Hoeller
d473506d32
Explicit notes on ExceptionHandler root vs cause resolution
...
Issue: SPR-16074
(cherry picked from commit ea00c7c )
8 years ago
Juergen Hoeller
77bab959a3
Polishing
8 years ago
Juergen Hoeller
565b20d638
Polishing
8 years ago
Juergen Hoeller
40ba95f82e
Consistent configurer access in WebMvcConfigurationSupport
...
Issue: SPR-16017
8 years ago
Juergen Hoeller
cc70fdcbeb
Backport further refinements from the nullability efforts
...
Issue: SPR-15656
8 years ago
Juergen Hoeller
5f167fd7f8
Polishing
8 years ago
Juergen Hoeller
9fdc4404a5
Backport selected refinements from the nullability efforts
...
Issue: SPR-15656
8 years ago
Juergen Hoeller
18a3322d2f
Lenient tolerance of unknown HTTP status codes behind RestTemplate
...
Issue: SPR-15978
8 years ago
Juergen Hoeller
87df393f91
MockPart backport
...
Issue: SPR-15854
8 years ago
Juergen Hoeller
53a9697ff1
Consistent conversion of Optional array/list arrangements
...
Issue: SPR-15918
Issue: SPR-15919
Issue: SPR-15676
(cherry picked from commit 15c82af )
8 years ago
Juergen Hoeller
17f42fc97a
Polishing
9 years ago
Brian Bohl
f5d689e764
Fix StringIndexOutOfBoundsException in RestTemplate
...
Backport for commits #81dfad and #3d61f7
Issue: SPR-15900
9 years ago
Rossen Stoyanchev
681ced8fd3
Cancel WebAsyncManager thread on request timeout
...
Issue: SPR-15852
9 years ago
Rossen Stoyanchev
35248498ae
Fix regression in HttpPutFormContentFilter
...
Re-arrange the checks so that if there is no form parameter, then
immediately and unconditionally delegate to super.getParameterValues().
Or reversely if there is no super.getParameterValues() then return the
form parameter.
So the only remaining case is when combining values present in both.
In that case we'll take both only if a queryString exists.
One extra fix is to not even wrap the request if we did not parse any
form parameters at all which can happen with HttpHiddenMethodFilter.
Issue: SPR-15828, 15835
9 years ago
Rossen Stoyanchev
cd602e5904
Deprecate setContentDispositionFormData method
...
The method was orginally added under SPR-14547 but the example in it
was probably intended for use with Content-Disposition server response
header (file download) and not for a Content-Disposition header
within the body of a multipart request.
In a Spring application a multipart request is typically serialized
by the FormHttpMessageConverter and hence the Content-Disposition is
not explicitly set by the application.
9 years ago
Juergen Hoeller
c752ba5b38
Polishing
9 years ago
Juergen Hoeller
40b4276475
UriUtils.extractFileExtension properly handles all fragments
...
Issue: SPR-15786
(cherry picked from commit 13080f0 )
9 years ago
Rossen Stoyanchev
4160ced64c
Backport of relative redirect filter support
...
Issue: SPR-15717
9 years ago
Juergen Hoeller
bb6d9fabee
Expression alignment and related polishing (backported from master)
9 years ago
Juergen Hoeller
121a3bf670
Always invoke Jackson serialization with AtomicReference cause
...
Issue: SPR-15760
(cherry picked from commit 5f767a8 )
9 years ago
Rossen Stoyanchev
8d743181da
Fix MockMvc + HttpPutFormContentFilter issue
...
Issue: SPR-15753
9 years ago
Brian Clozel
d4d609318d
Include port info in HTTP headers for Netty client
...
This commit adds the port information in the "Host" HTTP request header
for the Netty-based HTTP client.
Issue: SPR-15706
(cherry-picked from commit baaa84e90 )
9 years ago
Juergen Hoeller
fee259a3c5
WebAsyncManager defensively ignores attribute type mismatch
...
Issue: SPR-15709
(cherry picked from commit c4694c3 )
9 years ago
Juergen Hoeller
016b7d753c
Fine-tune HTTP/RMI Invoker exception handling
...
Issue: SPR-15684
(cherry picked from commit 535103c )
9 years ago
Juergen Hoeller
35efdf6b51
HttpComponentsAsyncClientHttpRequestFactory supports plain HttpAsyncClient as well
...
Issue: SPR-15664
(cherry picked from commit 7b5f96c )
9 years ago
Juergen Hoeller
b35c238d27
Cleanup of duplicate semicolons
...
Issue: SPR-15654
(cherry picked from commit 779deb0 )
9 years ago
Juergen Hoeller
be93ee77e4
Debug-level log entry for any Jackson exception during canConvert
...
Issue: SPR-15582
9 years ago
Juergen Hoeller
22bf9febcc
Close InputStreams in writeResourceRegionCollection (analogous to writeResourceRegion)
...
Issue: SPR-15559
(cherry picked from commit eaac348 )
9 years ago
Rossen Stoyanchev
8c206bf477
Improve docs on forwarded headers
...
Issue: SPR-15612
9 years ago
Rossen Stoyanchev
04a96ffa27
Add removeOnly mode to ForwardedHeaderFilter
...
Issue: SPR-15610
9 years ago
Andrey Kaipov
0f8bf10aa8
Minor typo fix: form -> from
...
Closes gh-1411
9 years ago
Juergen Hoeller
81143a80c4
Wrap IOException as HttpMessageNotReadableException for RestTemplate usage
...
In the 4.3.x line, conversion exceptions do not get wrapped as RestClientException yet, so the expectation remains to receive a HttpMessageNotReadableException for conversion-level IOExceptions.
Issue: SPR-13592
9 years ago
Juergen Hoeller
9572859a35
Expect IOException instead of HttpMessageNotReadableException
9 years ago
Juergen Hoeller
78931ee3ea
Polishing
9 years ago
Juergen Hoeller
1332482c40
Polishing
9 years ago
Juergen Hoeller
dab56dbb05
GenericFilterBean lazily initializes its default environment
...
Alignment with HttpServletBean; consistent use of EnvironmentCapable.
Issue: SPR-15469
(cherry picked from commit 1ea54eb )
9 years ago
Gregory Vandenbroucke
554c3f3d7e
Full "Forwarded" header support including port number
...
Issue: SPR-15504
9 years ago
Phillip Webb
ee40310c92
Defer Charset.availableCharsets() call
...
Change the `StringHttpMessageConverter` to defer calling
Charset.availableCharsets() until absolutely necessary to help improve
startup times.
Issue: SPR-15502
9 years ago
Juergen Hoeller
a9a1f783c5
Polishing
9 years ago
Juergen Hoeller
3c8fc46568
Backported JSON converter alignment (supports method, exception messages)
...
Includes deprecation of getTypeToken method in GsonHttpMessageConverter.
Issue: SPR-15381
9 years ago
Juergen Hoeller
597fe0720f
HandlerMethod evaluates ResponseStatus annotation for early caching
...
Issue: SPR-15227
(cherry picked from commit 5986f88 )
9 years ago
Rossen Stoyanchev
546d7ddd07
Update @ControllerAdvice Javadoc
...
Issue: SPR-15432
9 years ago