KB Article #182371
AS2: Content-Type filename value getting split into multiple parts
Problem
In cases when the filename value inside the AS2 Mime Content-Type header is longer than 60 characters, it is getting split into multiple shorter parts (i.e. filename*0 and filename*1). Below is an example of such a case:
Storing AS2 message headers. AS2 message ID: STAS2-20220606140628-0002@10.232.24.138_AS2SiteA_AS2SiteB
Headers: [Content-Type: application/octet-stream Content-Transfer-Encoding: binary
Content-Disposition: attachment;
filename*0=123456789_123456789_123456789_123456789_123456789_123456789_;
filename*1=1234.txt ]
Resolution
This behavior is due to enforcement of splitLongParameters as per RFC 2231.
In order to keep a single filename the below parameter should be put in one of the below files:
$FILEDRIVEHOME/bin/start_tm_console script
JAVA_OPTS="-Dmail.mime.splitlongparameters=false $JAVA_OPTS"
$FILEDRIVEHOME/conf/STStartScriptsConfig file
TM_JAVA_OPTS="-Dmail.mime.splitlongparameters=false $TM_JAVA_OPTS"
Restart of the TM service is required to apply the change.