Generate Security Hash Assertion - Stream Size Limit Exceed
search cancel

Generate Security Hash Assertion - Stream Size Limit Exceed

book

Article ID: 276079

calendar_today

Updated On:

Products

CA API Gateway

Issue/Introduction

In the /opt/SecureSpan/Gateway/node/default/etc/conf/system.properties file, the following parameter is set:

com.l7tech.server.util.ContextVariableUtils.convertToBinary.stream.maxBytes=4040109466
 
but there's this error message: Unable to read source object: Stream size limit exceeded: 2097512 bytes.  Exception caught.

Environment

API Gateway 10.X

Cause

The value 4040109466 is a long integer and much greater than the MAX_INTEGER.  This is why the "Generate Security Hash" assertion in the policy failed and the error message shows "Unable to read source object: Stream size limit exceeded: 2097152 bytes".  

Resolution

The MAX_INTEGER (2,147,483,647) is about 2 GB, so the "Generate Security Hash" assertion can only handle a context variable for a message with a max size of about 2 GB.