Community
Participate
Working Groups
Created attachment 168665 [details] screenshot Description: "HTTP Status 500" when click the Tube Chart Series for chart-viewer-sample deployed on Tomcat 6.0. Build number: 2.6.0.v20100517-0630 Steps to reproduce: 1. Deploy chart-viewer-sample on Tomcat 6.0 and start the server. 2. Run "http://host:port/chart-viewer-sample". 3. Click the chart-viewer-sample deployed on Tomcat 6.0 Expected result: The hyperlink works. Actual result: This works for chart-viewer-sample deployed on Tomcat 5.5 (see the screenshot).
Error log: org.apache.jasper.JasperException: /drill/bugDetail.jsp(21,11) Attribute value SampleHelper.createSampleDesignTimeChart("Bug details of " + component + " component","Year","Number") is quoted with " which must be escaped when used within the value org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:40) org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:407) org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:198) org.apache.jasper.compiler.Parser.parseQuoted(Parser.java:301) org.apache.jasper.compiler.Parser.parseAttributeValue(Parser.java:250) org.apache.jasper.compiler.Parser.parseAttribute(Parser.java:212) org.apache.jasper.compiler.Parser.parseAttributes(Parser.java:155) org.apache.jasper.compiler.Parser.parseCustomTag(Parser.java:1252) org.apache.jasper.compiler.Parser.parseElements(Parser.java:1467) org.apache.jasper.compiler.Parser.parse(Parser.java:138) org.apache.jasper.compiler.ParserController.doParse(ParserController.java:216) org.apache.jasper.compiler.ParserController.parse(ParserController.java:103) org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:154) org.apache.jasper.compiler.Compiler.compile(Compiler.java:315) org.apache.jasper.compiler.Compiler.compile(Compiler.java:295) org.apache.jasper.compiler.Compiler.compile(Compiler.java:282) org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:586) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:317) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:342) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:267) javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
Tomcat versions prior to 5.5.27 doesn't follow the quote requirements of Jsp Spec. Tomcat version 5.5.27 onwards quotes are checked strictly. Nested quotes has to be escaped.
Since new Tomcat Server checks quotation in jsp strictly, escaped the characters in attributes.
Verified in build (2.6.0.v20100521-0630), closed.