[
https://issues.apache.org/jira/browse/WINK-379?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Reto Bachmann-Gmür updated WINK-379:
------------------------------------
Attachment: wink-379-sample.patch
With this patch the resource method returns EasterEgg and the MBW is for
EasterEggs. Furthermore I removed authentication stuff from web.xml as I don't
understand it.
The MBW has @produces to text/plain
I try following requests:
curl -v -H "Accept: text/plain"
http://localhost:8080/sample-jaxrs-webapp/services/wink379
--> Getting correct 200 response
curl -v -H "Accept: text/foo"
http://localhost:8080/sample-jaxrs-webapp/services/wink379
--> Getting 500 response, should be 406
curl -v -H "Accept: */*"
http://localhost:8080/sample-jaxrs-webapp/services/wink379
--> Getting 500 response, should be 200 (as with "Accept: text/plain"
curl -v -H "Accept: text/foo, text/plain;q=0.1"
http://localhost:8080/sample-jaxrs-webapp/services/wink379
--> Getting 500 response, should be 200 (as with "Accept: text/plain"
curl -v -H "Accept: text/foo;q=0.5, text/plain;q=1"
http://localhost:8080/sample-jaxrs-webapp/services/wink379
--> Getting correct 200 response
> Server error when accept header too broad
> -----------------------------------------
>
> Key: WINK-379
> URL: https://issues.apache.org/jira/browse/WINK-379
> Project: Wink
> Issue Type: Bug
> Reporter: Reto Bachmann-Gmür
> Attachments: wink-379-sample.patch
>
>
> As posted here:
> http://mail-archives.apache.org/mod_mbox/wink-user/201301.mbox/%3ccalvhuexfobnx-cxswleaumydsnbu3osh3_pvot55bychl54...@mail.gmail.com%3E
> Wink returns a 500 Server error if the accept header fisrt preference doesn't
> match a message body writer even if a MessageBodyWriter suitable for another
> accepted format is available.
--
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