Commit Graph

13470 Commits

Author SHA1 Message Date
Juergen Hoeller
323977be2c Document exception handling limitations in TaskDecorator implementations
Closes gh-25231
2020-06-10 23:08:53 +02:00
Juergen Hoeller
2c1cca69e7 Polishing 2020-06-10 12:19:09 +02:00
Juergen Hoeller
00c9875122 Consistent MultiValueMap behavior for empty list values
Closes gh-25227
2020-06-10 12:17:44 +02:00
Juergen Hoeller
2010956076 WebSphereUowTransactionManager sets timeout for actual transaction only
Closes gh-25225
2020-06-10 12:16:59 +02:00
Juergen Hoeller
9c73023e5a Avoid ClassCastException on IllegalArgumentException from sync invocation
Closes gh-25223
2020-06-10 12:16:19 +02:00
Juergen Hoeller
700fedef3e Consistent not-null assertions for configured interceptors
Closes gh-25221
2020-06-10 12:16:01 +02:00
Juergen Hoeller
31cda09c93 Avoid full synchronization in refreshable getBeanFactory() implementation
Closes gh-25219
2020-06-10 12:15:07 +02:00
Spring Buildmaster
16d4e0e6c4 Next Development Version 2020-04-28 09:27:37 +00:00
Juergen Hoeller
6893207998 Polishing 2020-04-27 14:55:25 +02:00
Rossen Stoyanchev
85c5a0c1a9 Escape quoted filename in HttpHeaders
This is primarily to align with similar changes applied to
ContentDisposition in 5.x.

Closes gh-24580
2020-04-21 08:28:42 +01:00
Sam Brannen
f60bb825b0 Retain brackets for IPV6 address in MockHttpServletRequest
According to the Javadoc for ServletRequest's getServerName() method,
when the `Host` header is set, the server name is "the value of the
part before ':' in the Host header value ...". For a value representing
an IPV6 address such as `[::ffff:abcd:abcd]`, the enclosing square
brackets should therefore not be stripped from the enclosed IPV6
address.

However, the changes made in conjunction with gh-16704 introduced a
regression in Spring Framework 4.1 for the getServerName() method in
MockHttpServletRequest by stripping the enclosing brackets from the
IPV6 address in the `Host` header. Similarly, the changes made in
conjunction with gh-20686 introduced a regression in Spring Framework
4.3.13 and 5.0.2 in the getRequestURL() method in
MockHttpServletRequest by delegating to the getServerName() method
which strips the enclosing brackets.

This commit fixes the implementation of getServerName() so that the
enclosing brackets are no longer stripped from an IPV6 address in the
`Host` header. The implementation of getRequestURL() is therefore also
fixed.

In addition, in order to avoid a NullPointerException, the
implementations of getServerName() and getServerPort() now assert that
an IPV6 address present in the `Host` header correctly contains an
opening and closing bracket and throw an IllegalStateException if that
is not the case.

Closes gh-24916
2020-04-17 17:24:52 +02:00
Juergen Hoeller
f929109415 Close-suppressing Connection proxy exposes target isClosed() state
Closes gh-24853
2020-04-03 22:00:47 +02:00
Juergen Hoeller
eb81337e69 Clear by-type cache in case of no pre-existing bean definition as well
Closes gh-24852
2020-04-03 22:00:42 +02:00
Juergen Hoeller
01ec5d83e6 Polishing 2020-03-24 01:31:58 +01:00
Juergen Hoeller
6e579b0474 Polishing 2020-03-13 23:54:13 +01:00
Juergen Hoeller
322d7bed8a Polishing 2020-02-12 18:20:02 +01:00
Juergen Hoeller
ef1be1723e Consistent ROLE_INFRASTRUCTURE declarations for configuration classes
Closes gh-24509
2020-02-12 18:17:20 +01:00
Sam Brannen
2dcce8ca31 Upgrade to Gradle 4.10.2
Due to an upgrade of the Artifactory publication plugin on the CI
server, we need to upgrade the build for 4.3.x to Gradle 4.x.

