Skip to content

'charse=null' is automatically added randomly using 'application/problem+json' in ServletApiResponse. #13268

Closed
@isanghaessi

Description

@isanghaessi

Jetty version(s)
12.0.8

Jetty Environment
ee10

Java version/vendor (use: java -version)
JDK17 / temurin

OS type/version
Mac / Sequoia 15.5

Description
I was debugging Spring-Framework issue.
I think Jetty's ServletApiResponse has a bug.

In summarize,
ServletApiResponse add 'charset=null' when set Content-Type following order.

  • application/json
  • null
  • application/problem+json
Image

How to reproduce?
In the following order, set Content-Type.

  • application/json
  • null
  • application/problem+json

Here's origin issue from Spring-Framework.
spring-projects/spring-framework#35087

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugFor general bugs on Jetty side

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions