Bug 1256325 - [GSS](6.4.z) Welcome file does not work for *.jsf
Summary: [GSS](6.4.z) Welcome file does not work for *.jsf
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: JBoss Enterprise Application Platform 6
Classification: JBoss
Component: Web
Version: 6.4.2
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: CR1
: EAP 6.4.7
Assignee: Dmitrii Tikhomirov
QA Contact: Radim Hatlapatka
URL:
Whiteboard:
Depends On:
Blocks: eap647-payload 1308845
TreeView+ depends on / blocked
 
Reported: 2015-08-24 11:19 UTC by Kunjan Rathod
Modified: 2019-10-10 10:06 UTC (History)
14 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-01-17 11:56:34 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
The jsf-bug-reproducer.zip/jboss-welcome-bug-1.0-SNAPSHOT.war can be used to reproduce the issue in a plain JBoss EAP 6.4.2(latest) (5.87 KB, application/zip)
2015-08-24 11:19 UTC, Kunjan Rathod
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker WFLY-2948 0 Minor Closed Welcome file does not work for *.jsf 2019-06-07 13:59:40 UTC
Red Hat Knowledge Base (Solution) 1581423 0 None None None Never

Description Kunjan Rathod 2015-08-24 11:19:56 UTC
Created attachment 1066322 [details]
The jsf-bug-reproducer.zip/jboss-welcome-bug-1.0-SNAPSHOT.war can be used to reproduce the issue in a plain JBoss EAP 6.4.2(latest)

Description of problem:

welcome files in web.xml don't work for *.jsf


Version-Release number of selected component (if applicable):


How reproducible:
Every Time

Steps to Reproduce:
1) deploy a JSF Application with the following in web.xml:-
   ...

    <servlet>
        <servlet-name>Faces Servlet</servlet-name>
        <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
        <load-on-startup>1</load-on-startup>
    </servlet>
    <servlet-mapping>
        <servlet-name>Faces Servlet</servlet-name>
        <url-pattern>*.jsf</url-pattern>
    </servlet-mapping>

    ...

    <welcome-file-list>
        <welcome-file>index.jsf</welcome-file>
    </welcome-file-list> 

2) go to /yourcontext/ 
--> jboss show you a 404 page: JBWEB000065: HTTP Status 404 - /yourcontext/

3) go to /yourcontext/index.jsf
--> it displays the page.

Actual results:

404 page: JBWEB000065: HTTP Status 404

Expected results:

To display the *.jsf welcome page

Additional info:

The reproducer is attached.
The issue is fixed in WILDFLY 8.1.0 CR1 and FINAL.

Workaroud exists:-

Yes, create a dummy(and plain or empty) *.jsf (index.jsf for example) inside the war which allows to have the welcome-root as index.jsf and works as expected.

Comment 10 Rostislav Svoboda 2015-10-21 12:23:25 UTC
Changing to proper component.

Comment 30 Brad Maxwell 2016-01-04 22:57:36 UTC
Created attachment 1111569 [details]
tests.zip

Comment 33 Brad Maxwell 2016-01-05 22:24:10 UTC
Created attachment 1111962 [details]
tests.zip

Comment 48 Michael Cada 2016-03-02 12:24:17 UTC
Verified on EAP 6.4.7.CP.CR2

Property org.apache.tomcat.util.http.mapper.STRICT_WELCOME_FILES has to be set to true.

Comment 50 Petr Penicka 2017-01-17 11:56:34 UTC
Retroactively bulk-closing issues from released EAP 6.4 cumulative patches.


Note You need to log in before you can comment on or make changes to this bug.