Status/Resolution/Reason: Closed/Fixed/Fixed
Reporter/Name(from Bugbase): Lisa Y. / Lisa Y. (Y. Lisa)
Created: 10/11/2016
Components: File Management
Versions: 2016,11.0,2018
Failure Type:
Found In Build/Fixed In Build: CF11_Final / CF2016U12,CF2018U5
Priority/Frequency: Major / All users will encounter
Locale/System: English / Windows 7 SP1 64-bit
Vote Count: 3
Problem Description:
FTP upload bug when filename contains unicode characters. Filename after uploaded has funny characters. This is a showstopper for us as we have filenames containing unicode characters (Thai / Vietnamese / Chinese / Japanese), and it cannot be uploaded to FTP sites via CFFTP.
Steps to Reproduce:
Create a dummy file with the filename ???.txt
Attempt to upload it to an sFTP site with CFFTP.
<CFFTP
action="putfile"
connection="objConnection"
localfile="c:\???.txt"
remotefile="???.txt"
passive="no"
transfermode="auto" stoponerror="yes" timeout="300" retrycount="1">
File should upload successfully and appear in the FTP site. Use this in JVM flags if you cannot get past the uploading part : -Dfile.encoding=UTF8
Actual Result:
Filename after upload is : áÁÇ.txt
Expected Result:
Expected filename should be : ???.txt.
Using FileZilla / WinSCP / SSH via command line prompt and interface to upload said unicode file to sFTP is fine, ruling out issue with the sFTP server.
Any Workarounds:
None.
----------------------------- Additional Watson Details -----------------------------
Watson Bug ID: 4196036
External Customer Info:
External Company:
External Customer Name: E Leesa
External Customer Email:
External Test Config: My Hardware and Environment details:
CF11 Update 7
Windows 7 SP1
Tested in CF 9.0.1 - fails too
Java default Locale : en_US
Attachments:
- October 12, 2016 00:00:00: 1_cfftp-unicode-issue.cfm
- December 14, 2016 00:00:00: 2_�มว.txt
Comments: