Skip to content

PATCH requests have missing body #9

@jpd1

Description

@jpd1

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions