search cancel

Error "Unable to Read Source Object: Stream Size Limit Exceeded" Encountered When Using the Generate Security Hash Assertion

book

Article ID: 8791

calendar_today

Updated On:

Products

STARTER PACK-7 CA Rapid App Security CA API Gateway

Issue/Introduction

The following error may present itself in the SSG logs and/or audit events, when passing attachments through the Generate Security Hash Assertion: 

Unable to read source object: Stream size limit exceeded: 2097152 bytes. Exception caught!

Environment

Release: L7SGA299000-8.4-API Gateway SOA Gateway-HARDWARE APPLIANCE DUAL CPU
Component:

Cause

The default convert to binary maximum stream size limit is 2097152 bytes. The limit has been exceeded.

Resolution

For the Generate Security Hash assertion to handle larger attachments the following system property must be changed, with the example below being for 5MB in size:

  1. Locate and open the following file in a text editor: /opt/SecureSpan/Gateway/node/default/etc/conf/system.properties
  2. Add (or modify) the following line to read as follows: com.l7tech.server.util.ContextVariableUtils.convertToBinary.stream.maxBytes=5242880
  3. Save and exit the file, then stop and restart the Gateway ("SSG") service: service ssg restart