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

Pete Muir (JIRA) jira-events at lists.jboss.org
Mon Dec 31 13:15:44 EST 2007


     [ http://jira.jboss.com/jira/browse/JBSEAM-2439?page=all ]

Pete Muir updated JBSEAM-2439:
------------------------------

    Fix Version/s: 2.0.1.GA

> Exception rules in pages.xml redirect to a 404 page if redirect destination isn't in web root.
> ----------------------------------------------------------------------------------------------
>
>                 Key: JBSEAM-2439
>                 URL: http://jira.jboss.com/jira/browse/JBSEAM-2439
>             Project: JBoss Seam
>          Issue Type: Bug
>          Components: Core
>    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
>         Assigned To: Pete Muir
>             Fix For: 2.0.1.GA
>
>
> 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