cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jim Ma (JIRA)" <j...@apache.org>
Subject [jira] [Created] (CXF-6850) javax.ws.rs.core.Request implementation doesn't match Accept-Encoding: * for any matches any encoding value
Date Wed, 30 Mar 2016 07:40:25 GMT
Jim Ma created CXF-6850:
---------------------------

             Summary: javax.ws.rs.core.Request implementation doesn't match Accept-Encoding:
*  for any matches any encoding value
                 Key: CXF-6850
                 URL: https://issues.apache.org/jira/browse/CXF-6850
             Project: CXF
          Issue Type: Bug
          Components: JAX-RS
    Affects Versions: 3.1.6
            Reporter: Jim Ma
            Assignee: Jim Ma
             Fix For: 3.1.7, 3.2.0


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();
	}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message