1. 04 May, 2016 2 commits
  2. 02 May, 2016 3 commits
  3. 30 Apr, 2016 1 commit
  4. 28 Apr, 2016 2 commits
  5. 27 Apr, 2016 1 commit
  6. 26 Apr, 2016 3 commits
  7. 25 Apr, 2016 1 commit
  8. 22 Apr, 2016 1 commit
    • Dave Syer's avatar
      Add metric flusher to export remaining metrics on shutdown · b9db4742
      Dave Syer authored
      Before this change the app context closes and metrics that have not
      yet been exported ccan be orphaned. The design of this feature is simple:
      use Closeable where possible, so that it will be called automatically
      by Spring on shutdown.
      
      Fixes gh-5771
      b9db4742
  9. 21 Apr, 2016 2 commits
  10. 20 Apr, 2016 2 commits
  11. 19 Apr, 2016 1 commit
    • Andy Wilkinson's avatar
      DevTools should only shut down single, auto-configured DataSource · a19eeaf9
      Andy Wilkinson authored
      Previously, there were two problems with DevTools’ DataSource
      auto-configuration:
      
      1. It did not tolerate a context with multiple DataSources
      2. It would attempt to shut down a DataSource that had not been created
         by DataSourceAutoConfiguration and, therefore, where we could not be
         sure of its configuration.
      
      This commit updates DevToolsDataSourceAutoConfiguration so that it backs
      off unless the context contains DataSourceProperties and a single
      DataSource created by DataSourceAutoConfiguration. This ensures that it
      can safely use DataSourceProperties to get the DataSource’s
      driver class name and accurately determine if it’s an in-memory or
      external database. Shutdown is only called for an in-memory database.
      
      Closes gh-5540
      a19eeaf9
  12. 18 Apr, 2016 4 commits
    • Andy Wilkinson's avatar
      432969e6
    • Andy Wilkinson's avatar
      Apply spring.thymeleaf.cache to auto-configured ThymeleafViewResolver · a4d7a775
      Andy Wilkinson authored
      Previously, spring.thymeleaf.cache was only applied to auto-configured
      TemplateResolver. This commit also applies the propery to the
      auto-configured ThymeleafViewResolver.
      
      Closes gh-5395
      a4d7a775
    • Andy Wilkinson's avatar
      Record trace with response status of 500 following unhandled exception · 92100291
      Andy Wilkinson authored
      Previously, if the filter chain threw an unhandled exception,
      WebRequestTraceFilter would record a trace with a response status of
      200. This occurred because response.getStatus() would return 200 as
      the container had not yet caught the exception and mapped it to an
      error response.
      
      This commit updates WebRequestTraceFilter to align its behaviour with
      MetricsFilter. It now assumes that the response status will be a 500
      and only updates that to the status of the response if the call to the
      filter chain returns successfully.
      
      To avoid making a breaking change to the signature of the protected
      enhanceTrace method, an HttpServletResponseWrapper is used to include
      the correct status in the trace.
      
      Closes gh-5331
      92100291
    • Andy Wilkinson's avatar
      Tolerate possible null Flyway MigrationVersion when using Flyway 4.0 · 2e540780
      Andy Wilkinson authored
      Flyway 4.0 provides support for repeatable migrations that do not
      have a version. When such a migration has been performed,
      MigrationInfo.getMigrationVersion() will return null and, previously,
      FlywayEndpoint would fail with an NPE.
      
      This commit updates FlywayEndpoint to use null as the version when
      MigrationInfo.getMigrationVersion() returns null.
      
      Closes gh-5700
      2e540780
  13. 15 Apr, 2016 2 commits
  14. 12 Apr, 2016 4 commits
    • Phillip Webb's avatar
      Merge pull request #5053 from spauk/master · a2f482b7
      Phillip Webb authored
      * pull5053:
        Make UserInfoTokenServices.getPrincipal protected
      a2f482b7
    • Sergey Pauk's avatar
      Make UserInfoTokenServices.getPrincipal protected · 8542f4f4
      Sergey Pauk authored
      Update UserInfoTokenServices.getPrincipal() so that it can be overridden
      by subclasses to allow a custom authenticated principal to be returned
      from the authorized request parameters.
      
      Fixes gh-5053
      8542f4f4
    • Phillip Webb's avatar
      Fix possible binder IndexOutOfBoundsException · b1656be3
      Phillip Webb authored
      Update RelaxedDataBinder.extendCollectionIfNecessary to use the current
      index when checking if the path node is an array.
      
      Fixes gh-5635
      b1656be3
    • Andy Wilkinson's avatar
      Handle relative URLs in jar's Class-Path when getting changeable URLs · 1412eaa0
      Andy Wilkinson authored
      5e0ba6ea added support for reading a jar manifest's Class-Path
      attribute when resolving changeable URLs from a URLClassLoader,
      however it did not handle relative URLs, i.e. URLs without a protocol,
      correctly.
      
      This commit updates ChangeableUrls so that it uses the URL of the
      JAR that contains the manifest as the base for any new URLs that
      are created. When the Class-Path entry is relative, this base will
      be used. When the Class-Path entry is absolutee, URL's constructor
      will ignore the supplied base.
      
      Closes gh-5665
      1412eaa0
  15. 10 Apr, 2016 6 commits
  16. 07 Apr, 2016 1 commit
    • Andy Wilkinson's avatar
      Consider jar's Class-Path attribute when getting changeable URLs · 5e0ba6ea
      Andy Wilkinson authored
      To overcome command length limits on Windows, IntelliJ IDEA may launch
      an application with a single jar on the classpath that contains that
      application's actual classpath in the Class-Path attribute of its
      manifest. This would prevent DevTools restarts from working as it
      only considered the single jar's URL when identifying changeable URLs
      and ignored the URLs added to the classpath via the jar's manifest.
      
      This commit updates ChangeableUrls when it is created from a
      URLClassLoader to consider the Class-Path manifest attribute of any
      jars in the class loader's URLs. This allows the full classpath to
      be considered when identifying URLs that are changeable and that
      need to be monitored for restart triggering.
      
      Closes gh-5127
      5e0ba6ea
  17. 06 Apr, 2016 4 commits