1. 29 Sep, 2020 1 commit
  2. 28 Sep, 2020 4 commits
  3. 26 Sep, 2020 1 commit
  4. 25 Sep, 2020 8 commits
  5. 24 Sep, 2020 6 commits
    • Andy Wilkinson's avatar
      Align default tldScanPatterns with Tomcat's · 6dc8e681
      Andy Wilkinson authored
      Previously, we configured embedded Tomcat in such a way that no TLD
      scan patterns were configured. This differed from a standalone
      Tomcat installation where 4 patterns are configured that take
      precedence over some of the skip patterns. The missing scan patterns
      resulted in the skip patterns preventing the discovery of Log4j2's
      TLDs.
      
      This commit updates TomcatServletWebServerFactory to configure the
      same four scan patterns as standalone Tomcat configures by default.
      
      Fixes gh-23302
      6dc8e681
    • Andy Wilkinson's avatar
      Consider SpringBootTest's web environment in context cache key · bf9d23e5
      Andy Wilkinson authored
      Previously, the web environment configured on `@SpringBootTest` was not
      part of the context cache key. As a result, two test classes that has
      identical configuration other than one using a MOCK web environment and
      the other using a DEFINED_PORT web environment would share a context
      when they should not do so. Classes that use MOCK and RANDOM_PORT were
      not affected as the use of RANDOM_PORT results in a property for the
      port being added to the environment.
      
      This commit adds a new ContextCustomizer, SpringBootTestWebEnvironment,
      that is used to capture the `webEnvironment` from `@SpringBootTest`
      and use it in its hashCode and equals implementations. This fixes the
      problem as all context customizers are evaluated when determing the
      equality of two context cache keys.
      
      Fixes gh-23085
      bf9d23e5
    • Andy Wilkinson's avatar
      Merge branch '2.1.x' into 2.2.x · d208ec92
      Andy Wilkinson authored
      Closes gh-23471
      d208ec92
    • Andy Wilkinson's avatar
      Upgrade CI to Docker 19.03.13 · 39a24b09
      Andy Wilkinson authored
      Closes gh-23469
      39a24b09
    • Andy Wilkinson's avatar
      Merge branch '2.1.x' into 2.2.x · 11e68717
      Andy Wilkinson authored
      Closes gh-23473
      11e68717
    • Andy Wilkinson's avatar
      Update CI images to use ubuntu:bionic-20200903 · 06906900
      Andy Wilkinson authored
      Closes gh-23468
      06906900
  6. 23 Sep, 2020 2 commits
  7. 22 Sep, 2020 16 commits
  8. 21 Sep, 2020 2 commits
    • Andy Wilkinson's avatar
      Polish Log4j2 XML configuration tests · 0edf7cb9
      Andy Wilkinson authored
      See gh-22983
      0edf7cb9
    • Andy Wilkinson's avatar
      Consume level and dateformat patterns as system props in Log4j config · f6492cd0
      Andy Wilkinson authored
      Previously LOG_LEVEL_PATTERN and LOG_DATEFORMAT_PATTERN were not
      consumed as system properties in log4j2.xml and log4j2-file.xml. As a
      result, the logging.pattern.level and logging.pattern.dateformat
      configuration properties, which are translated into the
      LOG_LEVEL_PATTERN and LOG_DATEFORMAT_PATTERN system properties
      respectively had no effect.
      
      This commit updates the log4j2.xml and log4j2-file.xml config files to
      consume LOG_LEVEL_PATTERN and LOG_DATEFORMAT_PATTERN as system
      properties. When the system property is not set, the configuation falls
      back to the default values specified in the config files. Tests for
      both log4j2.xml and log4j2-file.xml to verify the behaviour have also
      bean added.
      
      Fixes gh-22983
      f6492cd0