[jbossseam-issues] [JBoss JIRA] Closed: (JBSEAM-4223) Error page is called relative to invoking URL
Norman Richards (JIRA)
jira-events at lists.jboss.org
Wed Aug 5 16:33:29 EDT 2009
[ https://jira.jboss.org/jira/browse/JBSEAM-4223?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Norman Richards closed JBSEAM-4223.
Resolution: Cannot Reproduce Bug
I can't reproduce this issue on 2.1.2. There was some work done in this area which may have solved the problem. If you are still seeing the issue, please re-open with a more complete test case, as the one I constructed based on your description works as expected.
> Error page is called relative to invoking URL
> Key: JBSEAM-4223
> URL: https://jira.jboss.org/jira/browse/JBSEAM-4223
> Project: Seam
> Issue Type: Bug
> Components: Core, Exception Handling
> Affects Versions: 2.1.2.CR2
> Environment: Windows XP, WAS V7
> Reporter: Holger Schildberg
> Assignee: Norman Richards
> Fix For: 2.2.1.CR1
> the problem occurs when an exception is thrown on a page that has an rewrite pattern associated in the pages.xml. During the redirection in the exception handling process the MockViewHandler.getActionURL(FacesContext, String) constructs the wrong URL to the error page.
> Instead of returning an absolute URL it simply adds the error page's URL to the invoking address. The result is a 404 error message from the container.
> Here's the relevant configuration part of the pages.xml:
> <page view-id="/pages/myBookings.xhtml">
> <rewrite pattern="/booking/list" />
> <exception logLevel="error">
> <redirect view-id="/pages/error.xhtml">
> <message>A problem occured</message>
> Normally, after the exception occurs on /booking/list the framework should redirect to /pages/error.seam but instead it redirects to /pages/myBookings.seam/pages/error.xhtml
> As you also see, the wrong extension is used as the MockViewHandler adds the complete view Id without replacing it with the current view handler mapping.
This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the seam-issues