Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PATCH requests have missing body #9

Open
jpd1 opened this issue Sep 3, 2020 · 1 comment
Open

PATCH requests have missing body #9

jpd1 opened this issue Sep 3, 2020 · 1 comment

Comments

@jpd1
Copy link

jpd1 commented Sep 3, 2020

If a PATCH request has a body within Postman, it is not carried over to the jmx file.

It seems this is because there is no PATCH in this condition ->

if (HttpMethod.POST.equalsIgnoreCase(httpSamplerProxy.getMethod()) || HttpMethod.PUT.equalsIgnoreCase(httpSamplerProxy.getMethod()) || HttpMethod.DELETE.equalsIgnoreCase(httpSamplerProxy.getMethod())) {

The PATCH was introduced in Java WS RS API v2.1 -> https://javaee.github.io/javaee-spec/javadocs/javax/ws/rs/HttpMethod.html

I can see from the pom.xml there is a dependency on jMeter v4.0 which refers to Javax WS RS API v2.0.1.

Is there are any plans to have the dependency of jMeter changed to a newer version? I can raise a PR using a newer version of jMeter or a PR using jMeter v4 with a string constant for the PATCH in the above line.

@lailaihaochu
Copy link

image
handle command is error!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants