[jboss-jira] [JBoss JIRA] (WFLY-3346) web.xml welcome-file redirection returns HTTP 403

roy mizrachi (JIRA) issues at jboss.org
Wed May 14 01:52:56 EDT 2014


    [ https://issues.jboss.org/browse/WFLY-3346?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12967699#comment-12967699 ] 

roy mizrachi commented on WFLY-3346:
------------------------------------

Hi Again,
The portal.do is struts action from struts-config.xml:

<action path="/portal" type="teoco.portal.actions.OpenPortalAction" scope="request" name="DynaActionCode" validate="false">
            <forward name="mobile" path="/fx/index.jsp" />
            <forward name="success" path="/main/index.jsp" />
            <forward name="successNew" path="/main/newIndex.jsp" />
        </action>

It is actually going to struts servlet which responsible of calling to the OpenPortalAction.

The mapping of the struts servlet is:
<servlet>
        <servlet-name>action</servlet-name>
        <servlet-class>org.apache.struts.action.ActionServlet</servlet-class>
        <init-param>
            <param-name>config</param-name>
            <param-value>/WEB-INF/struts-config.xml</param-value>
        </init-param>
        <init-param>
            <param-name>debug</param-name>
            <param-value>2</param-value>
        </init-param>
        <init-param>
            <param-name>detail</param-name>
            <param-value>2</param-value>
        </init-param>
        <init-param>
            <param-name>validate</param-name>
            <param-value>true</param-value>
        </init-param>
        <init-param>
			<param-name>tti.jcore.applicationName</param-name>
			<param-value>Portal</param-value>
		</init-param>
        <init-param>
            <param-name>locale</param-name>
            <param-value>true</param-value>
        </init-param>
        <init-param>
            <param-name>application</param-name>
            <param-value>application</param-value>
        </init-param>
        <load-on-startup>2</load-on-startup>
    </servlet>

<servlet-mapping>
        <servlet-name>action</servlet-name>
        <url-pattern>*.do</url-pattern>
    </servlet-mapping>


> web.xml welcome-file redirection returns HTTP 403 
> --------------------------------------------------
>
>                 Key: WFLY-3346
>                 URL: https://issues.jboss.org/browse/WFLY-3346
>             Project: WildFly
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>          Components: Web (Undertow)
>    Affects Versions: 8.1.0.CR2
>            Reporter: roy mizrachi
>            Assignee: Stuart Douglas
>
> WE get HTTP 403 forbidden when there is redirection to web.xml welcome-file.
> Example:
> * Application name Portal
> web.xml
>     <welcome-file-list>
>         <welcome-file>portal.do</welcome-file>
>     </welcome-file-list>
> What should happen is when calling http://ip:port/Portal the web server will give back the http://ip:port/Portal/portal.do
> What we get when calling http://ip:port/Portal is HTTP 403
> Calling directly to http://ip:port/Portal/portal.do works fine.
> It is very similar to issue https://issues.jboss.org/browse/WFLY-3279
> Thanks,
> Roi Mizrachi



--
This message was sent by Atlassian JIRA
(v6.2.3#6260)


More information about the jboss-jira mailing list