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

checking if result is used on DefaultLogicResult #804

Merged
merged 3 commits into from
Sep 22, 2014
Merged

Conversation

Turini
Copy link
Member

@Turini Turini commented Sep 18, 2014

Closes #778

@garcia-jj
Copy link
Member

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;
Copy link
Member

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.

@Turini
Copy link
Member Author

Turini commented Sep 22, 2014

done, thks!

Turini added a commit that referenced this pull request Sep 22, 2014
checking if result is used on DefaultLogicResult
@Turini Turini merged commit c1ca499 into master Sep 22, 2014
@Turini Turini deleted the checkingResultUsed branch September 22, 2014 13:39
String path = resolver.pathFor(DefaultControllerMethod.instanceFor(type, method));
logger.debug("Forwarding to {}", path);
request.getRequestDispatcher(path).forward(request, response);
if (response.isCommitted() || result.used()) {

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 :(

Copy link
Member

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?

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sure! tks!

Copy link
Contributor

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.

@andytsunami andytsunami mentioned this pull request Sep 30, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Forward + Result.use is still trying to access my jsp
6 participants