Skip to content

RequestDataValueProcessor not called in RedirectView [SPR-8770] #13413

Closed
@spring-projects-issues

Description

@spring-projects-issues

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:

Referenced from: commits fd97c8d

Metadata

Metadata

Assignees

Labels

in: webIssues in web modules (web, webmvc, webflux, websocket)type: bugA general bug

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions