Closed
Description
Gotzon Illarramendi opened SPR-8770 and commented
In RedirectView class, 'renderMergedOutputModel' method calls to RequestDataValueProcessor inteface into this if statement:
if (getWebApplicationContext() != null) {
RequestContext requestContext = createRequestContext(request, response, model);
RequestDataValueProcessor processor = requestContext.getRequestDataValueProcessor();
if (processor != null) {
targetUrl = processor.processUrl(request,
targetUrl);
}
}
The problem is that 'getWebApplicationContext()' returns always 'null' and this lines are not executed.
I have tested with 'spring-mvc-showcase' and 'petclinic' sample applications and it happens the same in both cases.
Affects: 3.1 RC1
Issue Links:
- AOP and use of redirect view can lead to unbounded caching in AbstractAutoProxyCreator [SPR-17045] #21583 AOP and use of redirect view can lead to unbounded caching in AbstractAutoProxyCreator
- Revisit RedirectView's use of getCurrentWebApplicationContext() [SPR-13346] #17930 Revisit RedirectView's use of getCurrentWebApplicationContext()
Referenced from: commits fd97c8d