Bug 61587 - Drop properties sampleresult.getbytes.headers_size and sampleresult.getbytes.body_real_size
Summary: Drop properties sampleresult.getbytes.headers_size and sampleresult.getbytes....
Status: RESOLVED FIXED
Alias: None
Product: JMeter - Now in Github
Classification: Unclassified
Component: Main (show other bugs)
Version: 3.3
Hardware: All All
: P2 enhancement (vote)
Target Milestone: ---
Assignee: JMeter issues mailing list
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-10-05 17:57 UTC by Peter Doornbosch
Modified: 2017-11-08 19:47 UTC (History)
1 user (show)



Attachments
in View Results Tree, "size in bytes" value is incorrect (261.77 KB, image/png)
2017-10-05 17:57 UTC, Peter Doornbosch
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Peter Doornbosch 2017-10-05 17:57:17 UTC
Created attachment 35397 [details]
in View Results Tree, "size in bytes" value is incorrect

When setting the properties sampleresult.getbytes.headers_size to true and sampleresult.getbytes.body_real_size to false, the reported size is just the header size (see attachment). According to the documentation, it should be header size + body size.

The funny thing, only this combination is wrong. When setting both to true, the right size (i.e. header + body) is displayed. Similarly for setting the sampleresult.getbytes.headers_size to false: only body size is shown.
Comment 1 Philippe Mouawad 2017-11-04 13:09:27 UTC
Hello Peter,
I confirm the issue, still can I ask you what was the use case for you when you tried those settings ?

I think we will drop those customizations as I personally never had to use them and there are too much customizations in JMeter already.

Thanks for your feedback.
Comment 2 Peter Doornbosch 2017-11-04 17:57:03 UTC
Hi Philippe,

I don't have a real use-case. I was just testing these options after i implemented recording sample sizes in my JMeter websocket plugin and stumbled upon this funny behavior.

If you drop these options, it's fine with me!

Regards
Peter
Comment 3 Philippe Mouawad 2017-11-08 19:47:23 UTC
Author: pmouawad
Date: Wed Nov  8 19:46:35 2017
New Revision: 1814629

URL: http://svn.apache.org/viewvc?rev=1814629&view=rev
Log:
Bug 61587 - Drop properties sampleresult.getbytes.headers_size and sampleresult.getbytes.body_real_size
Bugzilla Id: 61587

Modified:
    jmeter/trunk/bin/jmeter.properties
    jmeter/trunk/src/core/org/apache/jmeter/samplers/SampleResult.java
    jmeter/trunk/xdocs/changes.xml
    jmeter/trunk/xdocs/usermanual/component_reference.xml
    jmeter/trunk/xdocs/usermanual/properties_reference.xml
Comment 4 The ASF infrastructure team 2022-09-24 20:38:10 UTC
This issue has been migrated to GitHub: https://github.com/apache/jmeter/issues/4509