Skip to content

Request is not accepted in test case Multiple files and JSON payloads as multi part request #2649

Closed
@buzzerrookie

Description

@buzzerrookie

In test app119, there are mutiple file and JSON payloads in a controller method. When sending requests to the /multi endpoint via Swagger UI, the request is not accepted.
In Chrome, a response with code 415 is returned, which is Unsupported Media Type. The Spring boot error is org.springframework.web.HttpMediaTypeNotSupportedException: Content-Type 'application/octet-stream' is not supported.

Version:

  • spring boot 3.3.1
  • springdoc-openapi-starter-webmvc-ui 2.6.0

Expected behavior

  • The response code should be 200.

Screenshots
swagger
payload

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