You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Import from cURL succeeds with parameterized cURL location option.
Example:curl --location 'http://${domain_envVar}'
Description:
In JDK 21, stricter URL parsing is implemented with a property (-Djdk.net.url.delayParsing) to revert to JDK 17 behavior. Since this property can be removed in later versions, JMeter should be able to support URL parsing without the use of JDK's URL. Moreover, URL is deprecated since JDK 20, and recommended URI class does not support the delayed parsing property.
Harshan01
changed the title
BasicCurlParser does not support parameterized host/authority in Java 21
BasicCurlParser does not support parameterized host/authority in JDK 21
Dec 25, 2024
Expected behavior
Import from cURL succeeds with parameterized cURL location option.
Example:
curl --location 'http://${domain_envVar}'
Description:
In JDK 21, stricter URL parsing is implemented with a property (
-Djdk.net.url.delayParsing
) to revert to JDK 17 behavior. Since this property can be removed in later versions, JMeter should be able to support URL parsing without the use of JDK's URL. Moreover, URL is deprecated since JDK 20, and recommended URI class does not support the delayed parsing property.https://bugs.openjdk.org/browse/JDK-8295750
microsoft/openjdk-jdk21u@bd41428
Actual behavior
Import from cURL fails with
Cannot invoke "String.length()" because "spec" is null
.Steps to reproduce the problem
Use "Import from cURL" feature in JMeter and use JMeter parameter syntax (e.g.
${var}
) in the location or URL parameter.JMeter Version
5.6.3
Java Version
openjdk version "21.0.5" 2024-10-15 LTS
OS Version
No response
The text was updated successfully, but these errors were encountered: