You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Instead of redirecting the user, Micronaut attempts to render the view (in my case Thymeleaf) without a body, causing errors in the view due to missing variables. This leads to no response to the user at all - not even an internal server error (not sure if this is a separate bug).
The ViewsFilter class seems to have no handling for redirects.
Steps To Reproduce
Create a simple @Controller with Get and a View.
Create a view and use some variables there
Return a HttpResponse.redirect
Call the endpoint
Environment Information
Arch Linux
JDK 17
Kotlin 1.6
Example Application
No response
Version
3.3.3
The text was updated successfully, but these errors were encountered:
Brutus5000
added a commit
to Brutus5000/micronaut-views
that referenced
this issue
Mar 4, 2022
Expected Behavior
If something goes wrong in my call I use a
HttpResponse.redirect
to redirect to a dedicated error page.Code example:
Actual Behaviour
Instead of redirecting the user, Micronaut attempts to render the view (in my case Thymeleaf) without a body, causing errors in the view due to missing variables. This leads to no response to the user at all - not even an internal server error (not sure if this is a separate bug).
The ViewsFilter class seems to have no handling for redirects.
Steps To Reproduce
@Controller
with Get and a View.Environment Information
Example Application
No response
Version
3.3.3
The text was updated successfully, but these errors were encountered: