- 18 Aug, 2014 4 commits
-
-
Phillip Webb authored
Update StarterDependenciesIntegrationTests to only consider starter folders that contain POM files. Fixes gh-1395
-
Phillip Webb authored
Update the the PathMatchingResourcePatternResolver used in the MessageSourceAutoConfiguration condition to deal with the fact that `classpath*:` patterns do not work with URLClassLoaders when the pattern doesn't include a folder. The ExtendedPathMatchingResourcePatternResolver works by searching all classpath URLs when the `findAllClassPathResources` method is called with an empty location. Fixes gh-1378
-
Phillip Webb authored
-
Dave Syer authored
-
- 13 Aug, 2014 3 commits
- 12 Aug, 2014 1 commit
-
-
Dave Syer authored
if user also adds @EnableWebMvcSecurity. The problem is that the ordering of the init() and configure() methods in the Spring Security configurers can force things to happen too early unless we are careful. It's still a bit twitchy I would say, but this relatively small change seems to fix the GS guide and not break any existing tests. I added a sample which mimic ths GS guide so we get an integration test that executes the new code paths. Fixes gh-1364
-
- 11 Aug, 2014 1 commit
-
-
Phillip Webb authored
Update ConfigurationPropertiesBindingPostProcessor to use `getBeansOfType` with `allowEagerInit=false` rather than `getBean`. This prevents FactoryBeans from being instantiated early when their type is not known. Fixed gh-1365
-
- 07 Aug, 2014 5 commits
-
-
Phillip Webb authored
-
Spring Buildmaster authored
-
Phillip Webb authored
-
Phillip Webb authored
Move repository declarations out of the parent POM and into setting.xml (except for the default profile). Also added jboss repository in an attempt to fix the failing CI release. Fixed gh-1349
-
Dave Syer authored
There was a reference to an old (fixed) issue in Spring which led to some simplification of the AuthenticationManager layering as well. Fixes gh-1335
-
- 06 Aug, 2014 6 commits
-
-
Phillip Webb authored
Update MongoDataAutoConfiguration to use the MongoDbFactory when creating GridFsTemplate. Fixes gh-1295
-
Phillip Webb authored
Add `management.add-application-context-header` option to disable the automatic adding of the `X-Application-Context` HTTP header. Fixes gh-1308
-
Phillip Webb authored
Minor javadoc edits to hint that @ConfigurationProperties can also be used with @Bean methods. Fixes gh-1330
-
Phillip Webb authored
-
Andy Wilkinson authored
Previously, the data scripts were always run in response to the publication of a DataSourceInitializedEvent, irrespective of spring.datasource.initialize. While the event won't be published by DataSourceInitializer if spring.datasource.initialize is false, it will be published if spring.jpa.hibernate.hbm2ddl.auto has been set. This commit updates DataSourceInitializer's handling of DataSourceInitializedEvent to only run the data scripts if spring.datasource.initialize is true. Fixes #1336
-
Andy Wilkinson authored
The request is being made to '/' and, while the application does have a mapping for '/', that mapping is not looked for before Spring Security's filter rejects the request with a 401. This means that the request is considered to be unmapped and this is reflected in the metric's name. See #1331 and #1333
-
- 05 Aug, 2014 3 commits
-
-
Dave Syer authored
-
Taylor Wicksell authored
Fixes gh-1331, Fixes gh-1333
-
Taylor Wicksell authored
-
- 04 Aug, 2014 4 commits
-
-
Dave Syer authored
-
Stephane Nicoll authored
Prior to this commit, the internal BeanWrapper used by the RelaxedDataBinder was not using any conversion service at all. This commit makes sure to propagate the one that has been configured internally. Also a dummy call to a [foo] key seems to have been left and has been removed. This allows to support Enum as map key. Fixes gh-1242
-
Dave Syer authored
The ErrorPageFilter wasn't setting the response status in the case that there was an error page mapped to the current request (i.e. for all autoconfigured apps). N.B. this only affects non-embedded apps. Fixes gh-1320
-
Dave Syer authored
Fixes gh-1328
-
- 31 Jul, 2014 3 commits
-
-
Dave Syer authored
-
Dave Syer authored
Fixes gh-1321
-
Andy Wilkinson authored
Previously, the ErrorPageFilter would always flush the response buffer, irrespective of the request being asynchronous. This could lead to a response being committed prematurely, preventing, for example, headers being set by subsequent processing. This commit updates ErrorPageFilter so that in the success case (status < 400) the response buffer is only flushed if the request is not async (determined by calling request.isAsyncStarted()). If an exception's been thrown or the status is >= 400 the response buffer is always flushed. Fixes #1316
-
- 30 Jul, 2014 1 commit
-
-
Andy Wilkinson authored
Previously, Repackager would repackage a jar file as many times as it was asked to do so. This lead to problems if a user made a mistake when using Maven that led to the package phase being driven twice, for example by running "mvn clean install package". This commit updates Repackager so that a repackage call becomes a no-op if the source jar's manifest already contains the Spring-Boot-Version attribute which is added by repackaging. Fixes #1251
-
- 29 Jul, 2014 4 commits
-
-
Andy Wilkinson authored
Closes #1307
-
Andy Wilkinson authored
Closes #1305
-
Andy Wilkinson authored
Previously, when running on Java 7+, the JDBC query driven by DataSourceHealthIndicator resulted in a call to ResultSet.getObject(index, Object.class). When using MySQL's JDBC driver this failed with an SQLException with the message "Conversion not supported for type java.lang.Object". The problem does not occur on Java 6 as the overload of getObject that takes a type does not exist; ResultSet.getObject(index) is called instead and MySQL happily returns whatever type it deems to be appropriate for the column. This commit updates DataSourceHealthIndicator so that ResultSet.getObject(index) will always be used, irrespective of the version of Java that Boot is running on. Closes #1306
-
Andy Wilkinson authored
Closes #1304
-
- 28 Jul, 2014 5 commits
-
-
Phillip Webb authored
-
Phillip Webb authored
The original fix for gh-1293 (commit 05e6af23) caused test failures due to the fact that Spring Boot's MappingJackson2HttpMessageConverter was added before Spring's default StringHttpMessageConverter. This commit changes the HttpMessageConverters logic so that additional converts are added just before any default converter of the same type. This allows additional converters to be added whilst still retaining the sensible ordering of the default converters. Fixes gh-1293
-
Dave Syer authored
It was incorrect to simply replace existing instances because you can't tell from the instance which media types and java types it supports. This fix just prepends the custom converters so they get higher priority. Fixes gh-1293
-
Dave Syer authored
-
Andy Wilkinson authored
Since Spring 4.0.4, it's now possible to use both classes and locations to provide a test's configuration. Closes #1300
-