-
Notifications
You must be signed in to change notification settings - Fork 328
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
checking if result is used on DefaultLogicResult #804
Conversation
Since this is a legacy code from vr3, may @lucascs wants to see. For me, everything right. |
logger.debug("Forwarding to {}", path); | ||
request.getRequestDispatcher(path).forward(request, response); | ||
if (response.isCommitted() || result.used()) { | ||
return null; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd log debug here, at least.
done, thks! |
checking if result is used on DefaultLogicResult
String path = resolver.pathFor(DefaultControllerMethod.instanceFor(type, method)); | ||
logger.debug("Forwarding to {}", path); | ||
request.getRequestDispatcher(path).forward(request, response); | ||
if (response.isCommitted() || result.used()) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
result.used() always returns true.. no more forward :(
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You're right! 💣 💣 💣
Do you want to open a pull request fixing this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sure! tks!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is it really needed checking for result.used()
?
Atual VRaptor's version probably is breanking many application since forward
isn't working.
Closes #778