Rossen Stoyanchev
e02ff3a0da
MimeTypeUtils uses SecureRandom
...
The prevailing current wisdom is to use the default constructor for
secure and let it pick the best algorithm for the OS.
On Java 8 (Oracle), Linux this results in "NativePRNG" which uses
/dev/random (potentially blocking) for the initial seed, and
/dev/urandom (non-blocking) for subsequent calls to nextInt.
Issue: SPR-16635
2018-03-23 21:52:30 -04:00
Rossen Stoyanchev
ff377a3836
Minor typo in docs
2018-03-23 11:11:40 -04:00
Rossen Stoyanchev
ddb2bdf8c6
Improve docs on @Controller methods in STOMP section
...
Issue: SPR-16631
2018-03-23 11:07:42 -04:00
Rossen Stoyanchev
b9ebdaaf37
Backport clean duplicate separators in resource URLs
...
Issue: SPR-16616
2018-03-21 23:18:36 -04:00
Rossen Stoyanchev
4187e04b69
Backport doc change
2018-03-21 22:47:13 -04:00
Rossen Stoyanchev
d512cca3fd
Reactor2TcpClient constructor with address supplier
...
Issue: SPR-12452
2018-03-20 11:41:54 -04:00
Rossen Stoyanchev
4bc3e0c2b4
Add SimpleEvaluationContext
...
Issue: SPR-16588
2018-03-14 16:10:28 -04:00
Sam Brannen
d57d914b26
Make method params final for use in anonymous inner class
...
Issue: SPR-16587
2018-03-13 17:10:54 +01:00
Sam Brannen
68463e2018
Support target type in JsonPath assertions for MockMvc results
...
This commit picks up where SPR-14498 left off by adding support for an
explicit target type when using JsonPath to perform an assertion against
the response content using a Hamcrest Matcher.
Specifically, there is a new overloaded value(Matcher<T>, Class<T>)
method in JsonPathResultMatchers for use with Hamcrest matchers where
the target type (i.e., Class<T>) can be specified.
Issue: SPR-16587
2018-03-13 16:06:39 +01:00
Brian Clozel
6fa9539ae2
Don't implicitly check preconditions on PUT requests
...
Prior to this commit, the `HttpEntityMethodProcessor` would check HTTP
conditions on non-safe requests (i.e. not GET/HEAD). This would prevent
Controllers from returning `ResponseEntity` containing response headers
with updated values of `"Last-Modified"` or `ETag` once the resource has
been updated.
This commit avoids those checks for non GET/HEAD requests - this code
can still be leveraged from Controllers themselves using
`ServletWebRequest::checkNotModified` methods.
Issue: SPR-15780
(cherry picked from ed7684d2b2 )
2018-03-08 20:10:25 +01:00
Yannik Hampe
ff53a26333
Make MockRestRequestMatchers independent of JUnit ( #1720 )
...
MockRestRequestMatchers was using org.junit.Assert.assertNotNull
and thus could not be used in projects that use e.g. TestNG instead
of JUnit 4.
2018-03-08 13:37:26 +01:00
Juergen Hoeller
b70d400c71
Strong recommendation for OpenPDF 1.0.5 instead of iText 2.1.7
...
Issue: SPR-16107
2018-03-07 16:54:04 +01:00
Juergen Hoeller
346d0e271d
Polishing
2018-03-07 16:24:40 +01:00
Juergen Hoeller
c15f23bf0c
Reliably expose nested cause exception message for PersistenceException
...
Issue: SPR-16559
(cherry picked from commit eb9c43d )
2018-03-07 16:23:12 +01:00
Juergen Hoeller
0962c66592
Consistent incrementer arrangement for PostgreSQL, DB2 and SAP HANA
...
Includes related polishing in core.metadata and datasource.embedded and a revision of the corresponding database definitions in sql-error-codes.
Issue: SPR-16558
(cherry picked from commit 82515a3 )
2018-03-07 16:22:52 +01:00
Juergen Hoeller
b643f7836c
Drop version check in isGetGeneratedKeysSimulated (for PostgreSQL 10)
...
Issue: SPR-16556
(cherry picked from commit 4a4f2c2 )
2018-03-07 16:22:39 +01:00
Brian Clozel
56fdda167e
Guard against invalid paths in ResourceUrlProvider
...
This commit makes sure that no `StringIndexOutOfBoundsException` is
thrown when `getForRequestUrl` is called with a URL that's shorter than
the expected context path.
Issue: SPR-16526
(cherry picked from commit 6d26e61ac7 )
2018-03-05 15:28:36 +01:00
Juergen Hoeller
017f2a8ccc
Upgrade to Animal Sniffer 1.16
2018-03-05 13:54:55 +01:00
Juergen Hoeller
f7898951bd
Correct description for class-level @Transactional with AspectJ
...
Includes isolation level clarifications.
Issue: SPR-16552
Issue: SPR-16463
2018-03-05 13:40:24 +01:00
Juergen Hoeller
bd6b7b08f3
Concurrency and exception message refinements for test transactions
...
(cherry picked from commit a0cc800 )
2018-03-05 13:40:13 +01:00
Juergen Hoeller
bc043245cc
Polishing
2018-03-03 17:18:44 +01:00
Juergen Hoeller
6e8a3fb4db
Upgrade to Groovy 2.4.14
2018-03-03 17:18:32 +01:00
Juergen Hoeller
1f12214b45
Polishing
2018-03-02 13:11:31 +01:00
Juergen Hoeller
c6bd0c9f3d
Revert MessageConsumer interrupt calls (just log wait count on shutdown)
...
Issue: SPR-16536
2018-03-02 13:09:59 +01:00
Rossen Stoyanchev
fb22915563
Correct log level
...
Issue: SPR-16528
2018-03-01 15:58:20 -05:00
Juergen Hoeller
c5c27f2963
Polishing
2018-03-01 01:48:26 +01:00
Juergen Hoeller
3e6cfb7c6d
WebApplicationContextFacesELResolver.isReadOnly returns true for WAC
...
Issue: SPR-16543
(cherry picked from commit 4781627 )
2018-03-01 01:43:19 +01:00
Juergen Hoeller
8e68ac44d2
Polishing
2018-03-01 01:12:30 +01:00
Juergen Hoeller
81c50dc674
Polishing
2018-02-28 16:29:46 +01:00
Juergen Hoeller
57aa3d1e3b
Consistent but local aspect instantiation in AspectJProxyFactory (4.3.x)
2018-02-28 15:49:48 +01:00
Juergen Hoeller
2c45b09263
Polishing
2018-02-28 15:08:09 +01:00
Juergen Hoeller
59f12635f9
Interrupt listener invoker threads on shutdown (after initial wait step)
...
Issue: SPR-16536
(cherry picked from commit 95aad9c )
2018-02-28 15:07:53 +01:00
Juergen Hoeller
901d48c803
Support for ResolvableType.getType().getTypeName() on Java 8
...
Issue: SPR-16535
(cherry picked from commit 6663d0f )
2018-02-26 17:31:12 +01:00
Juergen Hoeller
0bc7c47bea
Polishing
2018-02-26 13:24:50 +01:00
Juergen Hoeller
06e2bada0a
ConcurrentMapCache.get(key, valueLoader) avoids race condition
...
Issue: SPR-16533
2018-02-26 13:24:25 +01:00
Juergen Hoeller
8181c0237f
Enforce GMT timezone for testBindInstantFromJavaUtilDate
...
Issue: SPR-16534
(cherry picked from commit 7d89de0 )
2018-02-26 13:23:02 +01:00
Juergen Hoeller
d4af8c86b2
Polishing
2018-02-25 21:44:34 +01:00
igor-suhorukov
39ddd0f349
Polish: String function use should be optimized for single characters
...
(cherry picked from commit 49fd724 )
2018-02-25 21:44:00 +01:00
Juergen Hoeller
073e78b68d
Polishing
2018-02-25 15:04:19 +01:00
Juergen Hoeller
f9754f92f4
Mark Castor tests as deprecated
...
Issue: SPR-16219
(cherry picked from commit 85984f3 )
2018-02-25 15:04:11 +01:00
igor-suhorukov
d5f358c33c
Polish: Array designators "[]" should be on the type, not the variable
...
(cherry picked from commit c782075 )
2018-02-25 15:03:54 +01:00
Juergen Hoeller
295df21f06
Polishing
2018-02-25 00:48:00 +01:00
Juergen Hoeller
57a9e8e6dd
Efficiently merge bean name result with parent result (possibly empty)
...
(cherry picked from commit 7f58d9ede0 )
2018-02-25 00:41:51 +01:00
Juergen Hoeller
e83491fbe9
GsonHttpMessageConverter keeps output stream open (for SseEmitter)
...
Issue: SPR-16529
2018-02-23 11:02:34 +01:00
Juergen Hoeller
37ee264fbf
Local mergeStringArrays variant for Portlets (superseding StringUtils)
2018-02-22 15:48:35 +01:00
Juergen Hoeller
8b5563ecab
Deprecated StringUtils.mergeStringArrays
...
(cherry picked from commit 0f74052 )
2018-02-22 15:26:06 +01:00
Juergen Hoeller
0a3a82fd83
Upgrade to Netty 4.1.22
2018-02-22 14:30:01 +01:00
Juergen Hoeller
8b071633d3
Consistent use of ClassUtils.toClassArray (and related polishing)
2018-02-22 14:27:57 +01:00
Juergen Hoeller
caed04473e
Consistent HttpMethod identity comparisons
...
(cherry picked from commit 0de36d2 )
2018-02-18 22:28:37 +01:00
Juergen Hoeller
87abdb92da
Polishing
2018-02-16 21:02:00 +01:00