Juergen Hoeller
ad61fb75da
Polishing
2023-08-02 01:24:11 +02:00
Juergen Hoeller
a7b7466274
Polishing
2023-07-19 01:17:25 +02:00
rstoyanchev
1cd994d3a8
Encapsulate full path initialization
2023-07-11 11:45:23 +01:00
Juergen Hoeller
14da1aca2f
Adapt no-arg value from interface-based InvocationHandler callback
...
Closes gh-30756
(cherry picked from commit b77d4d01c5 )
2023-06-26 20:06:06 +02:00
Sam Brannen
2e51aa250e
Update copyright headers
2023-06-22 14:54:43 +02:00
Juergen Hoeller
c27acad616
Specific check for parent of MethodInvocationInfo ClassLoader
...
See gh-30389
2023-06-12 11:33:54 +02:00
Sébastien Deleuze
0bad69d5fb
Fix SSE with indenting serializer in WebMvc.fn
...
This commit ensures that HTTP headers like "text/event-stream"
are correctly forwarded to the converter used in
SseServerResponse for proper pretty print handling.
Close gh-30302
2023-04-07 11:56:47 +02:00
Juergen Hoeller
7ad01a94d6
Use MethodInvocationInfo class loader in case of JDK platform loader as well
...
Closes gh-30210
(cherry picked from commit 491ae1e3be )
2023-03-29 13:56:23 +02:00
Juergen Hoeller
5d6d653cbd
Use MethodInvocationInfo class loader in case of core JDK interface type
...
Closes gh-30210
(cherry picked from commit ce2689eead )
2023-03-28 13:56:02 +02:00
rstoyanchev
eafe3afe11
Polishing and minor refactoring in HandlerMappingIntrospector
...
Closes gh-30128
2023-03-20 08:38:11 +00:00
Juergen Hoeller
3adabf391f
Consistent ordering of Resource methods (backported from main)
2023-02-15 12:35:41 +01:00
Juergen Hoeller
cdea667e58
Test for request attribute visibility in FreeMarker (backported from main)
...
See gh-29787
2023-02-14 16:57:22 +01:00
Juergen Hoeller
42e7318cbb
Polishing
2023-01-31 16:48:36 +01:00
Juergen Hoeller
000383fbff
Explicit target ClassLoader for interface-based infrastructure proxies
...
Includes direct JDK Proxy usage instead of ProxyFactory where possible.
Closes gh-29913
(cherry picked from commit 4d6249811e )
2023-01-31 16:48:27 +01:00
Sébastien Deleuze
e4e90bbec0
Polish RouterFunctionDsl KDoc
2023-01-23 13:27:34 +01:00
Arjen Poutsma
60c89dd2df
Fix IllegalStateException in empty ProducesRequestCondition
...
When comparing empty ProducesRequestCondition, compareTo would throw an
IllegalStateException if the Accept header was invalid. This commit
fixes that behavior.
See gh-29794
Closes gh-29836
2023-01-18 10:45:12 +01:00
rstoyanchev
525fc7a27e
Optimize object creation PartialMatchHelper
...
Closes gh-29667
2022-12-09 11:27:03 +00:00
Sam Brannen
41a6b7ec20
Update copyright headers for source code changed since August 2022
...
The changes in this commit were performed using the newly introduced
update_copyright_headers.sh script.
2022-12-03 17:23:21 -05:00
Juergen Hoeller
0e33537d9d
Consistent use of DefaultParameterNameResolver in tests
2022-11-23 11:17:58 +01:00
Sam Brannen
72b44cebea
Catch Error for SourceHttpMessageConverter in WebMvcConfigurationSupport
...
Prior to this commit, the addDefaultHttpMessageConverters() method in
WebMvcConfigurationSupport caught Throwable for SourceHttpMessageConverter
instantiation; whereas, the rest of the code base correctly catches Error
for SourceHttpMessageConverter instantiation (to handle errors such as
NoClassDefFoundError).
Throwable should not be caught since it can mask other categories of
failures (such as configuration errors).
This commit therefore switches to catching Error for SourceHttpMessageConverter
instantiation in WebMvcConfigurationSupport.
Closes gh-29537
2022-11-21 17:37:22 +01:00
Sam Brannen
e5878ab15b
Fix precondition assertions
2022-11-08 12:08:08 +01:00
Sam Brannen
5f02323b9c
Avoid String allocations with Assert.isTrue()
2022-11-05 14:40:45 +01:00
Sam Brannen
deabd66939
Avoid String allocations with Assert.state()
2022-11-04 16:24:59 +01:00
Sam Brannen
a281d8c3fd
Polishing
2022-11-04 16:24:59 +01:00
Christoph Dreis
58bb6e7181
Reduce allocations caused by producible media types
...
Closes gh-29412
2022-11-02 11:15:26 +01:00
Sébastien Deleuze
1439c5bb8f
Document how to use WebJars without webjars-locator-core dependency
...
Closes gh-29322
2022-10-16 20:28:57 +02:00
Marc Wrobel
ce49068ff9
Fix links in Javadoc and reference docs
...
- Fix broken links (by using a new URL, an alternative URL, or a
Wayback Machine link)
- Use HTTPS where possible
- Remove https://issuetracker.springsource.com/browse/EBR-349 : this
link is dead and is also mentioned in
https://jira.spring.io/browse/SPR-8093
- Clean up nohttp allowlist.lines
Closes gh-28876
2022-09-14 17:00:11 +02:00
Marc Wrobel
92a231cf91
Fix typos in Javadoc, reference docs, and code
...
Closes gh-28822
2022-09-14 16:45:34 +02:00
Sam Brannen
50dff77d01
Polish contribution
2022-09-14 16:08:01 +02:00
Marc Wrobel
0f479293b1
Replace use of the <tt> HTML tag in Javadoc
...
The <tt> HTML tag was used in HTML 4 to define teletype text. It is not
supported in HTML5, and its use is discouraged.
https://developer.mozilla.org/en-US/docs/Web/HTML/Element/tt
Closes gh-28819
2022-09-14 15:56:16 +02:00
Johnny Lim
00f7f5ff0a
Use MediaType.APPLICATION_FORM_URLENCODED_VALUE
...
See gh-28771
2022-07-29 14:40:45 +03:00
Marc Wrobel
bd3499671c
Fix typos in test code
...
This commit fixes typos in test class names, test method names, and
test variable names.
Closes gh-28807
2022-07-13 16:24:11 +02:00
Sam Brannen
5b1a84e395
Polish contribution
...
See gh-28789
2022-07-12 10:39:11 +02:00
Marc Wrobel
6985fa8057
Fix and improve Javadoc in spring-webmvc
...
Closes gh-28789
2022-07-12 10:39:03 +02:00
Sam Brannen
d274e893a6
Remove superfluous static declaration for enum, annotation, & interface
2022-07-09 16:16:13 +02:00
Sam Brannen
0621a8eff1
Fix concurrency issues in FreeMarkerMacroTests
...
Prior to this commit, tests in these two classes intermittently failed
with errors similar to the following, due to concurrent modification
of shared files.
expected:
"<input type="text" id="name" name="name" value="Darren" >"
but was:
"<input type="text" id="name" name="name" value="Darren" >
"hidden"/>"
This commit fixes this by creating a new temporary folder for each test
method invocation.
2022-07-05 13:17:50 +02:00
rstoyanchev
b95362a3fd
Avoid request params access for form data in logRequest
...
Close gh-28587
2022-07-01 02:55:16 +01:00
Sam Brannen
e19e9757d4
Polishing
2022-06-20 15:19:02 +02:00
Juergen Hoeller
30c873b4b5
Move NestedServletExceptionTests to spring-web module
...
See gh-25162
2022-06-14 15:09:21 +02:00
rstoyanchev
8c777111fa
Revise commit #52d068 with corrected test
...
Update test detecting RouterFunction beans in parent contexts to use
different bean names and avoid shadowing. Changed the fix accordingly
given that BeanProvider does detect beans in parent contexts.
See gh-28595
2022-06-14 10:07:56 +01:00
rstoyanchev
d28d603081
Polishing
...
See gh-28595
2022-06-14 09:35:17 +01:00
rstoyanchev
52d0681ca1
WebMvc respects RouterFunction beans ordering
...
Closes gh-28595
2022-06-14 09:20:19 +01:00
Sam Brannen
aab9da0366
Polish LocaleResolver support
2022-06-03 13:10:55 +02:00
Sam Brannen
1beb7068f6
Use new AssertJ exception assertions
2022-05-31 14:08:28 +02:00
Sam Brannen
8547f8601d
Polish LocaleResolver tests
2022-05-31 11:55:30 +02:00
rstoyanchev
f95bf96ec9
Correct path encoding/decoding in PathResourceResolver
...
Decoding is required for non-UrlResource when the HandlerMapping is
not expected to decode the path. Encoding is the opposite.
This commit ensures correct determination of whether the HandlerMapping
is expected to have decoded the path or not that in turn depends on
whether PathPattern or PathMatcher is in use.
Closes gh-27791
2022-05-23 11:03:42 +01:00
rstoyanchev
66a5742df3
Polishing
2022-05-23 10:07:03 +01:00
Sam Brannen
06679a5583
Fix tests in DispatcherServletTests
...
See gh-28424
2022-05-11 16:00:26 +02:00
Sam Brannen
745eb1a881
Polish DispatcherServletTests
2022-05-11 15:59:47 +02:00
Sam Brannen
1c10cdd1e8
Update copyright dates
...
See gh-28433
2022-05-10 11:33:32 +02:00