Commit Graph

16886 Commits

Author SHA1 Message Date
Sam Brannen
e6fd7abdb9 Allow ResponseBodyAdvice to implement RequestBodyAdvice
Prior to this commit, if a @ControllerAdvice bean implemented both
RequestBodyAdvice and ResponseBodyAdvice, it was only supported as
RequestBodyAdvice, meaning it was never invoked as ResponseBodyAdvice.

This commit revises RequestResponseBodyAdviceChain to ensure that a
single bean implementing both types of body advice is in fact handled
as both types of advice.

See gh-22638
2019-03-26 13:47:13 +01:00
Sam Brannen
aa575c374a Update license.txt file
Closes gh-22659
2019-03-25 18:10:11 +01:00
Sam Brannen
36f2c72481 Merge branch 'spring-operator-polish-urls-apache-license-5.0.x' into 5.0.x 2019-03-23 15:16:50 +01:00
Sam Brannen
c6291b5dfe URL Cleanup - license headers - target subpackages
This commit updates license headers for source files residing in
subpackages named `target`.

Closes gh-22633
2019-03-23 15:16:28 +01:00
Spring Operator
11cca941c2 URL Cleanup
This commit updates URLs to prefer the https protocol. Redirects are not followed to avoid accidentally expanding intentionally shortened URLs (i.e. if using a URL shortener).

# Fixed URLs

## Fixed Success
These URLs were switched to an https URL with a 2xx status. While the status was successful, your review is still recommended.

* [ ] http://www.apache.org/licenses/ with 1 occurrences migrated to:
  https://www.apache.org/licenses/ ([https](https://www.apache.org/licenses/) result 200).
* [ ] http://www.apache.org/licenses/LICENSE-2.0 with 6410 occurrences migrated to:
  https://www.apache.org/licenses/LICENSE-2.0 ([https](https://www.apache.org/licenses/LICENSE-2.0) result 200).
2019-03-21 14:56:21 -05:00
Sebastien Deleuze
fb33e8451a Restore 2 digit days format in HttpHeaders
As recommended by RFC 7231, this commit restore using 2 digit days
when formatting dates while still using
DateTimeFormatter.RFC_1123_DATE_TIME for parsing.

Closes gh-22611
2019-03-21 19:08:14 +01:00
Sebastien Deleuze
24e277d791 Fix Jackson builder modulesToInstall override behavior
This commit updates Jackson2ObjectMapperBuilder in order
to ensure that modules specified via modulesToInstall
eventually override the default ones.

Closes gh-22625
2019-03-21 11:23:32 +01:00
Sam Brannen
d9d24085b4 Update documentation for WebJar support
Prior to this commit, documentation for WebJar support referenced the
webjars-locator artifact; however, Spring now uses the
webjars-locator-core artifact.

This commit updates the documentation to reflect this.

Closes gh-22613
2019-03-19 19:06:13 +01:00
Juergen Hoeller
8f62cc7720 Upgrade to Netty 4.1.34 2019-03-13 15:54:46 +01:00
Juergen Hoeller
641591b63e Polishing 2019-03-13 15:54:34 +01:00
Sam Brannen
f241618aa6 Merge branch 'spring-operator-polish-urls-build-5.0.x' into 5.0.x 2019-03-12 17:19:08 +01:00
Sam Brannen
8e654d52ff Manual URL Cleanup
Closes gh-22521
2019-03-12 17:18:46 +01:00
Spring Operator
60377b1c39 URL Cleanup
This commit updates URLs to prefer the https protocol. Redirects are not followed to avoid accidentally expanding intentionally shortened URLs (i.e. if using a URL shortener).

# Fixed URLs

## Fixed But Review Recommended
These URLs were fixed, but the https status was not OK. However, the https status was the same as the http request or http redirected to an https URL, so they were migrated. Your review is recommended.

* http://quartz-scheduler.org/api/2.2.1/ (301) migrated to:
  https://www.quartz-scheduler.org/api/2.2.1/ ([https](https://quartz-scheduler.org/api/2.2.1/) result 404).

## Fixed Success
These URLs were fixed successfully.

