I am seeing corrupted filenames when using cloudsync to pull from a SFTP source. The resulting video files cannot be opened, but if I add an underscore to the end of the file name they do play with VLC. I think it may be related to this post from the old forum also.
www.truenas dot com/community/threads/cloud-sync-sftp-corrupted-files.115362/
Some files only have corrupted file names, and are able to be read/played
Please give an example of a corrupted filename.
Here is an example of a file name where the video seems to play, but the filename has an issue.
SFTP Server Filename
SS23022 - Q2L10 - 05.27.2023 - Satan’s Final Deceptions: Interview With the Author.mp4
Truenas Cloudsync filename
S0J1M8~V.MP4
Here are a few more
SS22127 - Q3L10 - 08.27.2022 - Meekness in the Crucible: Interview With the Author.mp4
became
SIGNCN~7
renaming to SIGNCN~7.mp4 and the file plays in vlc again.
The following file can’t be read
WKUR1Z~G.mp4
but when the filename is changed to:
WKUR1Z~G_.mp4
it plays and I identified the source file as:
WWA21 - What Will Heaven Be Like?.mp4
That’s an invalid NTFS file name (contains a colon in it) and the SMB server mangling the name into something that is valid for Windows to read. If it didn’t do that, the file would not be visible to Windows clients.
Well, I think it could do a better job than that. Here was a later sync of that same WWA21 file.
WWA21 - What Will Heaven Be Like%3F.mp4
This is more what I would expect from special character issues where it replaces the problematic character with a substitute, not the truncated names in the SS series files.
deleting the filename extension like the first example above seems like it would hurt visibility to windows clients not help.