Red Hat Bugzilla – Bug 981809
Possible compression issue when making jsonp request
Last modified: 2014-03-26 04:31:27 EDT
Description of problem:
jsonp requests with 'accept-encoding: gzip' results in failure
Steps to Reproduce:
1. Open the web browser (tested with firefox, chrome, IE)
2. Navigate to <RHQ-SERVER-ADDRESS>:<RHQ-PORT>/rest/resource/platforms?jsonp=test
3. Authenticate if prompted
Error 330 (net::ERR_CONTENT_DECODING_FAILED): Unknown error.
Content Encoding Error: The page you are trying to view cannot be shown because it uses an invalid or unsupported form of compression.
After disabling compression requests in firefox, the page loads as expected.
(Disable compression requests in firefox by navigating to about:config in URL bar, search for 'encoding', clear 'Value' field for 'network.http.accept-encoding'.)
Also tested with Curl - whenever gzip encoding is requested via the header, the request fails.
Created attachment 771243 [details]
Patched rest-war file
I've created a patched rhq-rest.war archive that would go into
(the existing one is exploded, while the attachment is an archive, but that should not matter).
Would you be able to try that?
Your patch seems to have fixed the problem - bug resolved.
Thanks Josh for checking.
Bulk closing now that 4.10 is out.
If you think an issue is not resolved, please open a new BZ and link to the existing one.