1. 02 Apr, 2018 1 commit
    • Phillip Webb's avatar
      Be defensive when clearing caches for restart · ecfc8d73
      Phillip Webb authored
      Update `Restarter` to be much more defensive when attempting to clear
      caches. We now use `clearCache()` methods whenever possible, and only
      fall back to field access when absolutely necessary. In addition field
      access now ignore any exceptions.
      
      Fixes gh-12719
      ecfc8d73
  2. 30 Mar, 2018 2 commits
  3. 29 Mar, 2018 1 commit
  4. 27 Mar, 2018 6 commits
  5. 24 Mar, 2018 2 commits
  6. 23 Mar, 2018 4 commits
  7. 16 Mar, 2018 4 commits
    • Phillip Webb's avatar
      Fix copyright header for edited files · a8f366a5
      Phillip Webb authored
      a8f366a5
    • Phillip Webb's avatar
      Add text/plain error response support · 23892e33
      Phillip Webb authored
      Refine `BasicErrorController` mappings so that only JSON and XML get
      structured responses. A simple string response is returned for all
      other media types.
      
      Fixes gh-12513
      23892e33
    • Phillip Webb's avatar
      Only use jar shortcut for matching URLs · e975dbe3
      Phillip Webb authored
      Update JAR `Handler` logic so that the existing `jarFile` is only used
      if the requested URL starts with the same path. Prior to this commit it
      was possible to construct a URL with another URL as context. This could
      mean that the `handler` was shared and the already resolved `jarFile`
      contained in the handler wasn't necessarily suitable.
      
      Fixes gh-12483
      e975dbe3
    • Phillip Webb's avatar
      Polish · e40acf24
      Phillip Webb authored
      e40acf24
  8. 15 Mar, 2018 4 commits
  9. 12 Mar, 2018 3 commits
  10. 08 Mar, 2018 4 commits
  11. 07 Mar, 2018 5 commits
  12. 06 Mar, 2018 2 commits
    • Stephane Nicoll's avatar
      Polish · f8c1821c
      Stephane Nicoll authored
      See gh-12365
      f8c1821c
    • Stephane Nicoll's avatar
      Fix expansion of static-locations array · 66d1f5cd
      Stephane Nicoll authored
      This commit fixes a NPE when the static-locations array of
      `ResourceProperties` has to be expanded as the setter is cleaning the
      values of the array and is affected by a non-intuitive behaviour of the
      binder.
      
      When the binder needs to set an element of an array and the size of the
      array isn't large enough, the binder proceeds as follows:
      
      * An array of the required size is created
      * The content of the original array is copied over
      * The setter of the property is invoked with the new array
      * The setter of the property is invoked and the returned array is
      mutated to set the requested value
      
      While one would expect the array to contain the requested value when the
      setter is invoked, this is not the case. Also, the array might contain
      null values if a value at index 8 should be set and the array has a size
      of 3.
      
      All in all, `ResourceProperties#appendSlashIfNecessary` has to account
      for `null` and an additional round of cleaning has to happen once
      binding has completed.
      
      Closes gh-12360
      66d1f5cd
  13. 05 Mar, 2018 2 commits