Commit Graph

13505 Commits

Author SHA1 Message Date
Rossen Stoyanchev d1d37534bf Reinstate removal of jsessionid from lookup path
Closes gh-25864
2020-10-13 16:55:44 +01:00
Juergen Hoeller 45322a72a5 Polishing 2020-10-13 01:22:39 +02:00
Juergen Hoeller 678ea4ece7 Avoid creation of unused logger instance in AbstractMediaTypeExpression
Closes gh-25901
2020-10-13 01:20:34 +02:00
Juergen Hoeller bacf6ca37b Polishing 2020-10-07 15:03:26 +02:00
Juergen Hoeller 95c0f1108f Construct StringWriter instances with appropriate initial size
Closes gh-25789
2020-10-07 15:02:50 +02:00
Spring Buildmaster 06c76d8075 Next Development Version 2020-09-15 10:51:10 +00:00
Juergen Hoeller 7056dd599f Polishing 2020-09-14 23:46:49 +02:00
Rossen Stoyanchev bb5b12af3b UriComponentsBuilder Javadoc update
Closes gh-25604
2020-09-08 12:30:00 +01:00
Rossen Stoyanchev 2f75212eb6 Avoid unnecessary parsing of path params
Closes gh-25690
2020-09-08 12:24:44 +01:00
Rossen Stoyanchev bdcb189e50 Shared read-only instances of UrlPathHelper
UrlPathHelper is often created and used without customizations or with
the same customizations. This commit introduces re-usable, instances.
Effectively a backport of commit 23233c.

Closes gh-25690
2020-09-08 12:24:27 +01:00
Juergen Hoeller caa22b7291 Properties loading with ignoreResourceNotFound covers SocketException as well
Closes gh-25717
2020-09-07 18:50:16 +02:00
Juergen Hoeller 586677341c Revise documentation notes on getParameterType performance issues
See gh-25679
2020-09-05 14:28:35 +02:00
Juergen Hoeller 2d632eff0f Fix SpEL generated code for default method invocation
Closes gh-25706
2020-09-05 14:28:19 +02:00
Juergen Hoeller eec4a6d521 Retry DatabaseMetaData retrieval if access to transactional connection fails
Closes gh-25681
2020-09-03 23:30:04 +02:00
Juergen Hoeller a577f633ff Polishing 2020-09-01 11:00:18 +02:00
Juergen Hoeller b6677ccbff Polishing 2020-08-27 16:16:24 +02:00
Juergen Hoeller 6c977e9c2a Avoid potential integer overflow in seconds->millis transformation
Closes gh-25613
2020-08-27 15:59:52 +02:00
Juergen Hoeller 265bc6cd65 Populate dependencies metadata for resolved target behind lazy dependency proxy
Closes gh-25562
2020-08-07 22:07:12 +02:00
Juergen Hoeller 3d2de9a378 Efficient concurrency in MethodOverrides through CopyOnWriteArraySet
Closes gh-23448
2020-08-07 15:39:36 +02:00
Juergen Hoeller cc1f0e1186 Polishing 2020-08-07 15:37:04 +02:00
Juergen Hoeller 17a47b30e9 Refine use of substring operations
Closes gh-25445
2020-08-07 15:21:54 +02:00
Juergen Hoeller 5e5723c8ba Reset charset field in MockHttpServletResponse
Closes gh-25501
2020-08-07 15:20:52 +02:00
Sam Brannen 9fcdaa7308 Regression tests for @RestControllerAdvice support in MockMvc
This commit introduces regression tests for @RestControllerAdvice
support in standalone MockMvc configurations.

See gh-25520
2020-08-05 18:56:58 +02:00
Sam Brannen ef6494584c Fix bug in StaticListableBeanFactory.isSingleton()
Prior to this commit, StaticListableBeanFactory.isSingleton() returned
false for singleton beans unless they were created by a FactoryBean.

StaticListableBeanFactory.isSingleton() now properly returns true for
all beans not created by a FactoryBean.

Closes gh-25522
2020-08-04 16:50:14 +02:00
Spring Buildmaster 88f792a5d7 Next Development Version 2020-07-21 06:59:04 +00:00
Juergen Hoeller d8654607a4 Defer creating logger in StandardWebSocketHandlerAdapter to instantiation time
Closes gh-25427

(cherry picked from commit 64f4703445)
2020-07-20 17:21:11 +02:00
Juergen Hoeller 93e42b8e4f Copy queryParams MultiValueMap through deepCopy (for independent List entries)
Closes gh-25423
2020-07-20 08:01:51 +02:00
Rossen Stoyanchev 70773468c2 Align default values with 5.0.x
Closes gh-25414
2020-07-20 06:32:38 +03:00
Juergen Hoeller 6d524e1da5 Unwrap SqlParameterValue for disposable value detection in cleanupParameters
Closes gh-22972
2020-07-19 20:49:05 +02:00
Juergen Hoeller f38ab3863f Polishing 2020-07-17 19:06:14 +02:00
Juergen Hoeller 94d459ebcf Clarify enforceInitMethod/enforceDestroyMethod default values
Closes gh-25402

(cherry picked from commit 5846d9c2ea)
2020-07-17 19:02:46 +02:00
Juergen Hoeller b5887bfd83 Polishing 2020-06-23 11:56:52 +02:00
Juergen Hoeller 299e2c8c46 Avoid misleading log message for commit-triggering exception
Closes gh-25253
2020-06-17 16:25:42 +02:00
Juergen Hoeller 3aae8b2dc8 Polishing 2020-06-12 00:33:46 +02:00
Juergen Hoeller 85e3f23863 Consistent abstract declaration of "Abstract" base classes
Closes gh-25240
2020-06-12 00:33:02 +02:00
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