Commit Graph

8074 Commits (50ca35bdaef1d6ebe972f98adf6ae15dea065492)
 

Author SHA1 Message Date
Andy Wilkinson 436b58acbf Merge branch '1.3.x' 9 years ago
Andy Wilkinson 3772d9f937 Update JarURLConnection to only require file read permission
Previously, JarURLConnection didn't override getPermission(). This
meant that it required all permissions. This was at odds with the
Oracle JVM's concrete sun.net.www.protocol.jar.JarURLConnection which
overrides getPermission to return a FilePermission with the read
action for the path of the underlying jar.

This commit updates our JarURLConnection to align its behaviour with
sun.net.www.protocol.jar.JarURLConnection.

Closes gh-5411
9 years ago
Andy Wilkinson ac5696e13c Upgrade to Spring AMQP 1.6.0.RELEASE
Closes gh-6099
9 years ago
Andy Wilkinson 9bb1151178 Upgrade to MariaDB Java Client 1.4.5
Closes gh-6098
9 years ago
Andy Wilkinson cde06444e0 Upgrade to Infinispan 8.2.2.Final
closes gh-6097
9 years ago
Andy Wilkinson 9f2a482f91 Upgrade to Jersey 2.23
Closes gh-6096
9 years ago
Andy Wilkinson bd15d41500 Upgrade to Log4j2 2.6
Closes gh-6095
9 years ago
Andy Wilkinson dfaf02b220 Upgrade to Joda Time 2.9.4
Closes gh-6093
9 years ago
Andy Wilkinson 68587f466e Upgrade to Hazelcast 3.6.3
Closes gh-6092
9 years ago
Andy Wilkinson fdd76869ec Upgrade to App Engine API 1.9.38
Closes gh-6091
9 years ago
Andy Wilkinson 54c68f5597 Upgrade to Spring REST Docs 1.1.0.RELEASE
Closes gh-6077
9 years ago
Andy Wilkinson 53061fb8d7 Upgrade to jOOQ 3.8.2
Closes gh-6064
9 years ago
Andy Wilkinson 0dd0cef054 Upgrade to HTMLUnit 2.21
Closes gh-5954
9 years ago
Andy Wilkinson 455aa05bc6 Provide dependency management for xml-apis:xml-apis
Closes gh-6102
9 years ago
Andy Wilkinson 202552b9fb Merge branch '1.3.x' 9 years ago
Andy Wilkinson 28bd6d60c8 Revert "Upgrade to Tomcat 8.0.35"
This reverts commit 66e093ed0d. There's
a regression [1] in Tomcat 8.0.35 that causes it to throw an NPE when
it scans a jar file without a manifest. It's already been fixed [2].

See gh-6087

[1] https://svn.apache.org/viewvc/tomcat/tc8.0.x/trunk/java/org/apache/tomcat/util/scan/StandardJarScanner.java?annotate=1742274#l369
[2] https://svn.apache.org/viewvc/tomcat/tc8.0.x/trunk/java/org/apache/tomcat/util/scan/StandardJarScanner.java?annotate=1744197#l369
9 years ago
Andy Wilkinson 84b7b25076 Merge branch '1.3.x' 9 years ago
Andy Wilkinson 9ec4e5c74a Upgrade to Spring REST Docs 1.0.2.RELEASE
Closes gh-6090
9 years ago
Andy Wilkinson d0df8cbe51 Upgrade to HSQLDB 2.3.4
Closes gh-6089
9 years ago
Andy Wilkinson 055c318506 Upgrade to Jetty 9.2.17.v20160517
Closes gh-6088
9 years ago
Andy Wilkinson 66e093ed0d Upgrade to Tomcat 8.0.35
Closes gh-6087
9 years ago
Andy Wilkinson b2413850c4 Upgrade to Embedded Mongo 1.50.5
Closes gh-6086
9 years ago
Andy Wilkinson a5fdc05d82 Upgrade to H2 1.4.192
Closes gh-6085
9 years ago
Phillip Webb 433f5e7930 Configure TestRestTemplate using builder
Update SpringBootTestContextCustomizer to create the TestRestTemplate
using the RestTemplateBuilder whenever possible.

Fixes gh-5509
9 years ago
Phillip Webb e1d74627f5 Make test auto-configuration classes public
Make test auto-configuration classes public so that they can be used
by others with @AutoConfigureBefore/@AutoConfigureAfter.

Fixes gh-6073
9 years ago
Phillip Webb b84330663d Update spring-boot-sample-test REST code
Update RemoteVehicleDetailsService and the related test to use the new
RestTemplateBuilder class and @RestClientTest annotation.

See gh-6030
See gh-5507
9 years ago
Phillip Webb 0a475946a1 Document RestTemplateBuilder and @RestClientTest
See gh-6030
See gh-5507
9 years ago
Phillip Webb 2eafb3d887 Add @RestClientTest support
Add @RestClientTest annotation that can be used when testing REST
clients. Provides auto-configuration for a MockRestServiceServer which
can be used when the bean under test builds a single RestTemplate
via the auto-configured RestTemplateBuilder.

Closes gh-6030
9 years ago
Phillip Webb b38231021d Provide web client Auto-configuration
Add auto-configuration for use with typical web clients. Currently
client auto-configuration consists of a RestTemplateBuilder
pre-configured with HttpMessageConverters.

