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] [Resolved] (CXF-6850) javax.ws.rs.core.Request implementation doesn't match Accept-Encoding: * for any encoding value
Date Wed, 06 Apr 2016 07:18:25 GMT

     [ https://issues.apache.org/jira/browse/CXF-6850?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Jim Ma resolved CXF-6850.
-------------------------
       Resolution: Fixed
    Fix Version/s: 3.0.10

> javax.ws.rs.core.Request implementation doesn't match Accept-Encoding: *  for  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.0.10, 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