Juergen Hoeller
a5606a6c46
Polishing
2014-04-29 23:39:17 +02:00
Juergen Hoeller
779a6b79eb
Polishing
2014-04-27 22:52:51 +02:00
Juergen Hoeller
5d5f70473a
checkNotModified leniently handles IE-10-style If-Modified-Since values and silently proceeds if header value cannot be parsed at all
...
Issue: SPR-11727
(cherry picked from commit 794e859 )
2014-04-25 23:33:10 +02:00
Juergen Hoeller
ffaac0ecf3
Polishing
2014-04-18 13:23:05 +02:00
Juergen Hoeller
99a3e9cacb
Revised ByteArrayOutputStream handling in MarshallingView and co
...
Issue: SPR-11646
(cherry picked from commit 8006696 )
2014-04-02 22:56:34 +02:00
Juergen Hoeller
b80dc9d642
Polishing
...
Issue: SPR-11262
(cherry picked from commit d628025 )
2014-04-02 22:55:33 +02:00
Juergen Hoeller
623b1fc0d5
Polishing
2014-03-25 00:37:01 +01:00
Juergen Hoeller
dbd5f67498
Consistently applied appropriate ByteArrayOutputStream initial capacities across the codebase
...
Issue: SPR-11594
(cherry picked from commit dd7f54c )
2014-03-25 00:35:33 +01:00
Juergen Hoeller
ab85aa2096
BufferedImageHttpMessageConverter ignores empty MIME types
...
Issue: SPR-11581
(cherry picked from commit 90e3dbb )
2014-03-25 00:34:53 +01:00
Juergen Hoeller
9585752693
Polishing
2014-03-11 21:36:10 +01:00
Juergen Hoeller
4c9c7634d0
Log4jWebConfigurer does not try to parse empty "log4jRefreshInterval" context-param
...
Issue: SPR-11507
(cherry picked from commit 9b77157 )
2014-03-07 14:55:44 +01:00
Rossen Stoyanchev
fb0683c066
Add processExternalEntities support to OXM
...
Update OXM AbstractMarshaller to support processing of external
XML entities. By default external entities will not be processed.
Issue: SPR-11376
2014-02-18 16:01:20 -08:00
Juergen Hoeller
4886bf0708
Polishing
2014-02-14 23:46:22 +01:00
Juergen Hoeller
5da79ebca6
Related polishing
...
Issue. SPR-11428
(cherry picked from commit 9c6df76 )
2014-02-14 23:21:29 +01:00
Sam Brannen
27ad1990e3
Fix imports in SourceHttpMessageConverterTests
...
Replaced static import of org.junit.Assert.* with implicit imports in
order to avoid ambiguity between JUnit's static Assert methods and those
in org.custommonkey.xmlunit.XMLAssert.
2014-02-13 00:45:40 +01:00
Juergen Hoeller
4ac4630b0b
Polishing
2014-02-12 15:15:05 +01:00
Juergen Hoeller
29b40b9d0e
Revised InvocableHandlerMethod exception handling
...
Issue: SPR-11281
(cherry picked from commit 1a1c72c )
2014-02-12 15:13:28 +01:00
Juergen Hoeller
85e336e6da
Consistently avoid close() call on Servlet OutputStream
...
Issue: SPR-11413
(cherry picked from commit 5f1592a )
2014-02-12 15:12:43 +01:00
Juergen Hoeller
d55a173e2e
Fix issue w/ use of UrlPathHelper's urlDecode property
...
Before this change the getPathWithinServletMapping method of
UrlPathHelper could not work properly when a default servlet mapping
(i.e. "/") was used in combination with urlDecode=false. The fact that
the getServletPath() method of HttpServletRequest always returns a
decoded path was getting in the way.
Although there is no way to check Servlet mappings through the Servlet
API, this change aims to detect the given scenario and returns the full
path following the context path thus avoiding URL decoding.
Note that the same can be achieved by setting urlDecode=false and
alwaysUseFullPath=true. However this change ensures that urlDecode
works properly without having to know that.
Issue: SPR-11101
(cherry picked from commit 12598f8 )
2014-02-12 15:06:00 +01:00
Juergen Hoeller
61ab40cd7a
Upgraded to Commons FileUpload 1.3.1, TestNG 6.8.7, Hibernate 4.2.8, Joda-Time 2.2, Jackson 1.7.9
2014-02-09 00:45:07 +01:00
Juergen Hoeller
b3fb81bf72
Defensively handle ServletRequestAttributes casting in requestDestroyed callback
...
Issue: SPR-11378
(cherry picked from commit 5f24294 )
2014-02-01 11:07:33 +01:00
Juergen Hoeller
36ab65ace7
Dropped explicit paragraph on web.xml version declaration
...
Issue: SPR-11364
2014-01-28 17:32:08 +01:00
Brian Clozel
1cb9b9cf52
Add RestTemplate constructor with custom converters
...
Prior to this commit, RestTemplate's constructors were all initializing
default HTTPMessageConverters. Its API provides a way to replace
those converters with custom ones, but default converters are already
defined and initialized at that point, which can be an issue in some
cases (performance, classpath...).
This commits adds a new constructor for RestTemplate with a list
of message converters as argument. With this new constructor,
default message converters are never initialized.
Issue: SPR-11351
(cherry picked from commit 425e5a0 )
2014-01-28 12:41:36 +01:00
Juergen Hoeller
5307a87d1a
Polishing
...
Issue: SPR-11357
2014-01-24 19:19:32 +01:00
Juergen Hoeller
341d645d09
Polishing
...
Issue: SPR-11357
2014-01-24 17:46:56 +01:00
Juergen Hoeller
edb660863b
Polishing
2014-01-24 16:59:42 +01:00
Juergen Hoeller
fc361844ec
Polishing
...
Issue: SPR-11297
2014-01-22 23:57:48 +01:00
Juergen Hoeller
09c9137b75
Removed accidental backport of StAX code in 3.2.5 (restoring Java 5 compatibility)
...
Issue: SPR-11341
2014-01-21 17:12:22 +01:00
Juergen Hoeller
1f60738431
checkNotModified needs to consider HEAD as well
...
Issue: SPR-11317
(cherry picked from commit 17cc63e )
2014-01-15 23:47:16 +01:00
Juergen Hoeller
68b1eb1aba
Polishing
2014-01-15 23:46:52 +01:00
Juergen Hoeller
5fb2665d1c
Introduced "globalInitializerClasses" next to the existing "contextInitializerClasses", applying to FrameworkServlets as well
...
Issue: SPR-11314
(cherry picked from commit 91881ff )
2014-01-15 23:46:04 +01:00
Juergen Hoeller
b35050caf2
Fixed Jackson2ObjectMapperFactoryBean class name in javadoc examples
2014-01-05 02:24:13 +01:00
Juergen Hoeller
72a5737ab9
Polishing
2014-01-05 00:02:54 +01:00
Juergen Hoeller
d4b0751626
Polishing
2013-12-09 00:12:03 +01:00
Juergen Hoeller
25c7e3645b
Polishing (including removal of javadoc imports that show as package cycles in IntelliJ)
...
(cherry picked from commit 2a52dec )
2013-12-03 00:00:31 +01:00
Rossen Stoyanchev
7387cb990e
Disable ext entities in SourceHttpMessageConverter
...
This change disables the processing of external entities in
SourceHttpMessageConverter by default and provides an option to enable
it if required.
2013-11-05 09:49:13 -05:00
Rossen Stoyanchev
f9081bedb4
Add timeout async request handling to OSIV components
...
This change adds async web request timeout handling to OSIV filters
and interceptors to ensure the session or entity manager is released.
Issue: SPR-10874
2013-10-30 23:12:09 -04:00
Juergen Hoeller
a302c4ac45
Polishing
...
(cherry picked from commit 52cca48 )
2013-10-04 23:31:18 +02:00
Juergen Hoeller
5a49d657d8
AnnotationConfigWebApplicationContext allows for repeated register/scan calls
...
Restoring consistency with AnnotationConfigApplicationContext.
Issue: SPR-10852
(cherry picked from commit 01b8d93 )
2013-08-28 00:24:22 +02:00
Gabriel Axel
a17912d19e
Fix NPE in ResourceHttpMessageConverter
...
ResourceHttpMessageConverter tries to use the filename to determine the
media type, but for Resource implementations such as ByteArrayResource
it is null, which causes NullPointerException. The fix checks whether
getFilename returns null before attempting to determine the media type
by it.
Issue: SPR-10848
2013-08-22 16:14:03 -04:00
Rossen Stoyanchev
2b628a1a0d
Fix bug that ignored custom json prefix
...
Issue: SPR-10817
2013-08-08 09:39:08 -04:00
Arjen Poutsma
434735fbf6
Fix potential security risk when using Spring OXM
...
Disable by default external entity resolution when using Spring OXM
with jaxb. This prevents a XML entity from being able to resolve a
local file on the host system.
See:
https://www.owasp.org/index.php/XML_External_Entity_(XXE)_Processing
Issue: SPR-10806
(cherry picked from commit 7576274 )
2013-08-06 15:10:05 -07:00
Juergen Hoeller
20ddd3254b
DelegatingFilterProxy avoids synchronization for pre-resolved delegate
...
Issue: SPR-10413
(cherry picked from commit c26272c )
2013-08-05 22:24:58 +02:00
Rossen Stoyanchev
b0675c031e
Make date methods in HttpHeaders public
...
Issue: SPR-10713
2013-08-05 12:46:33 -04:00
Rossen Stoyanchev
0f71da5be6
Return -1 after parse error for Expires header
...
Issue: SPR-10648
2013-08-05 12:38:53 -04:00
Juergen Hoeller
ae0f23e942
Polishing
...
Issue: SPR-10752
Issue: SPR-10627
2013-07-31 22:42:27 +02:00
Rossen Stoyanchev
dc87a2211c
Make HTTP scheme parsing case-insensitive
...
Issue: SPR-10779
2013-07-30 12:33:22 -04:00
Rossen Stoyanchev
cce74b8ba2
Make the JSON prefix used in converters configurable
...
Issue: SPR-10627
2013-07-19 17:23:33 -04:00
Rossen Stoyanchev
a0f8a894f2
Cache constructor instance in WebAsyncUtils
...
Issue: SPR-10673
2013-07-18 17:48:18 -04:00
Phillip Webb
55f02db18e
'Rename' HttpHeaders.getIfNotModifiedSince()
...
Effectively rename HttpHeaders.getIfNotModifiedSince() to
getIfModifiedSince() by adding a new method and deprecating the
old one.
Issue: SPR-10600
2013-06-26 10:45:33 -07:00