1. 12 10月, 2016 14 次提交
  2. 11 10月, 2016 9 次提交
    • B
      Resolve absolute resource links in ResourceTransformers · 7ae72948
      Brian Clozel 提交于
      This commit adapts the fix for SPR-14597 commited to spring-webmvc to
      the spring-web-reactive module.
      
      Issue: SPR-14597
      7ae72948
    • B
      Resolve absolute resource links in ResourceTransformers · 679b661e
      Brian Clozel 提交于
      Prior to this commit, `ResourceTransformer` implementations would
      resolve internal links to other resources: both relative and absolute
      request paths.
      For relative request paths, those transformers would call
      `ResourceTransformerSupport.resolveUrlPath` with the resource path,
      as provided in the original file. This can cause problems when a
      `CachingResourceResolver` is configured in the resolver chain, because
      this resolver is caching resources, deriving the cache key from the
      given resource path — this can cause collisions for cases like this:
      
          resources/
          |--foo/
          |  |--foo.css (imports style.css)
          |  |--style.css
          |--bar/
          |  |--bar.css (imports style.css)
          |  |--style.css
      
      The first "style.css" resolved resource is then cached and will be given
      to any request asking for "style.css".
      
      To avoid those issues, this commit improves the `ResourceTransformer`
      implementations to calculate the absolute request path before asking the
      chain to resolve the resource URL, thus avoiding duplications.
      The resource chain will be then asked to resolve "/foo/style/css" or
      "/bar/style.css".
      
      Issue: SPR-14597
      679b661e
    • S
      Remove duplicated elements in CorsConfiguration#combine() · 9bf8489a
      Sebastien Deleuze 提交于
      Issue: SPR-14792
      9bf8489a
    • S
      Polish CorsConfigurationTests · 196c73fa
      Sebastien Deleuze 提交于
      196c73fa
    • S
      Polish EnableAsync javadoc · ab232a53
      Stephane Nicoll 提交于
      Issue: SPR-14793
      ab232a53
    • R
      Add getHandler in reactive AbstractHandlerMapping · 1f6f0dc1
      Rossen Stoyanchev 提交于
      1f6f0dc1
    • R
      Polish reactive CORS support · 33c48e7a
      Rossen Stoyanchev 提交于
      33c48e7a
    • S
      Add Reactive CORS support · e31a2f77
      Sebastien Deleuze 提交于
      This is a port of Spring MVC CORS support for Spring Web Reactive:
       - CORS classes keep the same name but are in the
         web.cors.reactive package
       - CorsConfiguration is reused because not tied to Servlet API
       - CORS HandlerMapping integration is done at
         AbstractHandlerMapping level
       - AbstractUrlHandlerMapping and AbstractHandlerMethodMapping
         have been slightly modified to call
         AbstractHandlerMapping#processCorsRequest()
       - Both global CORS configuration + @CrossOrigin support have
         been implemented
      
      Issue: SPR-14545
      e31a2f77
    • S
      Fix HttpRequest#getURI() with Netty based engines · 0cc330e8
      Sebastien Deleuze 提交于
      Host and port are now properly retrieved from Reactor
      Netty and RxNetty (the scheme is not available).
      
      Issue: SPR-14794
      0cc330e8
  3. 08 10月, 2016 1 次提交
  4. 06 10月, 2016 4 次提交
  5. 05 10月, 2016 4 次提交
  6. 04 10月, 2016 5 次提交
    • S
      Log unresolved exceptions at error level · 324c310c
      Sebastien Deleuze 提交于
      324c310c
    • B
      Remove RxJava 1.x variants of WebClient adapters · 11aa9207
      Brian Clozel 提交于
      Issue: SPR-14743
      11aa9207
    • B
      Fix missing ETag/LastModified headers in responses · ee17f566
      Brian Clozel 提交于
      Prior to this commit, the `HttpEntityMethodProcessor` would avoid
      writing ETag/Last-Modified response headers before calling
      `ServletWebRequest` to process conditional requests. This was done to
      avoid duplicate response header values due to headers being already
      written to the underlying servlet response.
      
      This is still necessary for GET/HEAD requests, since this is properly
      handled by `ServletWebRequest` for those cases. But
      `HttpEntityMethodProcessor` should not make that decision for
      PUT/PATCH/POST responses since developers are adding response headers on
      purpose and should be in control of the situation — whereas
      `ServletWebRequest` does not write those headers in those cases.
      
      Issue: SPR-14767
      ee17f566
    • S
      Print request body in PrintingResultHandler in Spring MVC Test · 487bc750
      Sam Brannen 提交于
      Prior to this commit, the PrintingResultHandler used by the various
      print() and log() methods in Spring MVC Test printed the response body
      but not the request body.
      
      Since request bodies are sometimes generated programmatically, however,
      it can be beneficial to have the dynamically generated request body
      logged as well.
      
      This commit therefore prints the request body in PrintingResultHandler
      by delegating to the recently introduced getContentAsString() method in
      MockHttpServletRequest.
      
      Issue: SPR-14717
      487bc750
    • S
      Introduce getContentAsByteArray()/getContentAsString() in MockHtttpSvltReq · 04b8ae92
      Sam Brannen 提交于
      In order to improve debugging and logging within test suites, this
      commit introduces getContentAsByteArray() and getContentAsString()
      methods in MockHttpServletRequest, analogous to the existing methods in
      MockHttpServletResponse.
      
      Issue: SPR-14717
      04b8ae92
  7. 28 9月, 2016 2 次提交
  8. 27 9月, 2016 1 次提交