1. 03 8月, 2018 1 次提交
    • R
      Earlier processing of forwarded headers · a8a1fc6d
      Rossen Stoyanchev 提交于
      Forwarded headers are now processed before ServerWebExchange is created
      through ForwardedHeaderTransformer which has the same logic as the
      ForwardedHeaderFilter but works on the request only.
      
      ForwardedHeaderFilter is deprecated as of 5.1 but if registered it is
      removed from the list of filters and ForwardedHeaderTransformer is used
      instead.
      
      Issue: SPR-17072
      a8a1fc6d
  2. 25 7月, 2018 2 次提交
  3. 24 7月, 2018 1 次提交
  4. 20 7月, 2018 2 次提交
    • R
      UriComponentsBuilder method to configure URI variables · 93b7a483
      Rossen Stoyanchev 提交于
      See Javadoc on UriComponentsBuilder#uriVariables for details.
      
      This helps to prepare for SPR-17027 where the MvcUriComponentsBuilder
      already does a partial expand but was forced to build UriComonents
      and then create a new UriComponentsBuilder from it to continue. This
      change makes it possible to stay with the same builder instance.
      
      Issue: SPR-17027
      93b7a483
    • R
      Minor fixes: UriComponentsBuilder, UriComponents, docs · 28cd6978
      Rossen Stoyanchev 提交于
      After the latest changes, two small fixes in the clone method to copy
      the encode flag, and in the encodeUriTemplate method to account for
      possible null query params.
      
      Improvements in the URI encoding section.
      
      Issue: SPR-17039, SPR-17027
      28cd6978
  5. 19 7月, 2018 1 次提交
  6. 17 7月, 2018 3 次提交
  7. 16 7月, 2018 1 次提交
    • R
      Support for encode() in UriComponentsBuilder · 5fb49820
      Rossen Stoyanchev 提交于
      The ability to request to encode before `build()`, and more importantly
      before expanding, allows stricter encoding to be applied to URI vars
      and consequently to neutralize the effect of characters with reserved
      meaning in a URI.
      
      Issue: SPR-17039
      5fb49820
  8. 13 7月, 2018 1 次提交
    • R
      Add maxSessions, getSessions, removeExpiredSessions · 43fbd632
      Rossen Stoyanchev 提交于
      This commit removes the session threshold check added recently which
      is not effective since maxIdleTime is usually much longer than the
      frequency of checks. The lazy triggering of expiration checks during
      create or retreive are simple and the most effective
      
      This commit also adds a maxSessions limit on the total number of
      sessions that can be created at any one time, a getSessions method
      for management purposes, and a removeExpiredSessions public API
      for manual triggering of expiration checks.
      
      Issue: SPR-17020, SPR-16713
      43fbd632
  9. 12 7月, 2018 1 次提交
    • R
      Improve expired session check algorithm · 32b75221
      Rossen Stoyanchev 提交于
      1. Add session count threshold as am extra pre-condition.
      2. Check pre-conditions for expiration checks on every request.
      
      Effectively an upper bound on how many sessions can be created before
      expiration checks are performed.
      
      Issue: SPR-17020
      32b75221
  10. 11 7月, 2018 1 次提交
  11. 30 6月, 2018 1 次提交
  12. 28 6月, 2018 3 次提交
    • J
      Polishing · 40efcc93
      Juergen Hoeller 提交于
      40efcc93
    • P
      Use tabs rather than spaces in tests · a89e716c
      Phillip Webb 提交于
      Update tests to ensure that tabs are used instead of spaces. Also
      consistently apply a new line at the end of each file.
      
      Issue: SPR-16968
      a89e716c
    • P
      Polish test code · 1c25cec4
      Phillip Webb 提交于
      Polish a few issue identified when adding checkstyle to the
      build. Although checkstyle is not enforcing rules on tests,
      these are a few minor changes that are still worth making.
      
      Issue: SPR-16968
      1c25cec4
  13. 26 6月, 2018 1 次提交
  14. 23 6月, 2018 1 次提交
  15. 19 6月, 2018 1 次提交
  16. 15 6月, 2018 1 次提交
  17. 14 6月, 2018 2 次提交
  18. 12 6月, 2018 2 次提交
    • B
      Restrict HTTP methods on Reactive HiddenHttpMethodFilter · a5cd01a4
      Brian Clozel 提交于
      This commit restricts the allowed HTTP methods on HiddenHttpMethodFilter
      (Reactive variant) to the following: PUT, DELETE, PATCH.
      
      This filter is meant to be used to simulate those methods from HTML
      forms sent by browsers, so no other methods are allowed.
      
      Issue: SPR-16836
      a5cd01a4
    • B
      Restrict HTTP methods on Servlet HiddenHttpMethodFilter · f64fa3de
      Brian Clozel 提交于
      This commit restricts the allowed HTTP methods on HiddenHttpMethodFilter
      (Servlet variant) to the following: PUT, DELETE, PATCH.
      
      This filter is meant to be used to simulate those methods from HTML
      forms sent by browsers, so no other methods are allowed.
      
      Issue: SPR-16836
      f64fa3de
  19. 09 6月, 2018 1 次提交
  20. 05 6月, 2018 1 次提交
  21. 26 5月, 2018 1 次提交
  22. 25 5月, 2018 1 次提交
  23. 24 5月, 2018 1 次提交
  24. 14 5月, 2018 2 次提交
  25. 11 5月, 2018 2 次提交
  26. 13 4月, 2018 1 次提交
    • B
      Avoid duplicate Accept header values in RestTemplate · 69e3fde2
      Brian Clozel 提交于
      Prior to this commit, the various `HttpMessageConverter` instances
      configured for a given `RestTemplate` instance could all contribute
      `MediaType` values to the "Accept:" request header.
      
      This could lead to duplicate media types in that request header,
      cluttering for the HTTP request for no reason.
      
      This commit ensures that only distinct values are added to the request.
      
      Issue: SPR-16690
      69e3fde2
  27. 11 4月, 2018 1 次提交
  28. 29 3月, 2018 1 次提交
  29. 28 3月, 2018 2 次提交