Details
-
Type:
Bug
-
Status:
Open
-
Priority:
Major
-
Resolution: Unresolved
-
Affects Version/s: 3.2.1
-
Fix Version/s: None
-
Component/s: Transport: FTP / SFTP
-
Labels:None
-
User impact:Medium
-
Similar Issues:None
Description
When converting from String to byte[] in SftpMessageDispatcher.doDispatch default platform encoding is used.
inputStream = new ByteArrayInputStream(((String) data).getBytes());
should be changed to
inputStream = new ByteArrayInputStream(((String) data).getBytes(event.getEncoding()));
Workaround is to configure a string-to-byte-array transformer before the sftp outbound endpoint that uses the desired encoding.
<string-to-byte-array-transformer encoding="UTF-8"/>