Opened 6 hours ago

Closed 36 minutes ago

#13225 closed Bug report (worksforme)

! Uploading / downloading 350byte file with no extension becomes 347-354byte ! (FZ v.3.68.1 is changing it)

Reported by: PizzaProgram Owned by:
Priority: normal Component: FileZilla Client
Keywords: modifying, bug, CRLF, char inserting Cc: PizzaProgram
Component version: 3.68.1 Operating system type: Windows
Operating system version: 10+11

Description

Both uploading and downloading files via SFTP has disastrous results.

If the file I'm uploading:

  • has no file-extension, and
  • contains characters like LF (line feed), EXT, ...

FZ is modifying it, by adding a CR chars before those chars!

It happens both on :

  • Win11 latest with built-in virus checker and
  • Win10 stripped (no AV, no Firewall)

I've tested it with latest Total Commander SFTP, and everything is fine.

Only FileZilla is modifying the file while transferring it, for example to this FTP server: ftps://deni9.deninet.hu
(Old Filezilla 0.9.60 beta server can receive it fine with both programs.)

If I rename the file before transferring it to:

test.dat
FZ is handling it fine in both ways.

PS: Actually I'm shocked. I've always thought FZ is the etalon of FTP transfers. Recommended it to everyone since 20+ years.

Change History (1)

comment:1 by Tim Kosse, 36 minutes ago

Resolution: worksforme
Status: newclosed

You mentioned SFTP, but this has nothing to do with SFTP.

FTP has a data type concept. What you see is line ending conversion due to transferring the file with the ASCII data type. Note that since Windows and FTP share the same line ending format (CRLF pairs) for text files, FileZilla isn't even changing the data. The modification in this case is being performed by the remote server, which appears to be running on a Unix-like system, which uses LF line endings.

See https://wiki.filezilla-project.org/Data_Type for more information. You can configure in FileZilla's settings dialog, which data type to use for FTP transfers, and in case of auto mode, select which types of files, based on extension, use which mode.

Note: See TracTickets for help on using tickets.