Warning message generated when uploading a file through MFT Internet Server 8.3.0 to Azure DataLake Gen2

Warning message generated when uploading a file through MFT Internet Server 8.3.0 to Azure DataLake Gen2

book

Article ID: KB0074497

calendar_today

Updated On:

Products Versions
TIBCO Managed File Transfer Internet Server 8.3.0

Description

When uploading a file through MFT Internet Server 8.3.0 to Azure DataLake Gen2 the following warning is generated in the server logs:
 
18-Nov-2020 20:05:23.020 WARNING [Thread-47] org.glassfish.jersey.client.internal.HttpUrlConnector.setOutboundHeaders Attempt to send restricted header(s) while the [sun.net.http.allowRestrictedHeaders] system property not set. Header(s) will possibly be ignored.
 
The server log files can get flooded with these warnings.  The upload is successful, it does not affect the actual upload.

Issue/Introduction

The server log files can get flooded with these warnings. The upload is successful, it does not affect the actual upload. WARNING [Thread-47] org.glassfish.jersey.client.internal.HttpUrlConnector.setOutboundHeaders Attempt to send restricted header(s) while the [sun.net.http.allowRestrictedHeaders] system property not set. Header(s) will possibly be ignored.

Environment

All supported environments

Resolution

By setting the system property sun.net.http.allowRestrictedHeaders this warning goes away.
Add the following to the server/bin/setenv.bat or setenv.sh file.
 
-Dsun.net.http.allowRestrictedHeaders=true