Bug 63016

Summary: Empty HTML report if source csv contains labels with quotes
Product: JMeter - Now in Github Reporter: andreaslind01
Component: MainAssignee: JMeter issues mailing list <issues>
Status: RESOLVED FIXED    
Severity: normal CC: p.mouawad
Priority: P2 Keywords: FixedInTrunk
Version: 5.0   
Target Milestone: JMETER_5.1   
Hardware: PC   
OS: All   

Description andreaslind01 2018-12-18 15:23:39 UTC
Creating a html report from a csv file that contains labels with quotes (") leads to an empty html report.

Example testplan:
-----------------
Testplan
-Thread Group
--Debug Sampler "Test"

Example report.csv:
-------------------
timeStamp,elapsed,label,responseCode,responseMessage,threadName,dataType,success,failureMessage,bytes,grpThreads,allThreads,Latency,Encoding,Hostname,IdleTime
1545134163000,0,"Debug Sampler ""Test""",200,OK,TG-1,text,true,,1000,1,1,0,UTF-8,localhost,0

Create html report:
-------------------
jmeter.bat -g report.csv -o htmlReport

After opening the html report, the browser comes up with the following error:
Uncaught SyntaxError: Unexpected identifier (dashboard.js:170)


Best regards
Comment 1 Philippe Mouawad 2018-12-18 21:27:29 UTC
Author: pmouawad
Date: Tue Dec 18 21:26:45 2018
New Revision: 1849239

URL: http://svn.apache.org/viewvc?rev=1849239&view=rev
Log:
Bug 63016 - Empty HTML report if source csv contains labels with quotes

Also Add toString methods for easier debug
Contributed by UbikLoadPack support
Bugzilla Id: 63016

Modified:
    jmeter/trunk/src/core/org/apache/jmeter/report/dashboard/JsonizerVisitor.java
    jmeter/trunk/src/core/org/apache/jmeter/report/processor/ListResultData.java
    jmeter/trunk/src/core/org/apache/jmeter/report/processor/MapResultData.java
    jmeter/trunk/src/core/org/apache/jmeter/report/processor/ValueResultData.java
    jmeter/trunk/xdocs/changes.xml
Comment 2 Philippe Mouawad 2019-01-16 22:29:46 UTC
Author: pmouawad
Date: Wed Jan 16 22:27:32 2019
New Revision: 1851488

URL: http://svn.apache.org/viewvc?rev=1851488&view=rev
Log:
Bug 63016 : Empty HTML report if source csv contains labels with quotes.

Fix wrong display in Response Time Overview
Bugzilla Id: 63016

Modified:
    jmeter/trunk/src/core/org/apache/jmeter/resources/messages.properties
    jmeter/trunk/src/core/org/apache/jmeter/resources/messages_fr.properties
Comment 3 The ASF infrastructure team 2022-09-24 20:38:15 UTC
This issue has been migrated to GitHub: https://github.com/apache/jmeter/issues/4953