jersey
  1. jersey
  2. JERSEY-1999

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

    Details

    • Type: Improvement Improvement
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: 2.1
    • Fix Version/s: backlog
    • Component/s: extensions
    • Labels:
      None

      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.

        Activity

        Michal Gajdos created issue -

          People

          • Assignee:
            Unassigned
            Reporter:
            Michal Gajdos
          • Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated: