Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 313054

Summary: "HTTP Status 500" when click the Tube Chart Series for chart-viewer-sample deployed on Tomcat 6.0.18
Product: z_Archived Reporter: Xiaodan Wang <xwang>
Component: BIRTAssignee: Yulin Wang <Lionel.wyl>
Status: CLOSED FIXED QA Contact: Xiaodan Wang <xwang>
Severity: critical    
Priority: P3 CC: Lionel.wyl
Version: 2.6.0   
Target Milestone: 2.6.0 RC2   
Hardware: PC   
OS: Windows XP   
Whiteboard: Obsolete
Attachments:
Description Flags
screenshot none

Description Xiaodan Wang CLA 2010-05-16 22:55:26 EDT
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).
Comment 1 Xiaodan Wang CLA 2010-05-16 22:56:01 EDT
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)
Comment 2 Yulin Wang CLA 2010-05-18 02:09:09 EDT
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.
Comment 3 Yulin Wang CLA 2010-05-18 22:08:17 EDT
Since new Tomcat Server checks quotation in jsp strictly, escaped the characters in attributes.
Comment 4 Xiaodan Wang CLA 2010-05-20 22:14:24 EDT
Verified in build (2.6.0.v20100521-0630), closed.