* http://dist.springsource.com/snapshot/STS/nightly-distributions.html migrated to:
  https://dist.springsource.com/snapshot/STS/nightly-distributions.html ([https](https://dist.springsource.com/snapshot/STS/nightly-distributions.html) result 200).
* http://docs.jboss.org/jbossas/javadoc/4.0.5/connector/ migrated to:
  https://docs.jboss.org/jbossas/javadoc/4.0.5/connector/ ([https](https://docs.jboss.org/jbossas/javadoc/4.0.5/connector/) result 200).
* http://docs.jboss.org/jbossas/javadoc/7.1.2.Final/ migrated to:
  https://docs.jboss.org/jbossas/javadoc/7.1.2.Final/ ([https](https://docs.jboss.org/jbossas/javadoc/7.1.2.Final/) result 200).
* http://docs.oracle.com/cd/E13222_01/wls/docs90/javadocs/ migrated to:
  https://docs.oracle.com/cd/E13222_01/wls/docs90/javadocs/ ([https](https://docs.oracle.com/cd/E13222_01/wls/docs90/javadocs/) result 200).
* http://docs.oracle.com/javaee/7/api/ migrated to:
  https://docs.oracle.com/javaee/7/api/ ([https](https://docs.oracle.com/javaee/7/api/) result 200).
* http://docs.oracle.com/javase/8/docs/api/ migrated to:
  https://docs.oracle.com/javase/8/docs/api/ ([https](https://docs.oracle.com/javase/8/docs/api/) result 200).
* http://fasterxml.github.io/jackson-core/javadoc/2.9/ migrated to:
  https://fasterxml.github.io/jackson-core/javadoc/2.9/ ([https](https://fasterxml.github.io/jackson-core/javadoc/2.9/) result 200).
* http://fasterxml.github.io/jackson-databind/javadoc/2.9/ migrated to:
  https://fasterxml.github.io/jackson-databind/javadoc/2.9/ ([https](https://fasterxml.github.io/jackson-databind/javadoc/2.9/) result 200).
* http://fasterxml.github.io/jackson-dataformat-xml/javadoc/2.9/ migrated to:
  https://fasterxml.github.io/jackson-dataformat-xml/javadoc/2.9/ ([https](https://fasterxml.github.io/jackson-dataformat-xml/javadoc/2.9/) result 200).
* http://hc.apache.org/httpcomponents-client-ga/httpclient/apidocs/ migrated to:
  https://hc.apache.org/httpcomponents-client-ga/httpclient/apidocs/ ([https](https://hc.apache.org/httpcomponents-client-ga/httpclient/apidocs/) result 200).
* http://issues.gradle.org/browse/GRADLE-1116 migrated to:
  https://issues.gradle.org/browse/GRADLE-1116 ([https](https://issues.gradle.org/browse/GRADLE-1116) result 200).
* http://projectreactor.io/docs/core/release/api/ migrated to:
  https://projectreactor.io/docs/core/release/api/ ([https](https://projectreactor.io/docs/core/release/api/) result 200).
* http://tiles.apache.org/framework/apidocs/ migrated to:
  https://tiles.apache.org/framework/apidocs/ ([https](https://tiles.apache.org/framework/apidocs/) result 200).
* http://tiles.apache.org/tiles-request/apidocs/ migrated to:
  https://tiles.apache.org/tiles-request/apidocs/ ([https](https://tiles.apache.org/tiles-request/apidocs/) result 200).
* http://www.apache.org/licenses/LICENSE-2.0 migrated to:
  https://www.apache.org/licenses/LICENSE-2.0 ([https](https://www.apache.org/licenses/LICENSE-2.0) result 200).
* http://www.eclipse.org/ajdt/downloads/ migrated to:
  https://www.eclipse.org/ajdt/downloads/ ([https](https://www.eclipse.org/ajdt/downloads/) result 200).
* http://www.eclipse.org/aspectj/doc/released/aspectj5rt-api/ migrated to:
  https://www.eclipse.org/aspectj/doc/released/aspectj5rt-api/ ([https](https://www.eclipse.org/aspectj/doc/released/aspectj5rt-api/) result 200).
* http://www.reactive-streams.org/reactive-streams-1.0.1-javadoc/ migrated to:
  https://www.reactive-streams.org/reactive-streams-1.0.1-javadoc/ ([https](https://www.reactive-streams.org/reactive-streams-1.0.1-javadoc/) result 200).
* http://docs.spring.io/spring-framework/docs migrated to:
  https://docs.spring.io/spring-framework/docs ([https](https://docs.spring.io/spring-framework/docs) result 301).
* http://download.eclipse.org/eclipse/downloads migrated to:
  https://download.eclipse.org/eclipse/downloads ([https](https://download.eclipse.org/eclipse/downloads) result 301).
* http://glassfish.java.net/nonav/docs/v3/api/ migrated to:
  https://glassfish.java.net/nonav/docs/v3/api/ ([https](https://glassfish.java.net/nonav/docs/v3/api/) result 301).
* http://pic.dhe.ibm.com/infocenter/wasinfo/v7r0/topic/com.ibm.websphere.javadoc.doc/web/apidocs/ migrated to:
  https://pic.dhe.ibm.com/infocenter/wasinfo/v7r0/topic/com.ibm.websphere.javadoc.doc/web/apidocs/ ([https](https://pic.dhe.ibm.com/infocenter/wasinfo/v7r0/topic/com.ibm.websphere.javadoc.doc/web/apidocs/) result 301).
* http://projects.spring.io/spring-framework migrated to:
  https://projects.spring.io/spring-framework ([https](https://projects.spring.io/spring-framework) result 301).
* http://springframework.org/schema migrated to:
  https://springframework.org/schema ([https](https://springframework.org/schema) result 301).
* http://ehcache.org/apidocs/2.10.4 (301) migrated to:
  https://www.ehcache.org/apidocs/2.10.4 ([https](https://ehcache.org/apidocs/2.10.4) result 301).
* http://spring.io/tools/sts/all migrated to:
  https://spring.io/tools/sts/all ([https](https://spring.io/tools/sts/all) result 302).
2019-03-12 17:04:26 +01:00
Juergen Hoeller
587067a7ca StringUtils.toStringArray/CollectionUtils.toIterator handle null input
Closes gh-22547
2019-03-08 22:47:43 +01:00
Juergen Hoeller
18ce8564e2 Polishing 2019-03-07 18:27:02 +01:00
Juergen Hoeller
458f75f489 Local https URL resolution attempt with fallback to parser's default
See gh-22504
2019-03-06 16:48:24 +01:00
Juergen Hoeller
24c6392e1a Upgrade to SLF4J 1.7.26, H2 1.4.198, OkHttp 3.13.1, WebJars Locator 0.37 2019-03-06 15:21:23 +01:00
Juergen Hoeller
7b97ec3ead Consistent local vs external resolution of https schema references
Closes gh-22504
2019-03-06 15:02:30 +01:00
Juergen Hoeller
f3475dd0ce Fixed misformatted chapter id 2019-03-05 13:35:11 +01:00
Juergen Hoeller
ac19af511c Polishing 2019-03-05 13:34:56 +01:00
Juergen Hoeller
565d324890 Polishing 2019-02-28 15:48:14 +01:00
Juergen Hoeller
e768bba4b5 Polishing 2019-02-28 15:05:31 +01:00
Juergen Hoeller
1a64d23f9d JdbcTemplate preserves order of stored procedure output parameters
Closes gh-22491
2019-02-28 12:09:50 +01:00
Juergen Hoeller
aa89a57953 Polishing 2019-02-27 17:57:21 +01:00
Juergen Hoeller
6af8073274 Polishing 2019-02-26 18:04:35 +01:00
Juergen Hoeller
df9be494cc Polishing 2019-02-25 18:36:24 +01:00
Juergen Hoeller
60be516be1 Only use payload if it actually matches declared event type
Closes gh-22426
2019-02-25 18:36:16 +01:00
Juergen Hoeller
af1691cbba Upgrade to Hibernate Validator 5.4.3 and 6.0.15
Includes Apache HttpClient 4.5.7 and Jetty 9.4.15.
2019-02-22 14:42:38 +01:00
Sebastien Deleuze
42ffc7b8c9 Fix AbstractTraceInterceptor null-safety annotations
Closes gh-22435
2019-02-21 16:00:25 +01:00
Juergen Hoeller
276e8bb689 Polishing 2019-02-15 17:41:57 +01:00
Juergen Hoeller
77b5a6de37 Clarify role of 'aware' callback interfaces 2019-02-15 17:41:50 +01:00
Juergen Hoeller
7a205ccf03 Upgrade to Reactor Bismuth SR16 2019-02-14 14:59:28 +01:00
Juergen Hoeller
8ab58b9114 DefaultConversionService properly converts Object[] to int[]
Closes gh-22410
2019-02-14 14:59:17 +01:00
Juergen Hoeller
0b0e2b16ed Polishing 2019-02-12 09:38:56 +01:00
Juergen Hoeller
12b601fa78 Expose empty annotation array as empty AnnotationAttributes array
Closes gh-22405
2019-02-12 09:38:49 +01:00
Juergen Hoeller
305e4535d8 Null-safe handling of response type in AcceptHeaderRequestCallback
Issue: SPR-16690
See gh-22401
2019-02-11 13:47:33 +01:00
Brian Clozel
a0d420686b Avoid duplicate Accept header values in RestTemplate
Prior to this commit, the various `HttpMessageConverter` instances
configured for a given `RestTemplate` instance could all contribute
`MediaType` values to the "Accept:" request header.

