Created attachment 37642 [details] 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.
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(-)
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?
Can't give a precise estimation of release date, but it should not take long now.
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(-)
This issue has been migrated to GitHub: https://github.com/apache/jmeter/issues/5470