- 31 10月, 2019 4 次提交
-
-
由 Brian Clozel 提交于
See gh-23884
-
由 Sam Brannen 提交于
-
由 Christoph Dreis 提交于
-
由 Brian Clozel 提交于
Prior to this commit, the `DateFormatterRegistrar` would register the annotation-based formatter before the pattern-based formatter. This would create an issue when an application tries to convert a `String` to an annotated `@DateTimeFormat Date`: since the converters are considered in reversed order of registration in `GenericConversionServicei#ConvertersForPair`, the pattern-based variant would always be considered before the annotation-based variant, overriding the developer's opinion. This commit aligns the `DateFormatterRegistrar` with the `DateTimeFormatterRegistrar` and registers the annotation-based variant last. Closes gh-23893
-
- 30 10月, 2019 17 次提交
-
-
由 Juergen Hoeller 提交于
Closes gh-23832
-
由 Sam Brannen 提交于
Prior to this commit, if MockServletContext was configured with a FileSystemResourceLoader, invocations of the following methods on a Microsoft Windows operating system resulted in an InvalidPathException if the supplied path contained a colon (such as "C:\\temp"). This is inconsistent with the behavior on non-Windows operating systems. In addition, for comparable errors resulting in an IOException, those methods (except getRealPath()) return null instead of throwing the exception. - getResourcePaths() - getResource() - getResourceAsStream() - getRealPath() This commit makes handling of InvalidPathException and IOException consistent for these methods: both exceptions now result in null be returned by these methods. Closes gh-23717
-
由 Stephane Nicoll 提交于
Previously, the infrastructure provided by WebMvcConfigurationSupport and WebFluxConfigurationSupport can lead to unexpected results due to the lack of qualifier for certain dependencies. Those configuration classes refer to very specific beans, yet their injection points do not define such qualifiers. As a result, if a candidate exists for the requested type, the context will inject the existing bean and will ignore a most specific one as such constraint it not defined. This can be easily reproduced by having a primary Validator whereas a dedicated "mvcValidator" is expected. Note that a parameter name is in no way a constraint as the name is only used as a fallback when a single candidate cannot be determined. This commit provides explicit @Qualifier metadata for such injection points, renaming the parameter name in the process to clarify that it isn't relevant for the proper bean to be resolved by the context. Closes gh-23887
-
由 Juergen Hoeller 提交于
-
由 Juergen Hoeller 提交于
Closes gh-23879
-
由 Juergen Hoeller 提交于
Closes gh-23834
-
由 Juergen Hoeller 提交于
Closes gh-23829
-
由 Rossen Stoyanchev 提交于
See gh-23741
-
由 Rossen Stoyanchev 提交于
A ResponseStatus exception now exposes extra method to return headers for the response. This is used in ResponseStatusExceptionHandler to apply the headers to the response. Closes gh-23741
-
由 Rossen Stoyanchev 提交于
-
由 Rossen Stoyanchev 提交于
See gh-23793
-
由 Rossen Stoyanchev 提交于
Closes gh-23793
-
由 Juergen Hoeller 提交于
Closes gh-23794
-
由 Juergen Hoeller 提交于
Closes gh-23792
-
由 Juergen Hoeller 提交于
Latest dependency updates (Tomcat 9.0.27, Undertow 2.0.27, RxJava 2.2.13, Gson 2.8.6, Apache Johnzon 1.2.1, Hibernate ORM 5.4.8, EclipseLink 2.7.5, H2 1.4.200, POI 4.1.1, Quartz 2.3.2, WebJars Locator 0.42, HtmlUnit 2.36, Checkstyle 8.26, Mockito 3.1, Objenesis 3.1)
-
由 Juergen Hoeller 提交于
-
由 Juergen Hoeller 提交于
Closes gh-23747
-
- 29 10月, 2019 11 次提交
-
-
由 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
-
由 Rossen Stoyanchev 提交于
-
由 Rossen Stoyanchev 提交于
Centralized maxInMemorySize exposed via CodecConfigurer along with ability to plug in an instance of MultipartHttpMessageWrite. Closes gh-23884
-
由 Rossen Stoyanchev 提交于
See gh-23884
-
由 Brian Clozel 提交于
See gh-23884
-
由 Brian Clozel 提交于
-
由 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
-
由 Sam Brannen 提交于
See gh-23769
-
由 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
-
由 Sam Brannen 提交于
-
由 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
-
- 28 10月, 2019 6 次提交
-
-
由 Stephane Nicoll 提交于
Closes gh-23871
-
由 Stephane Nicoll 提交于
-
由 Stephane Nicoll 提交于
Closes gh-23870
-
由 Sam Brannen 提交于
See gh-23878
-
由 Sam Brannen 提交于
-
由 Sebastien Deleuze 提交于
Closes gh-23874
-
- 25 10月, 2019 2 次提交
-
-
由 Mark Paluch 提交于
See gh-23864 Closes gh-23873
-
由 Sam Brannen 提交于
-