You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@jmeter.apache.org by bu...@apache.org on 2021/05/17 10:36:53 UTC
[Bug 65310] New: When using httpclient4 implement to upload files,
the content-type parameter cannot be set correctly.
https://bz.apache.org/bugzilla/show_bug.cgi?id=65310
Bug ID: 65310
Summary: When using httpclient4 implement to upload files, the
content-type parameter cannot be set correctly.
Product: JMeter
Version: 5.4.1
Hardware: PC
Status: NEW
Severity: major
Priority: P2
Component: HTTP
Assignee: issues@jmeter.apache.org
Reporter: zooltech@qq.com
Target Milestone: JMETER_5.5
Created attachment 37865
--> https://bz.apache.org/bugzilla/attachment.cgi?id=37865&action=edit
pic
There is a default content-type parameter in HTTP Manager coomponent.
The upload sampler(Http Request):
In the request header sent by java implement, the value of content-type is
correct.
In the request header sent by httpclient4 implement, the value of
content-type is the default value defined by HTTP Manager, not the correct
value.
See the attachment for details.
--
You are receiving this mail because:
You are the assignee for the bug.
[Bug 65310] When using httpclient4 implement to upload files, the
content-type parameter cannot be set correctly.
Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=65310
Felix Schumacher <fe...@internetallee.de> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEEDINFO |RESOLVED
Resolution|--- |FIXED
--- Comment #2 from Felix Schumacher <fe...@internetallee.de> ---
Closed, as no feedback probably means, it works.
--
You are receiving this mail because:
You are the assignee for the bug.
[Bug 65310] When using httpclient4 implement to upload files, the
content-type parameter cannot be set correctly.
Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=65310
zooltech <zo...@qq.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
OS| |Linux
--
You are receiving this mail because:
You are the assignee for the bug.
[Bug 65310] When using httpclient4 implement to upload files, the
content-type parameter cannot be set correctly.
Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=65310
Felix Schumacher <fe...@internetallee.de> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |FixedInTrunk
Status|NEW |NEEDINFO
--- Comment #1 from Felix Schumacher <fe...@internetallee.de> ---
@zooltech, could you test the next nightly or build from trunk and report back,
whether it fixes this issue?
commit 7ac71f15f8b11792d394d2b1bc596a73bd901cfa
Author: Felix Schumacher <fe...@internetallee.de>
AuthorDate: Sun May 30 13:58:33 2021 +0200
Don't let users override content-type header when using multipart/form-data
The content-type header will contain the boundary from the multiparts. That
value can't be guessed by the user and using the original given
content-type
will very likely be wrong.
Apart from that reason, the Java implementation of HTTPSampler will use
the generated content-type anyway and therefore this patch will make the
two implementations behave consistently.
Bugzilla Id: 65310
---
.../jmeter/protocol/http/sampler/HTTPHC4Impl.java | 6 ++++++
.../jmeter/protocol/http/sampler/TestHTTPHC4Impl.java | 17 +++++++++++++++++
xdocs/changes.xml | 2 ++
3 files changed, 25 insertions(+)
--
You are receiving this mail because:
You are the assignee for the bug.