1. 07 11月, 2019 2 次提交
  2. 16 9月, 2019 1 次提交
  3. 29 8月, 2019 1 次提交
  4. 21 8月, 2019 1 次提交
  5. 08 7月, 2019 1 次提交
    • S
      Support empty target request path in FlashMap · db8be501
      Sam Brannen 提交于
      Prior to this commit, if the user configured an empty path for the
      targetRequestPath property of a FlashMap, the FlashMapManager threw a
      StringIndexOutOfBoundsException when saving the output FlashMap for the
      next request.
      
      This commit fixes this by skipping the decoding and normalization of an
      empty target request path.
      
      Fixes gh-23240
      db8be501
  6. 01 5月, 2019 1 次提交
  7. 12 4月, 2019 1 次提交
  8. 03 4月, 2019 1 次提交
  9. 28 3月, 2019 3 次提交
  10. 27 3月, 2019 1 次提交
  11. 26 3月, 2019 1 次提交
  12. 23 3月, 2019 1 次提交
  13. 20 3月, 2019 1 次提交
  14. 09 2月, 2019 1 次提交
  15. 04 2月, 2019 2 次提交
  16. 03 1月, 2019 1 次提交
    • R
      More accurate checks for presence of MediaType.ALL · 4b24bcb7
      Rossen Stoyanchev 提交于
      Typically a straight up equals as well as Collections#contains
      checks for MediaType.ALL is susceptible to the presence of
      media type parameters.
      
      This commits adds equalsTypeAndSubtype as well as an
      isPresentIn(Collection<MimeType>) methods to MimeType to faciliate
      with checks for MediaType.ALL.
      
      Issue: SPR-17550
      4b24bcb7
  17. 13 12月, 2018 1 次提交
  18. 27 11月, 2018 2 次提交
    • R
      Polish · 3eee118b
      Rossen Stoyanchev 提交于
      3eee118b
    • O
      Sanitize request fragment in ResourceUrlEncodingFilter · 959cf616
      Ondrej Kraus 提交于
      Prior to this change, ResourceUrlEncodingFilter would try to resolve
      the resource path using request URL without removing fragment first,
      whereas only paths should be used.
      
      This commit synchronizes behavior of ResourceUrlEncodingFilter with
      behavior of ResourceUrlProvider.
      
      Issue: SPR-17535
      959cf616
  19. 21 11月, 2018 1 次提交
  20. 19 11月, 2018 2 次提交
  21. 17 11月, 2018 1 次提交
  22. 12 11月, 2018 1 次提交
  23. 25 10月, 2018 2 次提交
    • B
      Fix absolute paths when transforming resources · 2146e137
      Brian Clozel 提交于
      Prior to this commit, `ResourceTransformerSupport.toAbsolutePath`
      would call `StringUtils.applyRelativePath` in all cases. But this
      implementation is prepending the given path even if the relative path
      starts with `"/"`.
      
      This commit skips the entire operation if the given path is absolute,
      i.e. it starts with `"/"`.
      
      Issue: SPR-17432
      2146e137
    • B
      Fix ResourceUrlEncodingFilter lifecycle · 50a47691
      Brian Clozel 提交于
      Prior to this commit, the `ResourceUrlEncodingFilter` would wrap the
      response and keep a reference to the request. When
      `HttpServletResponse.encodeURL` is later called during view rendering,
      the filter looks at the request and extracts context mapping information
      in order to resolve resource paths in views.
      
      This approach is flawed, when the filter is used with JSPs - if the
      request is forwarded to the container by the `InternalResourceView`,
      the request information is overwritten by the container. When the view
      is being rendered, the information available in the request is outdated
      and does not allow to correctly compute that context mapping
      information.
      
      This commit ensures that that information is being extracted from the
      request as soon as the `ResourceUrlProvider` is set as a request
      attribute.
      
      Issue: SPR-17421
      50a47691
  24. 15 10月, 2018 1 次提交
  25. 03 9月, 2018 1 次提交
  26. 17 8月, 2018 1 次提交
  27. 15 8月, 2018 2 次提交
    • B
      Revert "Infer HTTP 404 from empty Optional/Publisher types" · f2506ca7
      Brian Clozel 提交于
      This reverts commit 7e917335.
      f2506ca7
    • B
      Infer HTTP 404 from empty Optional/Publisher types · 7e917335
      Brian Clozel 提交于
      This commit handles "empty" cases for `ResponseEntity` controller
      handler return types when wrapped with a `java.util.Optional` in Spring
      MVC or a single `Publisher` like `Mono`.
      
      Given the following example for Spring MVC:
      
      ```
      @GetMapping("/user")
      public Optional<ResponseEntity<User>> fetchUser() {
      	Optional<User> user = //...
      	return user.map(ResponseEntity::ok);
      }
      ```
      
      If the resulting `Optional` is empty, Spring MVC will infer a
      `ResponseEntity` with an empty body and a 404 HTTP response status.
      
      The same reasoning is applied to Spring WebFlux with Publisher types:
      
      ```
      @GetMapping("/user")
      public Mono<ResponseEntity<User>> fetchUser() {
      	Mono<User> user = //...
      	return user.map(ResponseEntity::ok);
      }
      ```
      
      This feature is only valid for `HttpEntity` return types and does not
      apply to `@ResponseBody` controller handlers.
      
      Issue: SPR-13281
      7e917335
  28. 12 8月, 2018 1 次提交
  29. 09 8月, 2018 2 次提交
  30. 08 8月, 2018 1 次提交
  31. 02 8月, 2018 1 次提交