1. 19 12月, 2016 15 次提交
  2. 16 12月, 2016 1 次提交
    • R
      Add Support for ForwardedHeaderFilter sendRedirect · 5e774e0b
      Rob Winch 提交于
      Previously ForwrdedHeaderFilter did not ensure that
      HttpServletResponse.sendRedirect worked properly based on
      X-Forwarded-* headers.
      
      This commit updates ForwardedHeaderFilter to overrided the
      HttpServletResponse.sendRedirect method to ensure
      X-Forwarded-* headers are honored.
      
      Issue SPR-15020
      5e774e0b
  3. 14 12月, 2016 2 次提交
  4. 13 12月, 2016 1 次提交
  5. 12 12月, 2016 2 次提交
    • B
      Do not include URL hash in resource paths · b59455b6
      Brian Clozel 提交于
      When getting the lookup path of a resource, both query params and hashes
      should be removed from the request path.
      
      This commit fixes the public path resolution for paths like
      `/resources/main.svg#icon-hamburgermenu`.
      
      Issue: SPR-14928
      b59455b6
    • B
      Allow RedirectAttributes on ExceptionHandlers · 1a6dc86f
      Brian Clozel 提交于
      Prior to this commit, `@ExceptionHandler` methods could not be injected
      with `RedirectAttributes` arguments. This would make it impossible to
      handle an error by redirecting to another view and add flashmap
      attributes, to be included in the model when the next view is called.
      
      Here is an example:
      
      ```
      @ExceptionHandler(MyException.class)
      public String handleException(MyException ex, RedirectAttributes
          redirectAttributes) {
      
        redirectAttributes.addFlashAttribute("errorMessage",
            "This is an error message");
        return "redirect:/";
      }
      ```
      
      This commit adds a new `RedirectAttributesMethodArgumentResolver`
      instance in the list of pre-configured `HandlerMethodArgumentResolver`
      in `ExceptionHandlerExceptionResolver`.
      
      Issue: SPR-14651
      Cherry-picked from: 17089d60
      1a6dc86f
  6. 09 12月, 2016 4 次提交
  7. 08 12月, 2016 2 次提交
  8. 07 12月, 2016 1 次提交
    • B
      Fix Netty4ClientHttpRequestFactory POST/PUT requests · 9d37472f
      Brian Clozel 提交于
      This commit ensures that POST/PUT requests sent by the Netty client have
      a Content-Length header set.
      
      Integration tests have been refactored to use mockwebserver instead of
      Jetty and have been parameterized to run on all available supported
      clients.
      
      Issue: SPR-14860
      Cherry-picked from: ec8391a7
      9d37472f
  9. 02 12月, 2016 3 次提交
  10. 01 12月, 2016 9 次提交