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 2020/12/22 11:36:20 UTC
[Bug 65024] New: Sending mime type with parameter throws
IllegalArgumentException
https://bz.apache.org/bugzilla/show_bug.cgi?id=65024
Bug ID: 65024
Summary: Sending mime type with parameter throws
IllegalArgumentException
Product: JMeter
Version: 5.4
Hardware: PC
Status: NEW
Severity: normal
Priority: P2
Component: HTTP
Assignee: issues@jmeter.apache.org
Reporter: lukasz.pyrzyk@gmail.com
Target Milestone: JMETER 5.4.1
Created attachment 37642
--> https://bz.apache.org/bugzilla/attachment.cgi?id=37642&action=edit
Usage of the mime type with parameter
It is not possible to send a file with multipart/form-data with mime type
"text/html; charset=UTF-8" or any other MIME type that contains a parameter.
java.lang.IllegalArgumentException: MIME type may not contain reserved
characters
at org.apache.http.util.Args.check(Args.java:36)
at org.apache.http.entity.ContentType.create(ContentType.java:229)
at org.apache.http.entity.ContentType.create(ContentType.java:241)
at
org.apache.jmeter.protocol.http.sampler.HTTPHC4Impl.setupHttpEntityEnclosingRequestData(HTTPHC4Impl.java:1575)
at
org.apache.jmeter.protocol.http.sampler.HTTPHC4Impl.handleMethod(HTTPHC4Impl.java:886)
at
org.apache.jmeter.protocol.http.sampler.HTTPHC4Impl.sample(HTTPHC4Impl.java:641)
at
org.apache.jmeter.protocol.http.sampler.HTTPSamplerProxy.sample(HTTPSamplerProxy.java:66)
at
org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSamplerBase.java:1296)
at
org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSamplerBase.java:1285)
at org.apache.jmeter.threads.JMeterThread.doSampling(JMeterThread.java:635)
at
org.apache.jmeter.threads.JMeterThread.executeSamplePackage(JMeterThread.java:558)
at
org.apache.jmeter.threads.JMeterThread.processSampler(JMeterThread.java:489)
at org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:256)
at java.base/java.lang.Thread.run(Thread.java:830)
Issue was confirmed on the mailing list by @Felix Schumacher.
--
You are receiving this mail because:
You are the assignee for the bug.
[Bug 65024] Sending mime type with parameter throws
IllegalArgumentException
Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=65024
Felix Schumacher <fe...@internetallee.de> changed:
What |Removed |Added
----------------------------------------------------------------------------
OS| |All
Keywords| |FixedInTrunk
Status|NEW |NEEDINFO
--- Comment #1 from Felix Schumacher <fe...@internetallee.de> ---
Can you try out the next nightly build or the next build from trunk and report
back, whether it fixes your issue?
commit 61e6e69c575cbc34a04a879ffe9b920206563904
AuthorDate: Tue Dec 22 16:19:23 2020 +0100
Sending mime type with parameter throws IllegalArgumentException
The create method of ContentType doesn't work with mime-types that
contain multiple parts (separated by semicolons). The parse method
does, so use that one.
Bugzilla Id: 65024
---
.../jmeter/protocol/http/sampler/HTTPHC4Impl.java | 12 +++++--
.../protocol/http/sampler/TestHTTPHC4Impl.java | 40 ++++++++++++++++++++++
xdocs/changes.xml | 1 +
3 files changed, 51 insertions(+), 2 deletions(-)
--
You are receiving this mail because:
You are the assignee for the bug.
[Bug 65024] Sending mime type with parameter throws
IllegalArgumentException
Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=65024
--- Comment #2 from lukasz.pyrzyk@gmail.com ---
Just checked on apache-jmeter-5.4.1-SNAPSHOT from
https://ci-builds.apache.org/job/JMeter/job/JMeter-trunk/ and it works great,
no issues.
When can we expect a 5.4.1 release?
--
You are receiving this mail because:
You are the assignee for the bug.
[Bug 65024] Sending mime type with parameter throws
IllegalArgumentException
Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=65024
Felix Schumacher <fe...@internetallee.de> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEEDINFO |RESOLVED
Resolution|--- |FIXED
--- Comment #3 from Felix Schumacher <fe...@internetallee.de> ---
Can't give a precise estimation of release date, but it should not take long
now.
--
You are receiving this mail because:
You are the assignee for the bug.
[Bug 65024] Sending mime type with parameter throws
IllegalArgumentException
Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=65024
--- Comment #4 from Felix Schumacher <fe...@internetallee.de> ---
commit 551339a0fce6bb84d72982772951f11ba3a8a5a1
AuthorDate: Fri Jan 15 18:38:23 2021 +0100
Remove left-over constant that is not used anymore.
Cleanup after commit f045cf5e1604c68b7d43986fe9bd82a102fa2b76
Bugzilla Id: 65024
---
.../apache/jmeter/protocol/http/gui/action/ParseCurlCommandAction.java | 1 -
1 file changed, 1 deletion(-)
--
You are receiving this mail because:
You are the assignee for the bug.