Sam Brannen
a2072de391
Update copyright headers
2023-06-15 16:21:13 +02:00
Juergen Hoeller
96ae03b48f
Merge branch '6.0.x'
2023-06-14 22:27:55 +02:00
Juergen Hoeller
c30f6aa427
Polishing
2023-06-14 22:17:39 +02:00
Juergen Hoeller
c276e5b679
Consistent use of 6.1 as generational version number
2023-06-14 21:58:45 +02:00
Juergen Hoeller
f00a8cb3a3
Remove ServerWebExchange dependency in ServerRequestObservationContext
...
Avoiding cycle between http.server and web.server packages.
See gh-30013
2023-06-14 21:57:27 +02:00
Juergen Hoeller
220995b830
Move HandlerMethodValidator to web.method.annotation package
...
Avoiding cycle between web.method.support and web.method.annotation packages.
See gh-29825
2023-06-14 21:52:55 +02:00
rstoyanchev
dcba9475ba
Allow custom ProblemDetail in ErrorResponse.Builder
...
Closes gh-30568
2023-06-14 16:48:35 +01:00
rstoyanchev
2e43412a82
Polishing in DefaultErrorResponseBuilder
...
Closes gh-30566
2023-06-14 16:48:35 +01:00
rstoyanchev
48861b67dd
Add "title" message code to ErrorResponse.Builder
...
See gh-30566
2023-06-14 16:30:15 +01:00
rstoyanchev
61eaa9333b
Polishing in ErrorResponse
...
See gh-30566
2023-06-14 16:30:15 +01:00
rstoyanchev
9c7b5cb3f5
Add ProblemDetail "type" message code
...
See gh-30566
2023-06-14 16:30:15 +01:00
Arjen Poutsma
e3c602c43a
Polishing
...
Restore thread interrupted status in JettyClientHttpRequest
2023-06-14 14:09:25 +02:00
Arjen Poutsma
5547361d18
Polishing
...
Store status code as HttpStatusCode instead of Object.
2023-06-14 12:05:49 +02:00
Arjen Poutsma
805d643347
Merge branch '6.0.x'
2023-06-14 11:45:04 +02:00
Arjen Poutsma
a73ad52a8a
Clarify removal of ResponseEntity::getStatusCodeValue
2023-06-14 11:29:21 +02:00
Juergen Hoeller
93345de687
Consistent Locale exposure for Bean Validation message assertions
...
See gh-29825
See gh-30198
2023-06-14 10:39:19 +02:00
Juergen Hoeller
bbf3c6ecac
Upgrade to Jackson 2.15
...
Closes gh-30665
2023-06-14 10:39:11 +02:00
rstoyanchev
85d81024a4
Add MethodParameter[] input to MethodValidationAdapter
...
This allows re-use of existing MethodParameter instances from controller
methods with cached metadata, and also ensures additional capabilities
such as looking up parameter annotations on interfaces.
See gh-29825
2023-06-13 17:40:57 +01:00
Sam Brannen
e7c3e1c516
Merge branch '6.0.x'
2023-06-13 17:14:03 +02:00
Sam Brannen
ed74b04520
Move web-related test for BeanUtilsRuntimeHints to spring-web
...
The dependency on spring-web from spring-beans makes it impossible to
import the projects in Eclipse IDE due to cycles between projects.
This commit therefore moves the web-related test for
BeanUtilsRuntimeHints to spring-web.
See gh-30491
2023-06-13 17:12:38 +02:00
rstoyanchev
1e3161b161
Expose MethodParameter in MissingServletRequestParameterException
...
See gh-26219
2023-06-13 11:29:35 +01:00
rstoyanchev
96895c7759
Polishing in MethodArgumentNotValidException
...
See gh-30198
2023-06-13 11:29:35 +01:00
rstoyanchev
96c494c6ad
Update error format in MethodArgumentNotValidException
...
1. Remove list markers (those can be provided in message).
2. Use ", and " between errors for readability.
3. Remove single quotes around errors.
4. If MessageSource is provided, use resolved message as is since in
that case applications have full control over each message.
Closes gh-30198
2023-06-13 11:29:35 +01:00
Sébastien Deleuze
ac35ffef9e
Merge branch '6.0.x'
2023-06-12 12:48:42 +02:00
Sébastien Deleuze
fe7f8e2de5
Polish CoWebFilter
2023-06-12 12:48:01 +02:00
Rossen Stoyanchev
bd054a4918
Add method validation to Spring MVC
...
See gh-29825
2023-06-12 11:37:55 +01:00
Arjen Poutsma
ad5bf2fac8
Merge branch '6.0.x'
2023-06-08 16:40:44 +02:00
Arjen Poutsma
ce5189a0a0
Default ServerWebExchange::cleanupMultipart implementation
...
This commit provided a default implementation for ServerWebExchange::cleanupMultipart.
See gh-30590
2023-06-08 16:31:53 +02:00
Arjen Poutsma
d7970e4ab8
Support JAXBElement in Jaxb2XmlEncoder
...
This commit introduces support for JAXBElements in the Jaxb2XmlEncoder.
Closes gh-30552
2023-06-08 15:30:41 +02:00
Arjen Poutsma
f4ef057e9e
Merge branch '6.0.x'
2023-06-08 14:42:24 +02:00
Arjen Poutsma
c1fe57135e
Clean multipart up only when data is read
...
This commit ensures that any storage used for multipart handling only
gets cleaned up if multipart data is actually retrieved via
ServerWebExchange::getMultipartData.
Closes gh-30590
2023-06-08 14:23:47 +02:00
Sam Brannen
dfbed616ba
Update copyright headers
2023-06-07 13:17:14 +02:00
Sam Brannen
714d380ec0
Merge branch '6.0.x'
2023-06-07 12:01:54 +02:00
Sam Brannen
f2ae106c32
Update deprecation Javadoc regarding "for removal in 6.2"
...
See gh-30608
2023-06-07 12:00:27 +02:00
Arjen Poutsma
df7223f39c
Remove APIs marked for removal
...
See gh-30604
2023-06-07 10:20:27 +02:00
Sam Brannen
b9e972c248
Polishing
2023-06-06 16:11:40 +02:00
Juergen Hoeller
8c6287ef7b
Expose parameter/field name for non-JavaBeans type conversion
...
Supports name-bound PropertyEditor registrations on data classes.
Includes consistent support for field-aware method parameters.
Closes gh-28284
2023-06-02 20:42:05 +02:00
Arjen Poutsma
3d63cbf076
Introduce JettyClientHttpRequestFactory
...
This commit introduces an implementation of ClientHttpRequestFactory
based on Jetty's HttpClient.
Closes gh-30564
2023-05-31 10:36:57 +02:00
rstoyanchev
b3f5d20ad8
Merge branch '6.0.x'
2023-05-30 17:18:01 +01:00
rstoyanchev
162ccdd155
Consistent handling of parts in HttpRequestValues
...
Closes gh-30520
2023-05-30 17:17:31 +01:00
rstoyanchev
f1594312cd
Polishing in HttpRequestValues and tests
...
See gh-30520
2023-05-30 17:17:31 +01:00
Arjen Poutsma
49d688f99c
Mark ClientHttpResponse::getRawStatusCode for removal
2023-05-30 15:37:58 +02:00
Arjen Poutsma
033bebf8cd
Remove buffering from ClientHttpRequest implementations
...
This commit ensures that ClientHttpRequest implementations implement
StreamingHttpOutputMessage, so that they do not expose an OutputStream,
but store a handle capable of writing to a stream instead.
Closes gh-30557
2023-05-30 15:37:58 +02:00
Sébastien Deleuze
1ce22bdcc1
Remove MethodArgumentNotValidException(Executable, BindingResult)
...
Closes gh-30559
2023-05-30 12:45:01 +02:00
Sébastien Deleuze
4e678479b9
Merge branch '6.0.x'
2023-05-30 12:44:47 +02:00
Sébastien Deleuze
2cbc7eed73
Always use MethodArgumentNotValidException(MethodParameter, BindingResult) constructor
...
gh-23846 introduced a new
MethodArgumentNotValidException(Executable, BindingResult)
constructor that can be advantageously replaced by using
MethodArgumentNotValidException(MethodParameter, BindingResult)
in ModelAttributeMethodProcessor.
This commit updates ModelAttributeMethodProcessor accordingly,
and deprecates MethodArgumentNotValidException(Executable,
BindingResult) in favor of
MethodArgumentNotValidException(MethodParameter, BindingResult).
Closes gh-30558
2023-05-30 12:41:30 +02:00
Sébastien Deleuze
7a05f81844
Polish ModelAttributeMethodProcessor#constructAttribute Javadoc
2023-05-30 12:07:52 +02:00
Sam Brannen
72152ff1f3
Merge branch '6.0.x'
2023-05-24 14:02:51 +02:00
Evgeny Nikonchuk
7f9349b7ae
Remove non-empty filename check in ContentDisposition builder
...
This commit ensures that the ContentDisposition.Builder is consistent
with ContentDisposition and accepts null/empty filenames.
Closes gh-30537
2023-05-24 13:53:46 +02:00
Juergen Hoeller
5441796675
Polishing
2023-05-23 20:01:28 +02:00