I have an "Execute JavaScript" assertion that executes this one line of JavaScript:
context.setVariable('body', JSON.stringify(context.getVariable('request.mainpart')));
Strict Mode is checked on this execute. It works fine normally, but in payloads larger than 1.03 MB, I get this error:
Script failure: StringifyRequestMainpartIntoBody:java.security.AccessControlException: access denied ("java.io.FilePermission" "/opt/SecureSpan/Gateway/node/default/var/attachments/att3804_0.part" "read")
at jdk.scripting.nashorn.scripts/jdk.nashorn.internal.scripts.Script$Recompilation$33$14$\^eval\_/0x000000080169e440.L:1(<eval>:1)
at jdk.scripting.nashorn.scripts/jdk.nashorn.internal.scripts.Script$Recompilation$30$\^eval\_/0x00000008018adc40.:program(<eval>:1)
. Exception caught!
Release : 10.1
Cluster wide property's,
io.xmlPartMaxBytes is set to 0 or some very large value.
attachment.diskThreshold is set to 10 mb.
and then restart ssg service,
# service ssg restart