I don't really like the fix because it requires all of the jersey methods to be modified, in exactly the same way, but that is the exact same fix as
HDFS-2441 did so I guess it is OK.
The root of the issue appears to be that HttpServer.QuotingInputFilter is trying to guess what the content type is based off of the URI of the request, and always setting it no matter what. This seems to be so that we can set the charset of the response to be utf-8. This is coupled with Jersey also outputting the content type instead of overwriting the one that was set previously.
Also it makes it more difficult for them to be called as regular methods. I really would prefer to see something with the server where we could fix some of this in HttpServer itself so that we don't get the automatic content type for web services. But that is likely to be a bigger change and would be a bit more cross project. Sadly I tried upgrading to Jersey 1.12 and it does not fix the issue.
So reluctantly I give this a +1.