[ 
https://issues.apache.org/jira/browse/OFBIZ-4390?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13095769#comment-13095769
 ] 

BJ Freeman commented on OFBIZ-4390:
-----------------------------------

this is do to the fact that allowed paths 
     <filter-class>org.ofbiz.webapp.control.ContextFilter</filter-class>
        <init-param>
            <param-name>disableContextSecurity</param-name>
            <param-value>N</param-value>
        </init-param>
        <init-param>
            <param-name>allowedPaths</param-name>
            
<param-value>/error:/control:/products:/select:/index.html:/index.jsp:/default.html:/default.jsp:/images</param-value>
        </init-param>
        <init-param>
            <param-name>errorCode</param-name>
            <param-value>403</param-value>
        </init-param>
        <init-param>
            <param-name>redirectPath</param-name>
            <param-value>/control/main</param-value>
        </init-param>
    </filter>


> Ecommerce Error Page Does Not Work
> ----------------------------------
>
>                 Key: OFBIZ-4390
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-4390
>             Project: OFBiz
>          Issue Type: Bug
>          Components: specialpurpose/ecommerce
>            Reporter: Sam Hamilton
>            Priority: Minor
>         Attachments: OFBIZ-4390-error.txt
>
>
> If you are using the ecommerce app and you force it to generate a 404 error 
> page it defaults to the tomcat error page rather than using what I think it 
> should be using - /error/error.jsp? 
> You can test the 404 error out here - 
> http://demo-trunk.ofbiz.apache.org/ecommerce/error/ 
> The expected error page code is here 
> https://github.com/apache/ofbiz/blob/trunk/specialpurpose/ecommerce/webapp/ecommerce/error/error.jsp
> As pointed out by Bilgin on the mailing list adding the following code into 
> web.xml should resolve the problem however it just generates more errors
> <error-page>
>    <error-code>404</error-code>
>    <location>/error/error.jsp</location>
> </error-page>

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to