Gzip Compression Issue In OAG
Last updated on OCTOBER 29, 2017
Applies to:Oracle API Gateway - Version 11.1.2 and later
Information in this document applies to any platform.
In OAG 184.108.40.206, trying to send a request to a webservice that only accepts http compression resulted in the response not recognizing the gzip format. Even after configuring a remote host that accepts Content length in request & response and also gzip for the encoding, sending the request will result in the following message.
'Request must be sent using HTTP compresssion"
However, it was discovered that when content-length is enabled through the Remote Host, the gateway does not encode the request which is the expected behavior since the gateway cannot create a request with Content-length
and Content-encoding: gzip being enabled. (refer to bug 22324072 for more information). Therefore, the only supported way to send the request is to have the Content-length headers disabled. This is where the current issue comes into play.
Removing the Content-length headers is causing OAG to be non-responsive after a timeout. Then it shutsdown. The following error is seen in the trace:
OS: Linux x86-64
1. Under Remote Host Settings uncheck boxes for 'Include Content length in request & response' (since gateway does not allow content length and gzip options selected)
2. Under Advanced tab opted gzip for both Input/Output encodings
3. Deployed the changes
4. Submit the Request
5. This causes the OAG to be non-responsive after a timeout and then it shutsdown.
Sign In with your My Oracle Support account
Don't have a My Oracle Support account? Click to get started
My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms