Is there any limitation with Access Gateway (SPS) with regard to file size?
When trying to download large files, we are getting the following:
[ERROR][sm-ProxyAgent-00100] Exception caught. Message is: Exception writing to response output stream : org.apache.http.ConnectionClosedException Premature end of Content-Length delimited message body (expected: xxxx ; received: xxxx)
SPS does not start to download the file, it fails during at the beginning of the transfer.
At the beginning of the transfer, AG does an internal check to compare the entity.getContentLength and Integer.MAX_VALUE
>> Integer.MAX_VALUE = 2147483647 = 2Gb.
Checking with fiddler traces, we were able to get the entity.ContentLength header : Content-Length: xxxx
So, SPS is not able to GET/POST files that are more than 2Gb length.