[jboss-jira] [JBoss JIRA] (WFLY-4690) Include in Jsp cause StackOverflow
Bertrand Cedric (JIRA)
issues at jboss.org
Wed May 27 10:52:02 EDT 2015
[ https://issues.jboss.org/browse/WFLY-4690?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Bertrand Cedric updated WFLY-4690:
----------------------------------
Steps to Reproduce:
I join to this ticket a little war where you can see the same behavior (except the stackoverflow)
URL to test the jar
http://127.0.0.1:8080/sample/login
{code:title=login.jsp}
Login Page v1 <br>
<jsp:include page="/WEB-INF/HelloWorld.jsp"/>
{code}
{code:title=HelloWorld.jsp}
Hello World include !!!!
{code}
{code:xml|title=web.xml}
<web-app
xmlns="http://java.sun.com/xml/ns/javaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd"
version="3.0">
<servlet>
<servlet-name>login</servlet-name>
<jsp-file>/WEB-INF/jsp/login.jsp</jsp-file>
</servlet>
<servlet>
<servlet-name>helloWorld</servlet-name>
<jsp-file>/WEB-INF/HelloWorld.jsp"</jsp-file>
</servlet>
<servlet-mapping>
<servlet-name>login</servlet-name>
<url-pattern>/login</url-pattern>
</servlet-mapping>
</web-app>
{code}
was:
I join to this ticket a little war where you can see the same behavior (except the stackoverflow)
URL to test the jar
http://127.0.0.1:8080/sample/login
{code:title=login.jsp}
Login Page v1 <br>
<jsp:include page="/WEB-INF/HelloWorld.jsp"/>
{code}
{code:title=HelloWorld.jsp}
Hello World include !!!!
{code}
{code:xml|title=web.xml}
<web-app
xmlns="http://java.sun.com/xml/ns/javaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd"
version="3.0">
<!-- <distributable/>-->
<servlet>
<servlet-name>login</servlet-name>
<jsp-file>/WEB-INF/jsp/login.jsp</jsp-file>
</servlet>
<servlet>
<servlet-name>login2</servlet-name>
<jsp-file>/WEB-INF/jsp/login2.jsp</jsp-file>
</servlet>
<servlet>
<servlet-name>helloWorld</servlet-name>
<jsp-file>/WEB-INF/HelloWorld.jsp"</jsp-file>
</servlet>
<servlet-mapping>
<servlet-name>login</servlet-name>
<url-pattern>/login</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>login2</servlet-name>
<url-pattern>/login2</url-pattern>
</servlet-mapping>
</web-app>
{code}
> Include in Jsp cause StackOverflow
> ----------------------------------
>
> Key: WFLY-4690
> URL: https://issues.jboss.org/browse/WFLY-4690
> Project: WildFly
> Issue Type: Bug
> Components: Web (Undertow)
> Affects Versions: 8.2.0.Final
> Environment: JDK 8.45
> Reporter: Bertrand Cedric
> Assignee: Stuart Douglas
> Attachments: sample.war
>
>
> When i made an include in a jsp an other jsp, I get a stackoverflow.
> I think that wildfly don't include the seconde jsp but the first and cause a infinity loop
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)
More information about the jboss-jira
mailing list