Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoakim Erdfelt2015-06-30 00:33:41 +0000
committerJoakim Erdfelt2015-06-30 00:35:18 +0000
commitf644926b2b2edbdf1c16bd1a13549e705d6f2ca9 (patch)
tree84043a00066160fa8b6379e47f339ef9456f68f0 /apache-jstl/src/test/webapp
parentbc71a57afa8a8318cabb707ceefbbf24b98bf609 (diff)
downloadorg.eclipse.jetty.project-f644926b2b2edbdf1c16bd1a13549e705d6f2ca9.tar.gz
org.eclipse.jetty.project-f644926b2b2edbdf1c16bd1a13549e705d6f2ca9.tar.xz
org.eclipse.jetty.project-f644926b2b2edbdf1c16bd1a13549e705d6f2ca9.zip
471388 - StringIndexOutOfBoundsException when using <c:url> with parameters
Adding testcase to demonstrate the bug
Diffstat (limited to 'apache-jstl/src/test/webapp')
-rw-r--r--apache-jstl/src/test/webapp/WEB-INF/web.xml7
-rw-r--r--apache-jstl/src/test/webapp/ref.jsp2
-rw-r--r--apache-jstl/src/test/webapp/urls.jsp6
3 files changed, 15 insertions, 0 deletions
diff --git a/apache-jstl/src/test/webapp/WEB-INF/web.xml b/apache-jstl/src/test/webapp/WEB-INF/web.xml
new file mode 100644
index 0000000000..b05e490c65
--- /dev/null
+++ b/apache-jstl/src/test/webapp/WEB-INF/web.xml
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<web-app xmlns="http://xmlns.jcp.org/xml/ns/javaee"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee http://xmlns.jcp.org/xml/ns/javaee/web-app_3_1.xsd"
+ version="3.1">
+ <description>Test webapp for JSTL</description>
+</web-app> \ No newline at end of file
diff --git a/apache-jstl/src/test/webapp/ref.jsp b/apache-jstl/src/test/webapp/ref.jsp
new file mode 100644
index 0000000000..0debf75489
--- /dev/null
+++ b/apache-jstl/src/test/webapp/ref.jsp
@@ -0,0 +1,2 @@
+<%@ page contentType="text/plain; charset=UTF-8" %>
+Reference Page: No useful content here, just used for other tests \ No newline at end of file
diff --git a/apache-jstl/src/test/webapp/urls.jsp b/apache-jstl/src/test/webapp/urls.jsp
new file mode 100644
index 0000000000..bc18e9ac5f
--- /dev/null
+++ b/apache-jstl/src/test/webapp/urls.jsp
@@ -0,0 +1,6 @@
+<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
+<%@ page contentType="text/plain; charset=UTF-8" %>
+Title: JSTL c:url Tests
+[c:url value] = <c:url value="/ref.jsp" />
+<c:set var="foo" value="ref.jsp;key=value"/>
+[c:url param] = <c:url value="${foo}"><c:param name="noframe" value="true"/></c:url>

Back to the top