Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
spring-projects-issues opened this issue Oct 13, 2011 · 0 comments
Closed
Assignees
Labels
in: web Issues in web modules (web, webmvc, webflux, websocket) type: bug A general bug
Milestone

Comments

@spring-projects-issues
Copy link
Collaborator

spring-projects-issues commented Oct 13, 2011

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in: web Issues in web modules (web, webmvc, webflux, websocket) type: bug A general bug
Projects
None yet
Development

No branches or pull requests

2 participants