1. 30 10月, 2019 2 次提交
  2. 29 10月, 2019 11 次提交
    • B
      Add missing CORS headers defined in SockJS CORS config · 7d02ba06
      Brian Clozel 提交于
      Prior to this commit and following changes done in d27b5d0a, the CORS
      response headers would not be added for SockJS-related requests, even
      though a CORS configuration had been applied to SockJS/WebSocket.
      This was due to a missing case in our implementation: calling
      `AbstractHandlerMapping#getHandlerInternal` can return a Handler
      directly, but also a `HandlerExecutionChain` in some cases, as explained
      in the Javadoc.
      
      This commit ensures that, when checking for existing CORS configuration,
      the `AbstractHandlerMapping` class also considers the
      `HandlerExecutionChain` case and unwraps it to get the CORS
      configuration from the actual Handler.
      
      Fixes gh-23843
      7d02ba06
    • R
      Merge limits on input in codecs · ef14d76d
      Rossen Stoyanchev 提交于
      ef14d76d
    • R
      Expose maxInMemorySize via CodecConfigurer · 5abf24e7
      Rossen Stoyanchev 提交于
      Centralized maxInMemorySize exposed via CodecConfigurer along with
      ability to plug in an instance of MultipartHttpMessageWrite.
      
      Closes gh-23884
      5abf24e7
    • R
      Refine multipart parsing limits · 00ead7a7
      Rossen Stoyanchev 提交于
      See gh-23884
      00ead7a7
    • B
      Configurable limits with Synchronoss · ea6f51e9
      Brian Clozel 提交于
      See gh-23884
      ea6f51e9
    • B
      Polishing · 69bcdfc1
      Brian Clozel 提交于
      69bcdfc1
    • R
      Limits on input stream in codecs · 89d053d7
      Rossen Stoyanchev 提交于
      - Add maxInMemorySize property to Decoder and HttpMessageReader
        implementations that aggregate input to trigger
        DataBufferLimitException when reached.
      
      - For codecs that call DataBufferUtils#join, there is now an overloaded
        variant with a maxInMemorySize extra argument. Internally, a custom
        LimitedDataBufferList is used to count and enforce the limit.
      
      - Jackson2Tokenizer and XmlEventDecoder support those limits per
        streamed JSON object.
      
      See gh-23884
      89d053d7
    • S
      Polish contribution · ce0b012f
      Sam Brannen 提交于
      See gh-23769
      ce0b012f
    • V
      Preserve expires attribute in MockCookie · 9b208761
      Vedran Pavic 提交于
      At present, MockCookie doesn't preserve expires attribute. This has a
      consequence that a cookie value set using
      MockHttpServletResponse#addHeader containing an expires attribute will
      not match the cookie value obtained from
      MockHttpServletResponse#getHeader, since the expires attribute will get
      calculated based on current time.
      
      This commit enhances MockCookie to preserve the expires attribute.
      
      Closes gh-23769
      9b208761
    • S
      Polish Javadoc @param order · 24822094
      Sam Brannen 提交于
      24822094
    • A
      Add opt-in support for remote build cache and pushing to it from CI · 1a54b83a
      Andy Wilkinson 提交于
      This commit provides opt-in enablement of Gradle's remote build
      cache. When the GRADLE_ENTERPRISE_URL environment variable is set, its
      build cache node will be used as a source of cached output. If both
      GRADLE_ENTERPRISE_CACHE_USERNAME and GRADLE_ENTERPRISE_CACHE_PASSWORD
      are also set, task output produced by the build will be pushed to the
      build cache node for use by subsequent builds.
      
      Closes gh-23883
      1a54b83a
  3. 28 10月, 2019 6 次提交
  4. 25 10月, 2019 16 次提交
  5. 24 10月, 2019 5 次提交
    • S
      Introduce failing @Disabled test for gh-23856 · f8b875d2
      Sam Brannen 提交于
      f8b875d2
    • S
      Clean up warning in spring-test · 5b6337b6
      Sam Brannen 提交于
      5b6337b6
    • S
      Reinstate protected XpathRequestMatchers constructor · 13cdb70f
      Sam Brannen 提交于
      This commit makes the XpathRequestMatchers constructor protected again
      in case users have extended this class.
      13cdb70f
    • S
      Polish XpathRequestMatchers Javadoc and implementation · f3cad9f6
      Sam Brannen 提交于
      f3cad9f6
    • S
      Remove unused type parameter declarations in XpathRequestMatchers · db4d51ba
      Sam Brannen 提交于
      Prior to this commit, several of the methods in XpathRequestMatchers
      declared unused type parameters (e.g., <T>). This was obviously the
      result of copying an existing method that actually needs the type
      parameter for proper casting.
      
      For example, the following ...
      
      public <T> RequestMatcher exists() {
          // ...
      }
      
      ... should actually be declared without <T>, since T is not used in the
      implementation or in the return type:
      
      public RequestMatcher exists() {
          // ...
      }
      
      This commit removes all unused type parameter declarations in
      XpathRequestMatchers.
      
      Side Effects:
      
      Now that we have removed the unused type parameter declarations, users
      will see the following side effects if they had previously declared a
      type argument when invoking such methods.
      
      - Java: an "Unused type arguments for the non generic method ..."
        warning will be generated by the compiler, but the code will continue
        to work unmodified.
      
      - Kotlin: a "Type inference failed: Not enough information to infer
        parameter T in fun ..." compiler error will be raised, causing the
        code to no longer compile (see
        https://youtrack.jetbrains.com/issue/KT-5464). Removal of the type
        argument declaration will allow the code to work correctly again.
      
      Closes gh-23860
      db4d51ba