-
1. Re: Wildfly - xhtml (jsf) file source is displayed when suffixed with dot (.)
ctomc Dec 16, 2015 5:35 AM (in response to xfr.dev)Xavier Frisaye wrote:
When debugging, it appears to be io.undertow.servlet.handlers.DefaultServlet which returns the source but it is difficult to debug because the source of undertow 1.0.15.Final (found in central maven repo) doesn't seem to be exactly the same provided by Wildfly...
Have-you already met this kind of problem?
well, WildFly 8.2.0 uses undertow 1.1.0.Final
which can be found in maven central The Central Repository Search Engine
9.0.2 uses 1.2.9.Final which can also be found in central.
In any case I would suggest you try to reproduce this on WildFly 10 CR4 and if you can still reproduce it.
please create jira issue and attach simple reproducer.
-
2. Re: Wildfly - xhtml (jsf) file source is displayed when suffixed with dot (.)
mayerw01 Dec 16, 2015 9:09 AM (in response to xfr.dev)This sounds strange.
I've just deployed the contracts application from the javaee7-samples-1.0 to wildfly-8.2.0.Final and could not reproduce this issue on Linux.
http://localhost:9080/contracts-4.0-SNAPSHOT/faces/index.xhtml. responds with "Not Found" which is expected.
Could it be that this is related to your web browser or operating System?
-
3. Re: Wildfly - xhtml (jsf) file source is displayed when suffixed with dot (.)
xfr.dev Dec 16, 2015 9:55 AM (in response to mayerw01)Hi,
Thanks for your answers.
I've tested under
- OS : Windows 7 SP1
- Browsers : Firefox 42.0, IE 10
Same behaviour with those browsers.
Where have you found the sample? I've thought that this problem is Wildfly related because it works with Glassfish 4.11 but it could be also an application problem !?
-
4. Re: Wildfly - xhtml (jsf) file source is displayed when suffixed with dot (.)
mayerw01 Dec 16, 2015 11:18 AM (in response to xfr.dev)I'd downloaded the samples from here GlassFish Community — Project Kenai
-
5. Re: Wildfly - xhtml (jsf) file source is displayed when suffixed with dot (.)
xfr.dev Dec 17, 2015 2:08 AM (in response to xfr.dev)I've just tested the contracts sample application using Wildfly 8.2.0.Final, 9.0.2.Final and also 10 CR4 and i have the same issue.
-
6. Re: Wildfly - xhtml (jsf) file source is displayed when suffixed with dot (.)
mayerw01 Dec 17, 2015 6:18 AM (in response to xfr.dev)On Linux everything works as expected (as well in Firefox 42 as in Chromium 46). But I tried to reproduce this in Windows 7 now. This is what I did
- Start WildFly 9.0.2.Final
- Copy contracts-4.0-SNAPSHOT.war from Linux to Windows 7 to be sure I use the same program
- Deploy contracts-4.0-SNAPSHOT.war in WildFly 9.0.2.Final
- Start Firefox 43.0 and open localhost:8080/contracts-4.0-SNAPSHOT/faces/index.xhtml (without dot) --> OK
- change url to localhost:8080/contracts-4.0-SNAPSHOT/faces/index.xhtml. (with dot) --> File Open dialog is opening
- Start Internet Explorer 11.0 and open localhost:8080/contracts-4.0-SNAPSHOT/faces/index.xhtml (without dot) --> YAHOO Search is started
- Start Internet Explorer 11.0 and open http://localhost:8080/contracts-4.0-SNAPSHOT/faces/index.xhtml (without dot but with protocol) --> OK
- Change protocol to http://localhost:8080/contracts-4.0-SNAPSHOT/faces/index.xhtml. (with dot and with protocol) --> OK
What I can say now for sure is that at least in my environments the same war file behaves differently on Windows. But I am not a MS Windows expert. Maybe this is caused by some configurations in my Windows
-
7. Re: Wildfly - xhtml (jsf) file source is displayed when suffixed with dot (.)
xfr.dev Dec 17, 2015 8:57 AM (in response to xfr.dev)Here my results (no matter the wildfly version):
- Firefox 42.0 : http://localhost:8081/contracts/faces/index.xhtml (without dot at the end) : OK
- Firefox 42.0 : http://localhost:8081/contracts/faces/index.xhtml. (with dot at the end) : KO : File Open dialog is opening, when opening the file, the jsf source file is shown
- IE 10 : http://localhost:8081/contracts/faces/index.xhtml : (without dot at the end) : OK
- IE 10 :http://localhost:8081/contracts/faces/index.xhtml.http://localhost:8081/contracts/faces/index.xhtml. (with dot at the end) : KO : the page is displayed BUT when viewing source jsf tags are presents (#{facesContext.externalContext.requestContextPath} for example) thus, in the end, the same issue occurs than using Firefox because the source of the xhtml file is displayed... does-it really works as expected with IE 11???
-
8. Re: Wildfly - xhtml (jsf) file source is displayed when suffixed with dot (.)
mayerw01 Dec 17, 2015 11:24 AM (in response to xfr.dev)No, in step 8 I would expect a "Not Found" instead of OK (means page is displayed in IE). But I have no idea why the browsers are behaving differently in Windows
-
9. Re: Wildfly - xhtml (jsf) file source is displayed when suffixed with dot (.)
jaikiran Dec 23, 2015 9:27 AM (in response to xfr.dev)This looks like a critical issue. Can you file a JIRA in WFLY Agile Board - JBoss Issue Tracker so that someone can take a look. Maybe ctomc swd847 or jason.greene will be able to take a look. I don't have a Windows system to try this myself.
-
10. Re: Wildfly - xhtml (jsf) file source is displayed when suffixed with dot (.)
jamezp Dec 23, 2015 12:16 PM (in response to xfr.dev)I just tested this on WildFly 10.0.0.CR5 and it seems to be okay. I get a 404 if I add a dot to the end of JSF pages.
--
James R. Perkins
-
11. Re: Wildfly - xhtml (jsf) file source is displayed when suffixed with dot (.)
jaikiran Dec 25, 2015 2:40 AM (in response to jamezp)Thanks for verifying James. I went ahead and submitted a couple of PRs containing just testcases to make sure this isn't reproducible on other versions of WildFly:
https://github.com/wildfly/wildfly/pull/8530
https://github.com/wildfly/wildfly/pull/8531
I don't know if that test go through the same code path as the original poster's application, but going by the description in this thread, that test at least covers the DefaultServlet usage.
-
12. Re: Wildfly - xhtml (jsf) file source is displayed when suffixed with dot (.)
jaikiran Dec 25, 2015 2:45 AM (in response to xfr.dev)Xavier Frisaye wrote:
Hi,
Thanks for your answers.
I've tested under
- OS : Windows 7 SP1
- Browsers : Firefox 42.0, IE 10
xfr.dev, can you please add a few more details including the Java vendor and version you are using with WildFly? Also, what exact path is WildFly installed on that machine and how are you starting the server (is any IDE involved)?
-
13. Re: Wildfly - xhtml (jsf) file source is displayed when suffixed with dot (.)
jaikiran Dec 26, 2015 3:34 AM (in response to jaikiran)I was able to reproduce this against 9.x of WildFly on Windows. More details here https://github.com/wildfly/wildfly/pull/8530#issuecomment-167294750
xfr.dev, this issue wasn't reproducible against the recently release 10.0.0.CR5 WildFly 10 CR5 is released! · WildFly. You might want to give that a try.
Thank you for reporting this issue.
-
14. Re: Wildfly - xhtml (jsf) file source is displayed when suffixed with dot (.)
xfr.dev Jan 4, 2016 4:18 AM (in response to jaikiran)Hi,
I've just submitted a Jira ticket : https://issues.jboss.org/browse/WFLY-5920
I also confirm that this issue is not reproductible with 10.0.0.CR5 wildfly version.