GZIP compression issue after applying CR04
search cancel

GZIP compression issue after applying CR04

book

Article ID: 229695

calendar_today

Updated On:

Products

CA API Gateway

Issue/Introduction

The routing request with the "Compress output" option is failing when the request method is a GET and the body is empty.

 

Error message in the gateway ssg logs :

2021-11-04T11:56:16.610+0100 INFO    912 com.l7tech.server.SoapMessageProcessingServlet: Cannot decompress the incoming request: java.io.EOFException

Response error :

<?xml version="1.0" encoding="UTF-8"?>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
    <soapenv:Body>
        <soapenv:Fault>
            <faultcode>soapenv:Server</faultcode>
            <faultstring>Invalid GZIP compressed request</faultstring>
            <faultactor>xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx/faultactor>
        </soapenv:Fault>
    </soapenv:Body>
</soapenv:Envelope>
 

Environment

Release : 10.0 CR4

Component : API GATEWAY

Resolution

A new cluster-wide property is introduced in Gateway 10 CR04 to handle this empty body request.

request.compress.gzip.allowEmptyBody

To allow a compressed request with an empty body to be unzipped this CWP needs to be set to "true".