Juergen Hoeller
adb54b2c69
Backported DispatcherServlet and ServletContextResourcePatternResolver refinements
...
Issue: SPR-13011
11 years ago
Juergen Hoeller
3e2491c058
Polishing
11 years ago
Juergen Hoeller
d879bad248
Polishing
...
(cherry picked from commit 7ed7f98 )
11 years ago
Juergen Hoeller
e5207e6231
Polishing
11 years ago
Brian Clozel
2d3fe96cd6
Allow file locations for resource handling
...
Prior to this change, location checks for serving resources would append
`/` to the location path it didn't already have one.
This commit makes sure not to append a `/` if the provided location is
actually a file.
Issue: SPR-12747
11 years ago
Juergen Hoeller
9a7871fb70
Consistent validation logic
...
Issue: SPR-12655
11 years ago
Juergen Hoeller
186fef6808
Revised validation javadoc
...
Issue: SPR-12655
11 years ago
Juergen Hoeller
3ed24bca20
ServletUriComponentsBuilder.java avoids NPE on scheme check
...
Issue: SPR-12723
(cherry picked from commit 61cc3b5 )
11 years ago
Stephane Nicoll
64e79ba692
Use hasLength rather than hasText
11 years ago
Stephane Nicoll
4bcf92f176
Restore JDK 5 compatiblity
11 years ago
Juergen Hoeller
62a6c3733d
Polishing
...
(cherry picked from commit e9d24d5 )
11 years ago
Juergen Hoeller
e353af65d2
HandlerExecutionChain prevents re-adding the interceptors array to the list (and declares varargs now)
...
Issue: SPR-12566
(cherry picked from commit 37713ae )
11 years ago
Brian Clozel
379d2e6da0
Fix location checks for servlet 3 resources
...
SPR-12354 applied new checks to make sure that served static resources
are under authorized locations.
Prior to this change, serving static resources from Servlet 3 locations
such as "/webjars/" would not work since those locations can be within
one of the JARs on path. In that case, the checkLocation method would
return false and disallow serving that static resource.
This change fixes this issue by making sure to call the
`ServletContextResource.getPath()` method for servlet context resources.
Note that there's a known workaround for this issue, which is using a
classpath scheme as location, such as:
"classpath:/META-INF/resources/webjars/" instead of "/webjars".
Issue: SPR-12432
(cherry picked from commit 1214624 )
12 years ago
Juergen Hoeller
7f1e5a49a4
Polishing
...
(cherry picked from commit 2675ce7 )
12 years ago
Rossen Stoyanchev
3f68cd633f
Apply extra checks to static resource handling
...
- remove leading '/' and control chars
- improve url and relative path checks
- account for URL encoding
- add isResourceUnderLocation final verification
Issue: SPR-12354
12 years ago
Juergen Hoeller
d5e4592728
Polishing
12 years ago
Juergen Hoeller
d53b67f5cb
TilesConfigurer defensively expects null from getResources in case of no resources found
...
Also includes order preservation for resource results with Tiles 2 as well as retrieval failure logging with Tiles 3.
Issue: SPR-12362
(cherry picked from commit c8b8dc5 )
12 years ago
Juergen Hoeller
f812998826
Set ResponseStatusExceptionResolver.messageSource in the MVC Java config
...
Issue: SPR-12380
(cherry picked from commit aa82da8 )
12 years ago
Juergen Hoeller
e819999c08
Polishing
12 years ago
Juergen Hoeller
21f0057990
Polishing
12 years ago
Juergen Hoeller
a4c8e6176c
Consistent attribute documentation/formatting in spring-context and spring-mvc schemas
...
(cherry picked from commit b5763fe )
12 years ago
Juergen Hoeller
7cf4a4ed2d
DispatcherServlet's checkMultipart detects wrapped MultipartRequest as well
...
Issue: SPR-12114
(cherry picked from commit 786fd92 )
12 years ago
Juergen Hoeller
0c89279d61
Polishing
12 years ago
Juergen Hoeller
36918d6bb7
Polishing (includes varargs for selected setters)
12 years ago
Juergen Hoeller
214f026ea3
Polishing
12 years ago
Juergen Hoeller
c0a4631fd1
Polishing
12 years ago
Juergen Hoeller
a3ebf13579
SelectedValueComparator defensively handles null values in exhaustiveCompare
...
Issue: SPR-12001
(cherry picked from commit 980f971 )
12 years ago
Juergen Hoeller
fe72fcede5
Polishing
...
(cherry picked from commit ede2150 )
12 years ago
Juergen Hoeller
983cce22d8
Package javadoc cleanup for web.servlet.mvc, removing outdated references
...
Issue: SPR-11935
(cherry picked from commit 7396210 )
12 years ago
Juergen Hoeller
c033f889bf
Polishing (backported from master)
...
(cherry picked from commit 48f753f )
12 years ago
Juergen Hoeller
779a6b79eb
Polishing
12 years ago
Juergen Hoeller
99a3e9cacb
Revised ByteArrayOutputStream handling in MarshallingView and co
...
Issue: SPR-11646
(cherry picked from commit 8006696 )
12 years ago
Juergen Hoeller
f93bfa8f84
ResourceHttpRequestHandler explicitly closes a Resource's InputStream
...
Issue: SPR-11644
(cherry picked from commit 3a96f16 )
12 years ago
Juergen Hoeller
b80dc9d642
Polishing
...
Issue: SPR-11262
(cherry picked from commit d628025 )
12 years ago
Juergen Hoeller
623b1fc0d5
Polishing
12 years ago
Juergen Hoeller
a2bdc284f9
DispatcherServlet logs request URI in encoded form only
...
Issue: SPR-11591
(cherry picked from commit 465ca24 )
12 years ago
Juergen Hoeller
dbd5f67498
Consistently applied appropriate ByteArrayOutputStream initial capacities across the codebase
...
Issue: SPR-11594
(cherry picked from commit dd7f54c )
12 years ago
Juergen Hoeller
9585752693
Polishing
12 years ago
Juergen Hoeller
5c0fdb05bd
AbstractFlashMapManager needs to decode parameter names
...
Also includes general alignment with the 4.0.3 versions of AbstractFlashMapManager and FlashMapManagerTests.
Issue: SPR-11504
12 years ago
Juergen Hoeller
75e08695a0
Mixed polishing along with recent changes
...
(cherry picked from commit 14e5a02 )
12 years ago
Juergen Hoeller
5da79ebca6
Related polishing
...
Issue. SPR-11428
(cherry picked from commit 9c6df76 )
12 years ago
Juergen Hoeller
bb7a1372c0
Avoid unnecessary getMappingForMethod repeat (in particular for RequestMappingInfo)
...
Issue. SPR-11428
(cherry picked from commit f913940 )
12 years ago
Juergen Hoeller
7e3c722146
Objects with multi-threaded access should not lazily populate a hash field
...
Issue. SPR-11428
(cherry picked from commit 72fe7eb )
12 years ago
Juergen Hoeller
4ac4630b0b
Polishing
12 years ago
Juergen Hoeller
85e336e6da
Consistently avoid close() call on Servlet OutputStream
...
Issue: SPR-11413
(cherry picked from commit 5f1592a )
12 years ago
Juergen Hoeller
b223e6efec
MarshallingView should not close response OutputStream after copying to it
...
MarshallingView also explicitly skips BindingResult when searching for a model object now, implementing common custom subclass behavior out-of-the-box.
Issue: SPR-11411
Issue: SPR-11417
12 years ago
Juergen Hoeller
4d2d223b0c
Revised ExcelViewTests
12 years ago
Juergen Hoeller
61ab40cd7a
Upgraded to Commons FileUpload 1.3.1, TestNG 6.8.7, Hibernate 4.2.8, Joda-Time 2.2, Jackson 1.7.9
12 years ago
Juergen Hoeller
4233d0a99e
Removed outdated hibernate3 references across the codebase
...
Issue: SPR-9028
(cherry picked from commit 09e2e58 )
12 years ago
Sebastien Deleuze
a2ec8f864e
Fix EvalTagTests with locales other than English
...
Issue: SPR-11392
(cherry picked from commit edb0b0e )
12 years ago