Skip to content

[BUG] [JAVA] [WebClient] URL encoded should not use multipart body inserter #2685

@hfgbarrigas

Description

@hfgbarrigas

Bug Report Checklist

  • Have you provided a full/minimal spec to reproduce the issue?
  • Have you validated the input using an OpenAPI validator (example)?
  • What's the version of OpenAPI Generator used?
  • Have you search for related issues/PRs?
  • What's the actual output vs expected output? Use the correct formData body inserter.
Description

At the moment when a body inserter is selected to use on webclient, url encoded is wrongly using multi part body inserter. It should not.

openapi-generator version

4.0.0 latest master version.

Suggest a fix

Use BodyInserters.fromFormData for url encoded and BodyInserters.fromMultipartData for multipart.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions