Commit Graph

11425 Commits (9f4f229b835eaec2ebc0e8c39841e491b150d8a0)
 

Author SHA1 Message Date
Phillip Webb 4e96587dc8 Polish modifier declaration ordering
Follow that Java language specification.
7 years ago
Phillip Webb 64930d4e5b Polish caught exception names
Prefer `ex` over `e`.
7 years ago
Phillip Webb 3ee777e142 Polish ternary expressions
Consistently format ternary expressions and always favor `!=` as the
the check.
7 years ago
Phillip Webb 690f946b6d Polish 7 years ago
Stephane Nicoll 830e523531 Clarify behavior of JMX in @SpringBootTest
Closes gh-13008
7 years ago
Stephane Nicoll dd3f57d816 Avoid potentially mutating item metadata collection
Closes gh-13027
7 years ago
Andy Wilkinson d0f329caa4 Break circular dependency in DevTools without using field injection 7 years ago
Andy Wilkinson 06cf698387 Polish 7 years ago
Andy Wilkinson 31c6281e96 Start building against Spring Integration 4.3.16 snapshots
See gh-13015
7 years ago
Andy Wilkinson b6926c9bca Start building against Spring Data Ingalls SR12 snapshots
See gh-13014
7 years ago
Andy Wilkinson 9bd46ca8f8 Start building against Spring Framework 4.3.17 snapshots
See gh-13013
7 years ago
Andy Wilkinson a29a70d2f4 Fix handling of static resource jar paths containing a +
Closes gh-12942
7 years ago
Stephane Nicoll 08bc306a61 Guard IntegrationJmxConfiguration if no mBeanServer is available
Closes gh-12966
7 years ago
Andy Wilkinson 4585bc846a Restore RestartClassLoader's Java 6 compatibility
Closes gh-12826
7 years ago
Stephane Nicoll 6047a2c0b0 Fix typo
See gh-12996
7 years ago
Stephane Nicoll 587e3f4046 Polish
See gh-12796
7 years ago
Andy Wilkinson df2372cd93 Avoid Kafka 0.10 destabilising the Windows build
Closes gh-12963
7 years ago
Andy Wilkinson c78bc0585c Make tests' detection of SSL handshake failures more robust
Closes gh-12961
7 years ago
Phillip Webb 370915f8f0 Fixup version numbers following release 7 years ago
Spring Buildmaster c10aad165f Next Development Version 7 years ago
Stephane Nicoll ba5ed5b97c Upgrade to Spring Framework 4.3.16
Closes gh-12806
7 years ago
Andy Wilkinson cd0e4fe945 Sanitize sun.java.command by default
Closes gh-12796
7 years ago
Andy Wilkinson a06de4d997 Stop error page filter from commiting response prematurely
Previously, the error page filter used sendError to set the response
status when handling an exception and before forwarding the request
to the error controller. Following the fix for gh-11814, this meant
that the error controller was unable to write its response and the
containers default error page was returned instead.

This commit updates the error page filter to use setStatus rather than
sendError. This ensures that the response has the correct status code
while allowing the error controller to write its body. Tests have
been added to the Tomcat deployment test suite to verify that the
error page filter behaves as intended when dealing with a sent error
and an exception for requests accepting HTML, JSON, or anything.

Closes gh-12787
7 years ago
Stephane Nicoll 3634a1d9d1 Fixup version numbers following release 7 years ago
Spring Buildmaster ade4760842 Next Development Version 7 years ago
Andy Wilkinson 61ab4f6ca8 Upgrade to Spring Kafka 1.1.8.RELEASE
Closes gh-12772
7 years ago
Andy Wilkinson 88a18a635a Upgrade to Spring Amqp 1.7.7.RELEASE
Closes gh-12771
7 years ago
Andy Wilkinson 89638d6807 Upgrade to Freemarker 2.3.28
Closes gh-12770
7 years ago
Andy Wilkinson e066558601 Upgrade to Dependency Management Plugin 1.0.5.RELEASE
Closes gh-12406
7 years ago
Phillip Webb 6b59814cbc Switch error views to use SimpleEvaluationContext
Update `ErrorMvcAutoConfiguration` to use `SimpleEvaluationContext`
rather than `StandardEvaluationContext`.

Fixes gh-12507
7 years ago
Phillip Webb 624a5f8260 Apply URL decoding for nested jar entry names
Update `JarURLConnection` to apply URL decoding to nested jar entry
names.

Fixes gh-12765
7 years ago
Phillip Webb f08c496858 Upgrade to Spring Integration 4.3.15
Closes gh-12692
7 years ago
Phillip Webb 3563baf36b Update to Spring Data Ingalls SR11
Closes gh-12695
7 years ago
Phillip Webb dd0866000f Revert "Add text/plain error response support"
This reverts commit 23892e33d6.
7 years ago
Phillip Webb 7242ddae3c Polish 7 years ago
Andy Wilkinson c4923d6273 Ignore existing output when asserting captured log output
Closes gh-12734
7 years ago
Andy Wilkinson ac88a60071 Ensure error is sent before Writer or OutputStream is used
Previously, ErrorPageFilter's ErrorResponseWrapper would delaying
sending an error back to the client. In cases where the response's
Writer or OutputStream was accessed and flushed or closed, this could
lead to the wrong response status being sent.

This commit updates ErrorResponseWrapper so that it will send any
capture error to the client before returning the response's Writer or
OutputStream. This ensures that closing the Writer or OutputStream
does not cause the response to be committed with the default response
status rather than the previously captured error status.

Such responses will now include the correct status, but will not be
forwarded to the error controller. Such forwarding is not possible
due to the response already having been committed.

Closes gh-11814
7 years ago
Stephane Nicoll 1805cc5696 Clarify optional use of ComponentScan
Closes gh-12739
7 years ago
Stephane Nicoll 249af7d5aa Upgrade to Spring Framework 4.3.15
Closes gh-12344
7 years ago
Andy Wilkinson 288e71b6c1 Upgrade to GemFire 8.2.9
Closes gh-12748
7 years ago
Andy Wilkinson dee8750aff Stop Jetty in Jetty8JettyEmbeddedServletContainerFactoryTests
Closes gh-12734
7 years ago
Andy Wilkinson edc00eef24 Ensure that Tomcat is completely stopped when its initialization fails
Closes gh-12736
7 years ago
Andy Wilkinson 30de75c75c Ensure that Jetty is completely stopped when it fails to start
Closes gh-12735
7 years ago
Andy Wilkinson 399455f65a Merge pull request #12715 from Wenwei Liao
* gh-12715:
  Polish "Use modifiable set for @ServletComponentScan with no packages"
  Use modifiable set for @ServletComponentScan with no packages
7 years ago
Andy Wilkinson 6078fdaed8 Polish "Use modifiable set for @ServletComponentScan with no packages"
Closes gh-12715
7 years ago
Wenwei Liao 7bec780281 Use modifiable set for @ServletComponentScan with no packages
Previously, when a project contained multiple `@ServletComponentScan`
annotated classes in classpath, and at least one annotation don't
explicitly specify `basePackages` and `basePackageClass` attribute,
the application could fail to start with an
UnsupportedOperationException. The failure occurred due to the
creating of an unmodifiable set when no base packages are configured
and a subsequent attempt to add base packages to that sit.

This commit fixes the issue by removing the use of an unmodifiable set
when `@ServletComponentScan` with no base packages in processed before
any other `@ServletComponentScan` annotations.

See gh-12715
7 years ago
Andy Wilkinson 2fd177f923 Upgrade to Spring Security 4.2.5.RELEASE
Closes gh-12731
7 years ago
Andy Wilkinson 3b2ecd7884 Upgrade to Groovy 2.4.15
Closes gh-12730
7 years ago
Phillip Webb a20df82067 Polish 7 years ago
Phillip Webb ecfc8d73f1 Be defensive when clearing caches for restart
Update `Restarter` to be much more defensive when attempting to clear
caches. We now use `clearCache()` methods whenever possible, and only
fall back to field access when absolutely necessary. In addition field
access now ignore any exceptions.

Fixes gh-12719
7 years ago