eclipse-ee4j / eclipse-ee4j/jersey
Consider choosing the response media type of matched resource method for BV error response entity.
Open
Component: extensions
Priority: Major
Type: Improvement
- Dominant language
- Java
- Stars
- 730
- Forks
- 382
- PR merge metrics
- No merged PRs in 30d
Description
Consider the following resource method:
```
@Produces(MediaType.APPLICATION_XML)
public MyResult placeOrder(@Valid final Order order) {
// ... }
```
and a request that matches this method. If the Accept header of the method looks like text/html,application/xhtml+xml,application/xml;q=0.9,**/**;q=0.8 then the content type of the (BV error) entity in response would be text/html.
#### Affected Versions
[2.1]
Contributor guide
Assessment
This issue has not been assessed yet.