Comment 30 for bug 1606331

Revision history for this message
Karl Stenerud (kstenerud) wrote :

This appears to be already fixed on xenial.

Here is the old repro case, which no longer triggers a bug:

# lxc launch ubuntu:xenial tester && lxc exec tester bash
# apt update && apt dist-upgrade -y && apt install -y tomcat8
# mkdir /var/lib/tomcat8/webapps/test && echo "<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>$Title$</title>
</head>
<body>
<%
    Class.forName("org");
%>
</body>
</html>
" >/var/lib/tomcat8/webapps/test/test.jsp
# curl localhost:8080/test/test.jsp
...
 An exception occurred processing JSP page /test.jsp at line 8
5: &lt;/head&gt;
6: &lt;body&gt;
7: &lt;%
8: Class.forName(&quot;org&quot;);
9: %&gt;
10: &lt;/body&gt;
11: &lt;/html&gt;
...
</pre><p><b>root cause</b></p><pre>java.lang.StringIndexOutOfBoundsException: String index out of range: 3
...

Please test to make sure this fixes it for you as well on xenial.