Closes gh-24392
2020-01-17 18:24:57 +01:00
Sam Brannen
032100ce55 Include Objenesis NOTICE file contents in binary distributions
Closes gh-24326
2020-01-16 10:57:56 +01:00
Spring Buildmaster
444338160e Next Development Version 2020-01-14 11:07:05 +00:00
Sam Brannen
58d11989ce Document Objenesis license in license.txt
See gh-24340
2020-01-13 16:15:36 +01:00
Sam Brannen
2e132bd62b Disable annotation processing warning in spring-test
This commit disables warnings for annotation processing in spring-test
in order to get the build passing again after it mysteriously started
failing in 2020.
2020-01-13 14:31:25 +01:00
Sam Brannen
3cbd4a94ce Update ASM and CBLIB versions in license.txt 2020-01-13 13:27:57 +01:00
Juergen Hoeller
71cd792e2a Polishing 2020-01-10 14:47:52 +01:00
Juergen Hoeller
33dc3b0e50 Thread-safe compiled expression evaluation in SpelExpression
Closes gh-24265
2020-01-10 14:47:29 +01:00
Juergen Hoeller
a10f9f280f Polishing 2019-12-09 15:35:52 +01:00
Juergen Hoeller
dcedd29deb Polishing 2019-12-01 11:11:42 +01:00
Juergen Hoeller
9404a8a108 Polishing 2019-11-20 18:06:01 +01:00
Juergen Hoeller
ee2fe1deb1 Avoid substring allocation in StringUtils.replace
Closes gh-24023
2019-11-19 15:12:01 +01:00
Juergen Hoeller
f190168095 Revise getElementTypeDescriptor javadoc (no IllegalStateException)
Closes gh-23996
2019-11-14 18:48:28 +01:00
Juergen Hoeller
e1f950764e Minor internal refinements (backported from master) 2019-11-13 18:11:44 +01:00
Juergen Hoeller
9cad93093a Support for new MySQL 8 error code 3572
Closes gh-23972
2019-11-13 17:49:00 +01:00
endtak
b3fb79ea99 isIncludeHeaders() declared as protected. 2019-11-13 17:48:26 +01:00
YuDongYing
f69440151d Fix schemaZip Gradle task on MS Windows
Prior to this commit, the schemaZip Gradle task failed to find Spring
schema files on MS Windows due to path separators hard coded to forward
slashes that are not compatible with the Windows operating system.

Consequently, a full build failed on Windows since the distZip task was
not able to locate the zipped schema archive that the schemaZip task
failed to create.

This commit fixes this by updating the schemaZip task to search for
schema files using backslashes as well as forward slashes.

Closes gh-23933
2019-11-13 15:17:17 +01:00
Juergen Hoeller
d0506bc110 Polishing 2019-10-30 17:25:07 +01:00
Juergen Hoeller
5c741a7cc7 Verify read-only propagation in DataSourceTransactionManagerTests
See gh-23747
2019-10-30 17:19:39 +01:00
Juergen Hoeller
8abe714687 Upgrade to Tomcat 8.5.45, Netty 4.1.39, Animal Sniffer 1.18 2019-09-25 21:45:21 +02:00
Juergen Hoeller
d1a34b9a7e Polishing 2019-09-25 21:45:05 +02:00
Juergen Hoeller
ace2e623d1 Fix DefaultListableBeanFactory#copyConfigurationFrom
Closes gh-23569
2019-09-25 21:43:04 +02:00
Juergen Hoeller
5d5867603a Consistent equality check for parent name and indexed arguments
Closes gh-23593
2019-09-25 21:42:47 +02:00
Spring Buildmaster
18ae3790e1 Next Development Version 2019-08-02 08:07:47 +00:00
Juergen Hoeller
13b9f58c4a Consistent suppression of get/clearWarnings without target connection
See gh-23346
2019-08-02 01:34:39 +02:00
Juergen Hoeller
f99b2f11da Document all remaining public methods on BeanDefinitionParserDelegate
Closes gh-23349
2019-08-01 15:47:35 +02:00
Juergen Hoeller
379e919b64 TransactionAwareDataSourceProxy locally handles get/clearWarnings call
Closes gh-23346
2019-08-01 15:47:19 +02:00
Juergen Hoeller
87152d7ccf MethodParameter.equals properly checks overridden containing class
Closes gh-23352
2019-08-01 14:44:01 +02:00
Juergen Hoeller
5b9129724b Polishing 2019-07-31 23:34:41 +02:00
Juergen Hoeller
c14d2d37d4 Upgrade to Netty 4.1.38 2019-07-31 23:17:28 +02:00
Juergen Hoeller
b7304651de Deprecate logger field in HandlerMethodArgumentResolverComposite 2019-07-31 23:17:16 +02:00
Juergen Hoeller
a8623dbbd7 MethodParameter.equals checks nesting level and containing class
Closes gh-23352
2019-07-31 23:16:20 +02:00
Juergen Hoeller
4f0104231a Upgrade to Tomcat 8.5.43 and Netty 4.1.37 2019-07-20 21:58:23 +02:00