Description of problem: jsonp requests with 'accept-encoding: gzip' results in failure How reproducible: Always 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 Actual results: Chrome: Error 330 (net::ERR_CONTENT_DECODING_FAILED): Unknown error. Firefox: Content Encoding Error: The page you are trying to view cannot be shown because it uses an invalid or unsupported form of compression. Expected results: JSON platform details embedded in a javascript function called 'test'. Additional info: 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
Josh, I've created a patched rhq-rest.war archive that would go into §SERVER/modules/org/rhq/rhq-enterprise-server-startup-subsystem/main/deployments/rhq.ear/ (the existing one is exploded, while the attachment is an archive, but that should not matter). Would you be able to try that? Thanks Heiko
Heiko, Your patch seems to have fixed the problem - bug resolved. Thanks, Josh
Thanks Josh for checking. master 206bc37502
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.