Commit Graph

17019 Commits

Author SHA1 Message Date
Juergen Hoeller
ffe08aeca0 Avoid ClassCastException on IllegalArgumentException from sync invocation
Closes gh-25110
2020-06-10 10:09:46 +02:00
Juergen Hoeller
f4d33a6dfe Consistent not-null assertions for configured interceptors
Closes gh-25089
2020-06-10 10:09:36 +02:00
Juergen Hoeller
4798da05ae Avoid full synchronization in refreshable getBeanFactory() implementation
Closes gh-25081
2020-06-10 10:09:31 +02:00
Spring Buildmaster
705157ea5b Next Development Version 2020-04-28 09:08:38 +00:00
Juergen Hoeller
5587262fcd Polishing 2020-04-27 14:50:02 +02:00
Juergen Hoeller
6dcabd8a89 Store source in index-derived ScannedGenericBeanDefinition as well
Includes consistent constructor-level storage of derived resource in ScannedGenericBeanDefinition and ConfigurationClassBeanDefinition.

See gh-24978
2020-04-27 14:49:55 +02:00
Sam Brannen
6a6ad05aa7 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 16:30:03 +02:00
Juergen Hoeller
4ec2844646 Honor overridden AcceptHeaderLocaleContextResolver.getDefaultLocale()
Closes gh-24871
2020-04-09 12:04:33 +02:00
Juergen Hoeller
d9eacaa7e8 Recursively copy directory with symbolic link
Closes gh-24823
2020-04-03 21:54:49 +02:00
Juergen Hoeller
a33b7bbadb Close-suppressing Connection proxy exposes target isClosed() state
Closes gh-24853
2020-04-03 21:54:44 +02:00
Juergen Hoeller
56e7d73491 Clear by-type cache in case of no pre-existing bean definition as well
Closes gh-24852
2020-04-03 21:54:17 +02:00
Rossen Stoyanchev
11aaf6a90b UriComponentsBuilder.cloneBuilder copies uriVariables
Closes gh-24772
2020-03-26 16:42:23 +00:00
Juergen Hoeller
701f54b185 Polishing 2020-03-24 01:23:07 +01:00
Juergen Hoeller
f20027f75f Thread-safe access to WebSocketServerFactory and WebSocketExtensions
Closes gh-24745
2020-03-24 01:21:16 +01:00
Juergen Hoeller
4d9d814b4f Mark MediaTypeNotSupportedStatusException as deprecated
Closes gh-24743
2020-03-24 01:06:08 +01:00
Juergen Hoeller
528fc662f0 Polishing 2020-03-13 23:49:03 +01:00
Juergen Hoeller
1a81aed1eb Create ScannedGenericBeanDefinitions for index-derived components as well
Closes gh-24638
2020-03-13 23:43:24 +01:00
Juergen Hoeller
5eb8430688 Polishing 2020-02-12 18:14:08 +01:00
Rossen Stoyanchev
dc561aee02 Update advice on RestTemplate
Closes gh-24503
2020-02-12 18:13:45 +01:00
Juergen Hoeller
f90acdf42f Consistent ROLE_INFRASTRUCTURE declarations for configuration classes
Closes gh-24509
2020-02-12 18:03:43 +01:00
Juergen Hoeller
844619ccf1 Use local LoggerContext in Log4jLog when static field not initialized yet
Closes gh-24440
2020-01-28 21:30:52 +01:00
Sam Brannen
cf1d5216da Include Objenesis NOTICE file contents in binary distributions
Closes gh-24326
2020-01-16 10:55:10 +01:00
Spring Buildmaster
3334f2089a Next Development Version 2020-01-14 10:37:45 +00:00
Sam Brannen
1cfa95418a Document Objenesis license in license.txt
Closes gh-24340
2020-01-13 16:09:28 +01:00
Sam Brannen
573139e455 Update ASM and CBLIB versions in license.txt 2020-01-13 13:23:13 +01:00
Juergen Hoeller
7c52397220 Polishing 2020-01-10 14:30:05 +01:00
Juergen Hoeller
2c0a505213 Thread-safe compiled expression evaluation in SpelExpression
Closes gh-24265
2020-01-10 14:20:04 +01:00
Rossen Stoyanchev
0583b334b4 Escape quotes in filename
Also sync up to master and 5.1.x on refactorings in ContentDisposition
and ContentDispositionTests.

Closes gh-24230
2020-01-07 07:17:55 +00:00
Juergen Hoeller
8356762316 Polishing 2019-12-12 16:54:43 +01:00
Juergen Hoeller
c526fc2a5f Polishing 2019-12-09 15:51:21 +01:00
Juergen Hoeller
14ecc0357e Polishing 2019-12-09 15:26:15 +01:00
Juergen Hoeller
c9fa62751b Cleanup of "varaible" typos in ResolvableTypeTests 2019-12-09 15:25:34 +01:00
Juergen Hoeller
e144b3a73c Polishing 2019-12-01 10:58:53 +01:00
Juergen Hoeller
ea1992c8d1 Backport of recent ExtendedBeanInfo refinements from 5.1.x
Closes gh-24109
2019-12-01 10:58:36 +01:00
Juergen Hoeller
b86b0797f5 Mark SqlRowSet accessor methods as nullable (for alignment with JDBC)
Closes gh-24042
2019-11-20 18:01:25 +01:00
Juergen Hoeller
2a63147446 Avoid substring allocation in StringUtils.replace
Closes gh-24023
2019-11-19 15:08:11 +01:00
Juergen Hoeller
41072e3451 Revise getElementTypeDescriptor javadoc (no IllegalStateException)
Closes gh-23996
2019-11-14 18:42:01 +01:00
Juergen Hoeller
a20d7fa119 Polishing 2019-11-13 23:56:44 +01:00
Juergen Hoeller
be0e0f6e48 Minor internal refinements (backported from master) 2019-11-13 17:45:02 +01:00
Juergen Hoeller
d1a01f2675 Support for new MySQL 8 error code 3572
Closes gh-23972
2019-11-13 17:28:35 +01:00
YuDongYing
2132eec410 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:10:10 +01:00
Juergen Hoeller
7aa73792a1 Use Method.getParameterCount() when full type array is never needed 2019-11-07 22:43:24 +01:00
Rossen Stoyanchev
9529dfbf38 Update WebMvcConfigurer#addInterceptors Javadoc
Closes gh-23926
2019-11-06 22:44:30 +00:00
Juergen Hoeller
fdf936c3e2 Polishing 2019-10-30 17:16:06 +01:00
Juergen Hoeller
4e4b04aa52 Verify read-only propagation in DataSourceTransactionManagerTests
See gh-23747
2019-10-30 17:04:08 +01:00
Juergen Hoeller
a2c06b7764 Upgrade to Tomcat 8.5.45, Netty 4.1.39, SLF4J 1.7.28 2019-09-25 21:55:31 +02:00
Juergen Hoeller
2102dec2f1 Polishing 2019-09-25 21:52:00 +02:00
Juergen Hoeller
64afc91708 Polishing 2019-09-25 20:49:30 +02:00
Juergen Hoeller
6f45a1ac00 Fix DefaultListableBeanFactory#copyConfigurationFrom
Closes gh-23569
2019-09-25 20:48:22 +02:00
Juergen Hoeller
17353007c9 Efficient concurrency in MethodOverrides through CopyOnWriteArraySet
Also restores immediate MethodOverrides instance in AbstractBeanDefinition, avoiding potential lazy-init race condition.

Closes gh-23448
2019-09-25 20:47:47 +02:00