Bug 57806 - "audio/x-mpegurl" mime type is erroneously considered as binary by ViewResultsTree
Summary: "audio/x-mpegurl" mime type is erroneously considered as binary by ViewResult...
Status: RESOLVED FIXED
Alias: None
Product: JMeter
Classification: Unclassified
Component: Main (show other bugs)
Version: 2.13
Hardware: All All
: P2 minor (vote)
Target Milestone: ---
Assignee: JMeter issues mailing list
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-04-12 12:55 UTC by UbikLoadPack support
Modified: 2015-04-16 20:21 UTC (History)
2 users (show)



Attachments
Patch fixing issue (662 bytes, patch)
2015-04-16 20:15 UTC, UbikLoadPack support
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description UbikLoadPack support 2015-04-12 12:55:35 UTC
SampleResult#isBinaryType considers that a "audio/x-mpegurl" mime type is binary while it is text.

This is due to:
        for (int i = 0; i < BINARY_TYPES.length; i++){
            if (ct.startsWith(BINARY_TYPES[i])){
                return true;
            }
        }

This leads to response data being shown as blank in View Results Tree when Text renderer is used
Comment 1 UbikLoadPack support 2015-04-16 20:15:52 UTC
Created attachment 32655 [details]
Patch fixing issue
Comment 2 Philippe Mouawad 2015-04-16 20:21:16 UTC
Date: Thu Apr 16 20:20:55 2015
New Revision: 1674146

URL: http://svn.apache.org/r1674146
Log:
Bug 57806 - "audio/x-mpegurl" mime type is erroneously considered as binary by ViewResultsTree
Bugzilla Id: 57806

Modified:
    jmeter/trunk/src/core/org/apache/jmeter/samplers/SampleResult.java
    jmeter/trunk/xdocs/changes.xml
Comment 3 Philippe Mouawad 2015-04-16 20:21:32 UTC
Thanks for patch.
Commited.