Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Grails would sometimes attempt to render the wrong view, particularly
during error dispatch. This was because certain information about the view to render was stored in the request, and that was affecting whatever was forwarded to. So while Grails would try to render the view associated with an error action, suddenly it would end up rendering the original one. This fix clears certain request attributes before that request is forwarded. This was already being done for includes, so I refactored to share the code with the forwarding methods. Conflicts: src/java/org/codehaus/groovy/grails/web/servlet/mvc/SimpleGrailsControllerHelper.java src/java/org/codehaus/groovy/grails/web/util/WebUtils.java
- Loading branch information
Showing
3 changed files
with
78 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters