Juergen Hoeller
799a03e98d
Polishing
10 years ago
Juergen Hoeller
13283ec918
Polishing
10 years ago
Juergen Hoeller
ca60d796a8
Clarified that getBody() never returns null
...
As the only place that historically differed, HttpComponents(Async)ClientHttpResponse returns an empty stream instead of null now.
Issue: SPR-13563
(cherry picked from commit a5f81a0 )
10 years ago
Juergen Hoeller
7202793db0
Polishing
...
(cherry picked from commit bc13cb2 )
11 years ago
Juergen Hoeller
045016ebf9
DeferredResult accessors based on volatile fields for proper visibility
...
Issue: SPR-13451
(cherry picked from commit ae0d945 )
11 years ago
Juergen Hoeller
38db9fa855
Polishing
...
(cherry picked from commit 667fc7e )
11 years ago
Juergen Hoeller
2dcf52797c
Consistent and defensive Servlet 3.0 method calls across Spring's web abstraction
...
(in particular, also working in debug mode where method references may get resolved early, so ternary expressions are to be avoided)
11 years ago
Juergen Hoeller
de0f3aec53
Undo AsyncRestTemplate's catching of Throwable in 4.1.x
...
Issue: SPR-13413
Issue: SPR-12887
11 years ago
Juergen Hoeller
856561fa6e
AsyncRestTemplate and FutureAdapter consistently throw ExecutionException
...
Issue: SPR-13413
(cherry picked from commit 2bb7164 )
11 years ago
Juergen Hoeller
a35f71964a
Polishing
11 years ago
Juergen Hoeller
7575271075
Polishing
11 years ago
Brian Clozel
2c32873309
Fix error message typo in ShallowEtagHeaderFilter
...
Issue: SPR-13194
11 years ago
Rossen Stoyanchev
c4e0f14ec4
Polish tests
11 years ago
Juergen Hoeller
38b8262e1e
XML parsing tests pass on non-English locales now, plus a revised exception message and some minor polishing
...
Issue: SPR-13136
11 years ago
Rossen Stoyanchev
9c3580d04e
Disable DTD when parsing untrusted XML input
...
Issue: SPR-13136
11 years ago
Juergen Hoeller
f1b42b7d8f
ContentCachingResponseWrapper defensively applies content length in case of sendError/sendRedirect
...
Issue: SPR-13004
(cherry picked from commit 4facb2f )
11 years ago
Juergen Hoeller
d08c0669da
Polishing
11 years ago
Juergen Hoeller
bccdefdf30
Polishing
11 years ago
Juergen Hoeller
6f7ad3b1c0
WebAsyncUtils avoids reflection for creating StandardServletAsyncWebRequest
...
Issue: SPR-13112
(cherry picked from commit 32b9ea9 )
11 years ago
Juergen Hoeller
bf38b3a4fc
Polishing
...
(cherry picked from commit 92bf32b )
11 years ago
Juergen Hoeller
6cdc208c73
Polishing
11 years ago
Juergen Hoeller
3c6f1f8352
Polishing
11 years ago
Juergen Hoeller
a8f75399f8
Javadoc fixes
11 years ago
Juergen Hoeller
ce4e795f09
Polishing
11 years ago
Juergen Hoeller
fb7476f543
InvocableHandlerMethod logs argument resolution exceptions at debug level
...
Issue: SPR-12925
(cherry picked from commit 10a51a4 )
11 years ago
Juergen Hoeller
8f6ac19f50
HttpEntity and its subclasses insist on same target type for equality
...
Issue: SPR-12910
(cherry picked from commit af272c2 )
11 years ago
Rossen Stoyanchev
b44044e36f
Allow "ws" and "wss" for isValidCorsOrigin checks
...
Issue: SPR-12956
11 years ago
Arjen Poutsma
e799554ab8
Netty4ClientHttpRequest ignores query params
...
Before this commit, Netty4ClientHttpRequest ignored query parameters
(?foo=bar). This commit fixes that.
Issue: SPR-12779
(cherry picked from commit caee78a )
11 years ago
Juergen Hoeller
35bf96763d
Polishing
11 years ago
Juergen Hoeller
52ed9b7106
Consistent javadoc param declarations for type variables
...
(cherry picked from commit d23893f )
11 years ago
Juergen Hoeller
673dac5620
Removed outdated references to Servlet 2.3/2.4
11 years ago
Juergen Hoeller
8d14e7736a
Polishing
...
(cherry picked from commit 162ee36 )
11 years ago
Juergen Hoeller
5f95ff6bfd
Optimized access to resolved bean type (avoiding BeanFactory locks)
...
Revised HandlerMethod.getBeanType() impl for both web and messaging.
In addition, HandlerMethods get created with the internal BeanFactory now.
Issue: SPR-12832
(cherry picked from commit 898c24f )
11 years ago
Juergen Hoeller
ce84fafde4
ContentCachingRequestWrapper converts IOException to IllegalStateException
...
Issue: SPR-12810
11 years ago
Juergen Hoeller
b352dbfdeb
Polishing (in particular updating javadoc references to Apache Commons)
...
(cherry picked from commit bc6a98c )
11 years ago
Rossen Stoyanchev
f42c53d9be
Support comma-separated X-Forwarded-Proto
...
Issue: SPR-12816
11 years ago
Brian Clozel
151e96cac4
Fix InputStream caching in ContentCachingReqWrapper
...
Prior to this commit, the ContentCachingRequestWrapper would immediately
consume the wrapped request's InputStream when asked for the cached
content; that caused several issues:
* the request body was read in memory even if it wasn't yet consumed by
the application, leading to inefficiencies.
* when requesting the InputStream, an empty InputStream was returned
since the original was already read.
This case only happened for form POSTs requests.
This commit makes sure that the wrapper does not alter the request
expected behavior:
* when getting the inputstream, it is wrapped in order to cache its
content
* when getting request parameters, the request body is cached and its
inputstream is consumed, as expected
Issue: SPR-12810
11 years ago
Rossen Stoyanchev
a522fa36af
Support comma-separated X-Forwarded-Port
...
Issue: SPR-12813
11 years ago
Rossen Stoyanchev
5c463a1680
Move X-Forwarded-* tests to UriComponentsBuilderTests
11 years ago
Juergen Hoeller
cb6459c271
ResponseEntity's headers(HttpHeaders) accepts null value
...
Issue: SPR-12792
(cherry picked from commit 73e8021 )
11 years ago
Juergen Hoeller
6b9e89118f
StandardMultipartFile declares itself as Serializable now
...
Issue: SPR-12795
(cherry picked from commit 5ba7b89 )
11 years ago
Juergen Hoeller
7ed7f981c9
Polishing
...
(cherry picked from commit b541fc9 )
11 years ago
Rossen Stoyanchev
410fc6d763
UriComponentsBuilder.fromHttpRequest sets port correctly
...
Cherry-picked from commit d64c48 on master
Issue: SPR-12771
11 years ago
Juergen Hoeller
7eb4679f28
RestTemplate avoids use of warn level for response errors
...
Protected handleResponse method replaces former private logResponseStatus/handleResponseError methods.
Issue: SPR-12760
(cherry picked from commit 594a14a )
11 years ago
Juergen Hoeller
6be554cba5
Polishing
...
(cherry picked from commit cc33d3f )
11 years ago
Juergen Hoeller
d77af71e9c
Revised common validation methods in AbstractMessageConverterMethodArgumentResolver
...
The protected validation methods are analogous to ModelAttributeMethodProcessor now.
Issue: SPR-12655
(cherry picked from commit 7191050 )
11 years ago
Sebastien Deleuze
5db4e4bab0
Adjust log level for invalid SockJS or Websocket requests
11 years ago
Sebastien Deleuze
7cc56e1630
Improve error handling in WebUtils.isValidOrigin()
...
With this commit, WebUtils.isValidOrigin() logs an error message instead
of throwing an IllegalArgumentException when Origin header value is
invalid (for example when it does not contain the scheme).
Issue: SPR-12697
11 years ago
Juergen Hoeller
8dbe753963
Polishing
11 years ago
Sebastien Deleuze
23fa37b08b
Change SockJS and Websocket default allowedOrigins to same origin
...
This commit adds support for a same origin check that compares
Origin header to Host header. It also changes the default setting
from all origins allowed to only same origin allowed.
Issues: SPR-12697, SPR-12685
(cherry picked from commit 6062e15 )
11 years ago