[jbossseam-issues] [JBoss JIRA] Created: (JBSEAM-2440) Exception rules in pages.xml redirect to a 404 page if redirect destination isn't in web root.

Fijai Cairo (JIRA) jira-events at lists.jboss.org
Mon Dec 31 01:56:43 EST 2007


Exception rules in pages.xml redirect to a 404 page if redirect destination isn't in web root.
----------------------------------------------------------------------------------------------

                 Key: JBSEAM-2440
                 URL: http://jira.jboss.com/jira/browse/JBSEAM-2440
             Project: JBoss Seam
          Issue Type: Bug
    Affects Versions: 2.0.0.GA
         Environment: JBoss 4.20 GA/ JBoss 4.22 GA, OSX 10.5.1, JRE 1.5.0_13
            Reporter: Fijai Cairo


Exception redirections rules in pages.xml to error pages that reside anywhere besides the web root always yield a 404 page. 

This rule in pages.xml works. When the exception is raised, the user is redirected to the correct error page
<exception class="com.myApp.exception.GatewayException">
        <redirect view-id="/gatewayerror.xhtml">
            <message>GatewayException.</message>
        </redirect>
</exception>

This rule doesn't work. I have the error file in a directory named "errors". When the exception is raised, the user is directed to a 404 page even though the Url reflects the right path.
<exception class="com.myApp.exception.GatewayException">
        <redirect view-id="/errors/gatewayerror.xhtml">
            <message>GatewayException.</message>
        </redirect>
</exception>

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the seam-issues mailing list