Skip to content
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

Reactive HTTP response based RedirectView [SPR-14534] #19103

Closed
spring-projects-issues opened this issue Jul 29, 2016 · 4 comments
Closed

Reactive HTTP response based RedirectView [SPR-14534] #19103

spring-projects-issues opened this issue Jul 29, 2016 · 4 comments
Assignees
Labels
in: web Issues in web modules (web, webmvc, webflux, websocket) type: enhancement A general enhancement
Milestone

Comments

@spring-projects-issues
Copy link
Collaborator

spring-projects-issues commented Jul 29, 2016

Daniel Fernández opened SPR-14534 and commented

An equivalent to Spring MVC's RedirectView so that the ViewResolver can return these when the view name specified at the controller starts with the "redirect:" prefix.


Affects: 5.0 M1

Issue Links:

Referenced from: commits 300f2cd, 2e994f7

@spring-projects-issues
Copy link
Collaborator Author

Sébastien Deleuze commented

Rossen Stoyanchev I think I can take care of this one if you don't mind.

@spring-projects-issues
Copy link
Collaborator Author

Sébastien Deleuze commented

Pull request submitted.

@spring-projects-issues
Copy link
Collaborator Author

spring-projects-issues commented Nov 28, 2016

Sébastien Deleuze commented

Merged via this commit.

The redirectUrl encoding will be handled as part of #19098.

@spring-projects-issues
Copy link
Collaborator Author

Abhijit Sarkar commented

@sdeleuze @snicoll How is this used? The following gives me an exception:

return ServerResponse.status(TEMPORARY_REDIRECT)
    .location(URI.create(authorizationUrl))
    .build();
java.lang.IllegalStateException: Could not resolve view with name ''.
	at org.springframework.web.reactive.result.view.ViewResolutionResultHandler.lambda$resolveViews$5(ViewResolutionResultHandler.java:276) ~[spring-web-reactive-5.0.0.BUILD-SNAPSHOT.jar:5.0.0.BUILD-SNAPSHOT]
	at reactor.core.publisher.FluxMapFuseable$MapFuseableSubscriber.onNext(FluxMapFuseable.java:111) [reactor-core-3.0.4.RELEASE.jar:3.0.4.RELEASE]
	at reactor.core.publisher.Operators$MonoSubscriber.complete(Operators.java:990) ~[reactor-core-3.0.4.RELEASE.jar:3.0.4.RELEASE]
	at reactor.core.publisher.MonoCollectList$MonoBufferAllSubscriber.onComplete(MonoCollectList.java:113) ~[reactor-core-3.0.4.RELEASE.jar:3.0.4.RELEASE]

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: enhancement A general enhancement
Projects
None yet
Development

No branches or pull requests

2 participants