Bug 981809 - Possible compression issue when making jsonp request
Possible compression issue when making jsonp request
Product: RHQ Project
Classification: Other
Component: REST (Show other bugs)
Unspecified All
unspecified Severity unspecified (vote)
: ---
: RHQ 4.9
Assigned To: Heiko W. Rupp
Mike Foley
Depends On:
  Show dependency treegraph
Reported: 2013-07-05 17:51 EDT by Josh Osgood
Modified: 2014-03-26 04:31 EDT (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2014-03-26 04:31:27 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)
Patched rest-war file (56.64 KB, application/octet-stream)
2013-07-09 17:02 EDT, Heiko W. Rupp
no flags Details

  None (edit)
Description Josh Osgood 2013-07-05 17:51:51 EDT
Description of problem:
jsonp requests with 'accept-encoding: gzip' results in failure

How reproducible:

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:
   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.

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.
Comment 1 Heiko W. Rupp 2013-07-09 17:02:05 EDT
Created attachment 771243 [details]
Patched rest-war file
Comment 2 Heiko W. Rupp 2013-07-09 17:04:55 EDT
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?

Comment 3 Josh Osgood 2013-07-09 18:04:49 EDT

Your patch seems to have fixed the problem - bug resolved.

Comment 4 Heiko W. Rupp 2013-07-10 03:06:36 EDT
Thanks Josh for checking.

master 206bc37502
Comment 5 Heiko W. Rupp 2014-03-26 04:31:27 EDT
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.

Note You need to log in before you can comment on or make changes to this bug.