Bug 60424 - Hessian Burlap application : JMeter inserts 0x0D before 0x0A automatically (http binary post data)
Summary: Hessian Burlap application : JMeter inserts 0x0D before 0x0A automatically (h...
Status: RESOLVED FIXED
Alias: None
Product: JMeter
Classification: Unclassified
Component: HTTP (show other bugs)
Version: 3.0
Hardware: PC All
: P2 normal (vote)
Target Milestone: JMETER_5.1
Assignee: JMeter issues mailing list
URL:
Keywords: FixedInTrunk
Depends on:
Blocks:
 
Reported: 2016-11-27 21:38 UTC by Niki Mouse
Modified: 2018-10-28 21:10 UTC (History)
1 user (show)



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Niki Mouse 2016-11-27 21:38:49 UTC
Hi,
I like to work with JMeter and I like to get more and more experiences, too.
At the moment I want to do a load test with JMeter on http-protocol combined with binary data. The application communicates via http Hessian protocol (a binary data stream over http).

protocol: http binary content; Content-Type: x-application/hessian

Test-Setup:
- java application (app) with proxy setting: port 8888 
- JMeter started with proxy setting: port 9000
- Fiddler started with sniffing at port 9000
- JMeter recorder with port = 8888

steps:
1. start Fiddler
2. start JMeter with proxy settings and prepare workbench with recorder setting: port = 8888
3. start application 
4. take an action "A"
5. play recorded request (without saving the project)
6. compare the post data of http-requests of step 4 and 5 with Fiddler

actual result:
- there are additional Bytes when JMeter plays the request
- especially: 0x0D is inserted before 0x0A
  i.a.: recorded part: 0x93, 0x0A, 0x6D
        played part  : 0x93, 0x0D, 0x0A, 0x6D
  i.a.: recorded part: 0x64, 0x0A, 0x6D
        played part  : 0x64, 0x0D, 0x0A, 0x6D
  i.a.: recorded part: 0x6E, 0x0A, 0x70
        played part  : 0x6E, 0x0D, 0x0A, 0x70

  
expected result:
- there is no modification of the binary stream

It seems that there is a difference between recording and replay of recorded data. With that behaviour (post data modification) I can't use JMeter and I have to look for other tools.

Regards,
Niko
PS: I can't attach files, because I use it at as a proof of concept at customer side.
--------------------------------

JMeter: Version 3.0 r1743807
Java: java.version=1.8.0_101
java.vm.name=Java HotSpot(TM) 64-Bit Server VM
os: Microsoft Windows 10
os.arch=amd64
os.version: 10.0.14393
-------------------------------
Comment 1 Philippe Mouawad 2018-10-28 21:10:25 UTC
Author: pmouawad
Date: Sun Oct 28 21:10:03 2018
New Revision: 1845065

URL: http://svn.apache.org/viewvc?rev=1845065&view=rev
Log:
Bug 60424 - Hessian Burlap application : JMeter inserts 0x0D before 0x0A automatically (http binary post data)
Bugzilla Id: 60424

Modified:
    jmeter/trunk/bin/jmeter.properties
    jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/proxy/AbstractSamplerCreator.java
    jmeter/trunk/xdocs/changes.xml
    jmeter/trunk/xdocs/usermanual/properties_reference.xml