1. 17 7月, 2015 4 次提交
    • J
      9f15f347
    • B
      Fix tests · 106cce58
      Brian Clozel 提交于
      Issue: SPR-13241
      106cce58
    • B
      Upgrade to groovy 2.4.4 · ec5019db
      Brian Clozel 提交于
      ec5019db
    • B
      PathResourceResolver should not resolve root path · 064abad9
      Brian Clozel 提交于
      When resolving resources, the PathResourceResolver creates a Resource
      instance and checks whether this resource `exists()` and `isReadable()`.
      While that last call returns false for folders on the file system, both
      calls return true for folders located inside JARs.
      
      If a JAR location is configured as a resource location, then
      PathResourceResolver can resolve folders in JARs as valid locations and
      candidates for paths resolution.
      
      Prior to this change, the PathResourceResolver would resolve "" as a
      valid resource path (here, the "/META-INF/resources/webjars" if
      configured, for example) and return a "" path for this resource,
      effectively turning all "/" URLs into empty ones "".
      
      This commit fixes the resolveUrlPathInternal implementation by not
      allowing empty paths as valid resource paths.
      
      Issue: SPR-13241
      064abad9
  2. 16 7月, 2015 4 次提交
  3. 15 7月, 2015 11 次提交
  4. 14 7月, 2015 6 次提交
  5. 13 7月, 2015 6 次提交
  6. 10 7月, 2015 4 次提交
    • S
      Polish CORS support · 882fe129
      Sebastien Deleuze 提交于
      882fe129
    • S
      Populate RequestAttributes before invoking Filters in MockMvc · 9c46228a
      Sam Brannen 提交于
      When using the Spring TestContext Framework (TCF) to load a
      WebApplicationContext and the Spring MVC Test Framework (MockMvc) to
      test a controller, two instances of MockHttpServletRequest will be
      created. Due to an ordering issue with regard to population of the
      RequestAttributes, it is therefore possible that a filter accesses the
      mocked request managed by the TCF, while the controller accesses the
      mocked request managed by MockMvc, and this leads to test failures if
      the controller expects data from the filter to be present in the
      request.
      
      This commit fixes this bug by ensuring that the RequestAttributes
      backed by the mocked request managed by MockMvc are stored in the
      RequestContextHolder before any filters are invoked by MockMvc.
      
      Issue: SPR-13217
      9c46228a
    • S
      Improve documentation for @IfProfileValue precedence · 3d951755
      Sam Brannen 提交于
      Issue: SPR-11902
      3d951755
    • S
      Introduce CorsFilter and CorsConfigurationMapping · cd9b3903
      Sebastien Deleuze 提交于
      This commit introduces the following changes:
       - The new CorsConfigurationMapping class allows to share the mapped
         CorsConfiguration logic between AbstractHandlerMapping and CorsFilter
       - In AbstractHandlerMapping, the Map<String, CorsConfiguration>
         corsConfiguration property has been renamed to corsConfigurations
       - CorsFilter allows to process CORS requests at filter level, using any
         CorsConfigurationSource implementation (for example
         CorsConfigurationMapping)
      
      Issue: SPR-13192
      cd9b3903
  7. 09 7月, 2015 5 次提交