Uploaded image for project: 'CXF'
  1. CXF
  2. CXF-6850

javax.ws.rs.core.Request implementation doesn't match Accept-Encoding: * for any encoding value

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.1.6
    • 3.0.10, 3.1.7, 3.2.0
    • JAX-RS
    • None
    • Unknown

    Description

      When client side set accept encoding to "*" value and send request to following operation, client always get notAcceptable .
      @GET
      @Path("/test")
      public Response test(@Context Request req)

      { List<Variant> list = Variant.encodings("CP1250", "UTF-8") ... if (null == req.selectVariant(list)) return Response.notAcceptable(list).build(); return Response.ok("entity").build(); }

      Attachments

        Activity

          People

            ema Jim Ma
            ema Jim Ma
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: