eclipse-ee4j / eclipse-ee4j/jersey
Error parsing media type 'application/json; charset: utf-8'
Open
- Dominant language
- Java
- Stars
- 730
- Forks
- 382
- PR merge metrics
- No merged PRs in 30d
Description
Hi,
Hope you're well.
Getting this error, it's mostly the fault of the API end point returning a non standard response: 'charset: utf-8' instead of 'charset=utf-8'
Any chance of throwing in a fix to treat charset: utf-8 as if it returned the standard responce?
Thanks,
Chris
Contributor guide
Research direction
Start by locating Jersey's media type parsing entry point and reproduce parsing of `application/json; charset: utf-8`. Confirm the parser currently rejects the colon form, then add coverage showing the requested behavior and run the relevant parser tests; done means this response is accepted as equivalent to `charset=utf-8`.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- api
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100