Closes gh-5507
9 years ago
Phillip Webb b641e63466 Add RestTemplateBuilder support
Add a RestTemplateBuilder that allows RestTemplates to be easily created
and configured.

See gh-5507
9 years ago
Phillip Webb e664d585d9 Allow MockRest static imports
Update checkstyle rules to allow static imports from
MockRestRequestMatchers and MockRestResponseCreators.
9 years ago
Phillip Webb bc6f1cfdf3 Polish 9 years ago
Stephane Nicoll 68040c952f Merge pull request #6075 from izeye:patch-49
* pr/6075:
  Fix default value for `spring.rabbitmq.connection-timeout`
9 years ago
Johnny Lim d28c1890a2 Fix default value for `spring.rabbitmq.connection-timeout`
Closes gh-6075
9 years ago
Stephane Nicoll 71917abccf Fix typo
See gh-6004
9 years ago
Andy Wilkinson 4a73eb6045 Fix capitalization of TestDatabaseAutoConfiguration in spring.factories
The joys of OS X's case-insensitive, case-preserving file system

See gh-6001
9 years ago
Andy Wilkinson 73b01cff4f Use spring.factories to declare each test slice's auto-config imports
Closes gh-6001
9 years ago
Stephane Nicoll 1b0bbd89a2 Reuse ApplicationEventMulticaster
Spring Framework allows a custom `ApplicationEventMulticaster` bean to be
defined with a well-defined bean. If such bean is present, it is used
instead of the default implementation.

This commit fixes `EventPublishingRunListener` to properly honour such
arrangement. Rather than registering a `ApplicationEventMulticaster` to
transmit the application listeners from the `SpringBootApplication` it
now only uses an internal multicaster for early events (i.e. events that
are fired before the context is actually refreshed).

This has the positive effect of making sure that `ApplicationReadyEvent`
is fired to the proper multicaster.

Closes gh-6048
9 years ago
Andy Wilkinson b968c2c7af Start building against Spring Framework 4.3 snapshots
See gh-6049
9 years ago
Andy Wilkinson 29ac6fc154 Tolerate API changes between Tomcat 7 and Tomcat 8
See gh-6053
9 years ago
Andy Wilkinson a5ad2b33ab Enable JNDI lookups during app context refresh without changing TCCL
When Tomcat is starting up and JNDI is enabled, it binds the web app
class loader into its ContextBindings, thereby enabling JNDI lookups
on any thread that uses the web app class loader as its thread context
class loader. When Boot starts an application, the application context
is refreshed on the main thread which has the app class loader as its
TCCL. This meant that any JNDI lookups performed during refresh would
fail.

gh-2038 described this problem and a fix was made in ff99bb0. The
fix was to set the main thread's TCCL to be Tomcat's web app class
loader. This fixed the JNDI lookup problem, but it has become apparent
that it has caused other problems when testing an application.

The fix for gh-2038 sets the main thread's TCCL when embedded Tomcat
starts (during application context refresh) and then restores it when
embedded Tomcat stops (as a result of the application context being
closed). This causes problems during testing as, when application
context's are cached, the close is delayed. This means that the main
thread's TCCL isn't restored, causing subsequent tests to run with the
wrong TCCL.

This commit takes a different approach to fixing gh-2038. Rather than
changing the main thread's TCCL, it binds the app class loader into
Tomcat's ContextBindings, thereby enabling JNDI lookups from the main
thread. To avoid leaving a reference to the app class loader in
Tomcat's ContextBindings, it unbinds the app class loader at the end
of application context refresh. This narrows the scope of the fix so
that it only applies during application context refresh which is the
period in which JNDI lookups were problematic.

Note that the original fix could have been modified to restore the
TCCL once context refresh has completed rather than waiting for the
context to be closed. However, my feeling is that leaving the TCCL
unchanged and specifically addressing the JNDI problem by manipulating
the context bindings is a more precise, and hopefully safer,
solution.

Closes gh-6053
9 years ago
Stephane Nicoll b6ab929162 Merge branch '1.3.x' 9 years ago
Stephane Nicoll b49c6ca616 Fix link in doc
Closes gh-6033
9 years ago
Andy Wilkinson 8c9c649805 Fix MongoPropertiesTests following upgrade to Mongo 3.2 (6f5bd2e)
See gh-3011
9 years ago
Stephane Nicoll 306a82e652 Merge pull request #6046 from izeye:polish-2016052
* pr/6046:
  Polish
  Polish
9 years ago
Stephane Nicoll deb6c9a4f6 Polish 9 years ago
Johnny Lim 70adefc87b Polish
Closes gh-6046
9 years ago
Andy Wilkinson 6f5bd2e13a Upgrade to MongoDB 3
This commit upgrades to MongoDB 3. Dependency management has been added
for the new and preferred mongodb-driver artifact. The starter has
been updated to use this new artifact rather than monogo-java-driver.
Dependency management for mongo-java-driver has been retained to avoid
causing problems for people who have declared the dependency explicitly.
The auto-configuration for Embedded Mongo has also been updated to
use 3.2.2 by default.

Closes gh-3011
9 years ago
Stephane Nicoll 44b4df2d3d Deprecate hornetq support
Closes gh-6034
9 years ago
Andy Wilkinson 280ac90cef Polishing 349ec76: remove use of the diamond operator 9 years ago