Rossen Stoyanchev
736af46fc0
ContentCachingResponseWrapper skips contentLength for chunked responses
...
Closes gh-26182
2020-12-01 17:50:07 +00:00
Сергей Цыпанов
b929edb221
Remove unused package-private class o.s.w.u.p.SubSequence
...
(cherry picked from commit 42216b77df )
2020-11-26 15:38:14 +01:00
Juergen Hoeller
e238c8a87c
Declare resolvedCharset as transient (restoring serializability)
...
Closes gh-26127
2020-11-20 18:57:30 +01:00
Rossen Stoyanchev
37bda566eb
Allow "*" for Access-Control-Expose-Headers
...
Closes gh-26113
2020-11-19 09:48:41 +00:00
Rossen Stoyanchev
db2786264b
UrlPathHelper.removeJsessionid correctly appends remainder
...
Closes gh-26079
2020-11-16 11:18:20 +00:00
Juergen Hoeller
e9416b369e
Polishing
2020-11-09 18:23:45 +01:00
Juergen Hoeller
7881329cf7
Polishing
2020-11-05 18:18:38 +01:00
Rossen Stoyanchev
8c3cdc6118
Remove unused import
2020-10-30 18:43:19 +00:00
Rossen Stoyanchev
01827fd8d2
Ensure response not closed by MappingJackson2HttpMessageConverter
...
Closes gh-25987
2020-10-30 18:42:11 +00:00
Sam Brannen
449377908f
Fix JUnit 4 to AssertJ migration bugs
...
The migration from JUnit 4 assertions to AssertJ assertions resulted in
several unnecessary casts from int to long that actually cause
assertions to pass when they should otherwise fail.
This commit fixes all such bugs for the pattern `.isNotEqualTo((long)`.
2020-10-26 14:53:09 +01:00
Brian Clozel
7bee3d1574
Optimize Jackson resource management in codecs
...
Prior to this commit, references to `JsonGenerator` and
`ByteArrayBuilder` were not closed/released within codecs calls.
This prevents Jackson from reusing more efficiently shared memory
resources.
This commit properly closes/releases Jackson resources in Spring MVC,
Spring WebFlux and Spring Messaging codecs.
A benchmark on WebFlux codecs (in both single value/streaming mode)
shows significant throughput and allocation improvements for small
payloads.
Closes gh-25910
2020-10-20 15:36:23 +02:00
Rossen Stoyanchev
431ec906c4
Ensure buffers released in HttpHeadResponseDecorator
...
See gh-25908
2020-10-13 23:38:59 +01:00
Rossen Stoyanchev
1d96f6a266
HttpHeaderResponseDecorator checks for "Transfer-Encoding"
...
This commit extends the fix from b86c11cc9b
by checking for both existing Content-Length and Transfer-Encoding.
Closes gh-25908
2020-10-13 23:06:06 +01:00
Juergen Hoeller
7b6293fa05
Avoid outdated Jackson API in tests
...
See gh-25907
2020-10-13 11:13:54 +02:00
Juergen Hoeller
06b6a4be16
Polishing
2020-10-13 01:39:12 +02:00
Juergen Hoeller
f3f19504c6
Polishing
2020-10-13 00:21:07 +02:00
Juergen Hoeller
e176c4e799
Polishing
2020-10-12 19:40:50 +02:00
Juergen Hoeller
66a67ec807
Polishing
2020-10-12 18:26:14 +02:00
Juergen Hoeller
69c330d905
Attempt fallback Part resolution even without StandardMultipartHttpServletRequest
...
Closes gh-25829
2020-10-12 18:25:55 +02:00
Rossen Stoyanchev
eb11c6fa23
Reinstate removal of jsessionid from lookup path
...
Closes gh-25864
2020-10-07 11:31:52 +01:00
Juergen Hoeller
f83bb7183e
Polishing
2020-10-06 15:31:34 +02:00
Rossen Stoyanchev
2533ba5253
Use Mono.fromDirect for Jetty ReactiveRespnose
...
Closes gh-25849
2020-10-02 13:43:42 +01:00
Rossen Stoyanchev
e44b08f1fc
Minor refactoring in JettyClientHttpConnector
...
See gh-25849
2020-10-02 13:32:00 +01:00
Juergen Hoeller
6e4fcb69f0
Polishing
2020-09-25 11:26:01 +02:00
Juergen Hoeller
c1617d3c52
Polishing
2020-09-18 18:15:36 +02:00
Juergen Hoeller
f010368a66
Polishing
2020-09-15 10:08:01 +02:00
Juergen Hoeller
3c84863271
Polishing
2020-09-14 22:18:30 +02:00
Juergen Hoeller
c2f6a98c90
Lenient handling of empty Content-Disposition filename
...
Closes gh-25769
2020-09-14 22:16:12 +02:00
Arjen Poutsma
07d2c08f48
Do not tokenize Forward header value
...
This commit remove the tokenization previously used in
UriComponentsBuilder#adaptFromForwardedHeaders, in order to support
Forwarded headers that have multiple, comma-separated 'for' elements.
Closes gh-25737
2020-09-09 16:31:24 +02:00
Juergen Hoeller
ae1d15c8f4
Declare protected getCharset method as non-static
...
See gh-25509
2020-09-08 12:22:25 +02:00
Rossen Stoyanchev
b6ff12d2f5
Expose protected method in AbstractJackson2HttpMessageConverter
...
Closes gh-25509
2020-09-07 21:27:52 +01:00
Rossen Stoyanchev
b1d84067cd
UriComponentsBuilder Javadoc update
...
Closes gh-25604
2020-09-07 21:27:52 +01:00
Rossen Stoyanchev
899761f0a8
Avoid unnecessary parsing of path params
...
See gh-25690
2020-09-07 21:27:52 +01:00
Rossen Stoyanchev
f88759c3c9
Shared read-only instances of UrlPathHelper
...
UrlPathHelper is often created and used without customizations or with
the same customizations. This commit introduces re-usable, instances.
Effectively a backport of commit 23233c.
See gh-25690
2020-09-07 21:27:52 +01:00
Juergen Hoeller
141470ff58
Explicit nullability declarations for getTarget() implementations
2020-09-01 23:26:22 +02:00
Juergen Hoeller
d62202f464
Polishing
2020-09-01 10:27:36 +02:00
Juergen Hoeller
bcdc2503fa
Avoid repeated calls to getPathWithinApplication from getLookupPathForRequest
...
Closes gh-25669
2020-09-01 10:27:04 +02:00
Juergen Hoeller
6d9d4157ef
Specifically detect Joda-Time 2.x
...
Closes gh-25655
2020-08-28 19:57:51 +02:00
Juergen Hoeller
cf2e0c7959
Selected use of ArrayList instead of LinkedList in common places
...
See gh-25652
2020-08-27 14:14:44 +02:00
Juergen Hoeller
04df9b8f49
Efficient checks for empty strings and single character matches
...
Closes gh-25552
Closes gh-25553
2020-08-25 16:17:12 +02:00
Juergen Hoeller
9bf5cba3c2
Drop outdated notes on handler type versus handler method restrictions
...
Closes gh-25482
2020-08-10 14:43:27 +02:00
Juergen Hoeller
8dd285f877
Polishing
2020-08-07 13:02:43 +02:00
Sam Brannen
5576321b04
Reset charset field in MockHttpServletResponse
...
Prior to this commit, calling reset() on MockHttpServletResponse did not
reset the `charset` field to `false` which could result in the
"Content-Type" header containing `;charset=null` which in turn would
result in errors when parsing the "Content-Type" header.
This commit resets the charset field to `false` in
MockHttpServletResponse's reset() method to avoid such errors.
Closes gh-25501
2020-08-01 14:01:39 +02:00
Sam Brannen
785ab5798a
Sync MockHttpServletResponse changes
2020-08-01 12:43:26 +02:00
Sam Brannen
89bb9cb749
Polish Javadoc
2020-08-01 12:26:56 +02:00
Sam Brannen
335c3d5db6
Polish contribution
...
See gh-25445
2020-07-22 17:26:59 +02:00
XenoAmess
ab859fcc96
Refine use of substring operations
...
Closes gh-25445
2020-07-22 17:26:42 +02:00
Juergen Hoeller
65e601090f
Copy queryParams MultiValueMap through addAll (for independent List entries)
...
Closes gh-25423
2020-07-20 07:07:17 +02:00
Juergen Hoeller
9a618dc7a1
Enforce ConditionalContentCachingResponseWrapper in ShallowEtagHeaderFilter
...
Closes gh-24976
2020-07-19 19:53:29 +02:00
Juergen Hoeller
e9898f7d52
Polishing
2020-07-17 17:48:33 +02:00