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

Document ID : KB000008791
Last Modified Date : 14/02/2018
Show Technical Document Details
Issue:

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!

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