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: [email protected]
Reporter: [email protected]
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.