This could lead to duplicate media types in that request header,
cluttering for the HTTP request for no reason.

This commit ensures that only distinct values are added to the request.

Issue: SPR-16690
Closes gh-22401
2019-02-11 13:46:55 +01:00
Juergen Hoeller
ddb5b4a8c5 Upgrade to Tomcat 8.5.38 and Log4J 2.11.2 2019-02-11 12:07:06 +01:00
Juergen Hoeller
e7dbae84a5 Upgrade to Netty 4.1.33, Undertow 1.4.27, Hibernate ORM 5.2.18/5.1.17
Includes consistent upgrade to Rome 1.12.
2019-02-07 22:28:36 +01:00
Juergen Hoeller
25e9f0fad1 Polishing 2019-02-07 22:28:10 +01:00
Juergen Hoeller
74f832c16f Typo in web documentation
Closes gh-22270
2019-02-07 22:27:36 +01:00
Rossen Stoyanchev
657fc4c191 Fix Javadoc typos
Closes gh-22261

(cherry picked from commit 9837ec5904)
2019-02-07 22:27:14 +01:00
Juergen Hoeller
7c4f1de74f AbstractAutoProxyCreator ignores unused early proxy references
Closes gh-22370

(cherry picked from commit b8e663c531)
2019-02-07 22:27:01 +01:00
Juergen Hoeller
ba330f1bcb AbstractApplicationContext resets local listeners to pre-refresh state
Closes gh-22325

(cherry picked from commit 0f73a69033)
2019-02-07 22:26:36 +01:00
Juergen Hoeller
4b6558c7e5 Avoid duplicate class introspection during findAnnotationOnBean
Closes gh-22318

(cherry picked from commit ca7634dfe8)
2019-02-07 22:26:03 +01:00
Juergen Hoeller
48c5b1e373 ApplicationListenerMethodAdapter uses target method for order lookup
Fixes #22307

(cherry picked from commit d0033f12d0)
2019-02-07 22:25:50 +01:00
Sebastien Deleuze
cb6f24d92d Fix truncated Value#value javadoc
Closes gh-22331
2019-02-06 19:30:03 +01:00
Spring Buildmaster
7b31a93556 Next Development Version 2019-01-09 09:51:54 +00:00
Rossen Stoyanchev
5aa131a259 Correction for commit #c6e500
Issue: SPR-17630
2019-01-08 22:45:19 -05:00
Juergen Hoeller
ea3017b1b6 Upgrade to Reactor Bismuth SR15 2019-01-08 23:48:24 +01:00