Bug 63016 - Empty HTML report if source csv contains labels with quotes
Summary: Empty HTML report if source csv contains labels with quotes
Status: RESOLVED FIXED
Alias: None
Product: JMeter
Classification: Unclassified
Component: Main (show other bugs)
Version: 5.0
Hardware: PC All
: P2 normal (vote)
Target Milestone: JMETER_5.1
Assignee: JMeter issues mailing list
URL:
Keywords: FixedInTrunk
Depends on:
Blocks:
 
Reported: 2018-12-18 15:23 UTC by logox01
Modified: 2019-01-16 22:29 UTC (History)
1 user (show)



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description logox01 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