eclipse-ee4j / eclipse-ee4j/jersey

Consider choosing the response media type of matched resource method for BV error response entity.

Open
#2,271 3 comments 0 reactions 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.