KB Article #182143
Response "400: Header Folding" from Jetty server in SP24
Problem
TSIM 3.9.1 SP24 comes with a new version of Jetty (Jetty 9), which uses RFC7230 by default, for HTTP Message Syntax.
With this RFC, a feature known as Header Folding has been disabled. Some clients may still be configured to use this feature when communicating with the TSIM Jetty server. A known example of this is a different AS2 provider which was sending MDNs with header folding.
If the Jetty server receives a request that uses header folding, it will respond with "400: Header Folding". In the case of AS2, nothing will be visible on the TSIM side in the logging if this happens. To debug such an issue, you need to add the logging category "org.eclipse.jetty" on debug level in the ajas logging configuration ($ACTISEDI/internet/server/classes/LogConfig.xml).
Resolution
You can change the compliance level of your Jetty connector to RFC2616.
Locate the file $ACTISEDI/internet/www/Jetty/etc/jetty-https.xml or $ACTISEDI/internet/www/Jetty/etc/jetty-ssl.xml, depending on which connector you received the request. Inside it, look for the property "jetty.http.compliance". By default, it is probably set to default="RFC7230". Change this to default="RFC2616" and restart ajas. The next time you receive a request which includes header folding, it should no longer be rejected.