[ 
https://issues.apache.org/jira/browse/WINK-374?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13507714#comment-13507714
 ] 

Luciano Resende commented on WINK-374:
--------------------------------------

Would you be willing to provide a patch to fix the actual problem. That would 
be much appreciated.
                
> MessageBodyWriter writeTo getting wrong MediaType
> -------------------------------------------------
>
>                 Key: WINK-374
>                 URL: https://issues.apache.org/jira/browse/WINK-374
>             Project: Wink
>          Issue Type: Bug
>            Reporter: Reto Bachmann-Gmür
>
> When the resource method does not specify a MediaType with @Produces the 
> MessageBodyWriters writeTo method gets invoked with the first media type in 
> the Accept header as mediaType parameter. This is wron, according to section 
> 3.8 of the spec it should be applicat8ion/octet-stream.
> It is important that the the MessageBody Writer knows if the type was 
> restricted by the resource method (in which case it should get the respective 
> media-type) or not, in which case it might set the http header itself based 
> on the instance to be written.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to