1. 16 12月, 2015 2 次提交
    • J
      Consistent trace log messages and general polishing · 56263848
      Juergen Hoeller 提交于
      56263848
    • B
      Use LinkedHashmap to preserve insert order · 3be35c05
      Brian Clozel 提交于
      In several places in the spring-webmvc module, URL patterns / objects
      relationships are kept in `HashMap`s. When matching with actual URLs,
      the algorithm uses a pattern comparator to sort the matching patterns
      and select the most specific. But the underlying collection
      implementation does not keep the original order which can lead to
      inconsistencies.
      
      This commit changes the underlying collection implementation to
      `LinkedHashmap`s, in order to keep the insert order if the comparator
      does not reorder entries.
      
      Issue: SPR-13798
      3be35c05
  2. 15 12月, 2015 1 次提交
  3. 13 12月, 2015 1 次提交
  4. 12 12月, 2015 1 次提交
  5. 11 12月, 2015 1 次提交
  6. 09 12月, 2015 2 次提交
  7. 05 12月, 2015 1 次提交
  8. 02 12月, 2015 1 次提交
  9. 01 12月, 2015 1 次提交
    • B
      Do not rewrite relative links with FixedVersionStrategy · c2267539
      Brian Clozel 提交于
      Prior to this change, the resource handling FixedVersionStrategy would
      be applied on all links that match the configured pattern. This is
      problematic for relative links and can lead to rewritten links such as
      "/fixedversion/../css/main.css" which breaks.
      
      This commit prevents that Strategy from being applied to such links.
      Of course, one should avoid to use that VersionStrategy with relative
      links, but this change aims at not breaking existing links even if it
      means not prefixing the version as expected.
      
      Issue: SPR-13727
      c2267539
  10. 26 11月, 2015 1 次提交
  11. 25 11月, 2015 1 次提交
    • B
      Fix inputstream reading for HTTP range requests · b35d44bd
      Brian Clozel 提交于
      Prior to this commit, range requests would be served by
      ResourceHttpRequestHandler by partially reading the inputstream of
      static resources. In case of resources contained in ZIP/JAR containers,
      InputStreams may not fill the entire read buffer when calling
      `inputStream.read(byte[])`. This was the case when using Spring Boot's
      ZipInflaterInputStream - this would then not read the entire file
      content and would close the response without writing the expected body
      length indicated in the "Content-Length" header.
      
      This commit makes sure that the whole resource is read.
      
      Issue: SPR-13661
      b35d44bd
  12. 12 11月, 2015 2 次提交
  13. 09 11月, 2015 1 次提交
  14. 07 11月, 2015 3 次提交
    • R
      Expand range of whitelisted extensions by media type · a3168fde
      Rossen Stoyanchev 提交于
      This commit expands the range of whitelisted extensions by checking
      if an extension can be resolved to image/*, audo/*, video/*, as well
      as any content type that ends with +xml.
      
      Issue: SPR-13643
      a3168fde
    • R
      Whitelist extension if present in the request mapping · 237439ef
      Rossen Stoyanchev 提交于
      We know skip the Content-Disposition header for any extension if the
      chosen request mapping explicitly contains the URl extension.
      
      Issue: SPR-13629
      237439ef
    • B
      Do not process undefined conditional HTTP requests · 88936632
      Brian Clozel 提交于
      Prior to this change, the HttpEntityMethodProcessor would try to process
      conditional requests that are undefined by the spec, such as:
      
      * an HTTP GET request with "If-None-Match:*"
      * a request with both "If-None-Match" and "If-Match"
      * a request with both "If-None-Match" and "If-Unmodified-Since"
      
      This commit skips the processing of those requests as conditional
      requests and continues with normal request handling.
      
      Issue: SPR-13626
      88936632
  15. 06 11月, 2015 2 次提交
  16. 03 11月, 2015 1 次提交
  17. 02 11月, 2015 3 次提交
  18. 30 10月, 2015 2 次提交
    • R
      Further improve detecttion of custom CNVR · c5995149
      Rossen Stoyanchev 提交于
      Refine the approach of having <mvc:view-resolvers> detect and use the
      ContentNegotiationManager instance registered with
      <mvc:annotation-driven> introduced in the last commit.
      
      Issue: SPR-13559
      c5995149
    • R
      Detect custom ContentNegotiationViewResolver · f84a0c91
      Rossen Stoyanchev 提交于
      The <mvc:annotation-driven> element now adds an alias when a
      ContentNegotiationManager bean is registered with a custom name.
      This helps <mvc:view-resolvers> to more reliably find such a custom
      ContentNegotiationManager.
      
      Issue: SPR-13559
      f84a0c91
  19. 29 10月, 2015 2 次提交
    • B
      Don't throw NPE when serving webjar directories · 9334fabe
      Brian Clozel 提交于
      Prior to this change, serving resources with ResourceHttpRequestHandler
      could result in NPE when requesting an existing folder located in a JAR.
      
      This commit swallows those exceptions, as it is not possible to foresee
      those cases without reading the actual resource. This result in a HTTP
      200 response with a zero Content-Length instead of a HTTP 500 internal
      exception.
      
      Issue: SPR-13620
      9334fabe
    • J
      Consistent JSP tag documentation · a7784687
      Juergen Hoeller 提交于
      Issue: SPR-13520
      a7784687
  20. 28 10月, 2015 3 次提交
  21. 27 10月, 2015 3 次提交
  22. 15 10月, 2015 1 次提交
  23. 13 10月, 2015 1 次提交
  24. 10 10月, 2015 1 次提交
  25. 08 10月, 2015 1 次提交
  26. 06 10月, 2015 1 次提交