Skip to content
This repository has been archived by the owner on May 28, 2018. It is now read-only.

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

Open
glassfishrobot opened this issue Aug 2, 2013 · 2 comments

Comments

@glassfishrobot
Copy link

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]

@glassfishrobot
Copy link
Author

Reported by michalgajdos

@glassfishrobot
Copy link
Author

This issue was imported from java.net JIRA JERSEY-1999

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants