https://bugs.kde.org/show_bug.cgi?id=402298
Bug ID: 402298 Summary: Invalid Unicode chars in file/foldernames appear to make file copies abort Product: frameworks-kio Version: git master Platform: Other OS: Linux Status: REPORTED Severity: normal Priority: NOR Component: general Assignee: fa...@kde.org Reporter: bluescreenaven...@gmail.com CC: kdelibs-b...@kde.org Target Milestone: --- Created attachment 116993 --> https://bugs.kde.org/attachment.cgi?id=116993&action=edit Archive containing the logs, and the tree, and the Seed.txt file to pass to the kiocopy script Hi In attempts to replicate Bug #162211, I made a script that mass "seeds" files, saves the file info in a text file, and can then recreate the files with the text file, then try to copy them with kioclient5. I inadvertently created invalid Unicode chars, trying to split large file names down to exactly 255 bytes. (but I guess in a corrupt file system or something, something similar can happen. I think in the processes of doing this, I replicated it in a way. Copying with kioclient5, with export QT_LOGGING_RULES=kf5.kio.*=true, the final line is, and it silently aborts. "Could not make folder /tmp/kiocopy/1545096048/folder_dest/testdir/0l>╚>/1H{n.4🐧N5>2ä<╚#uDJjà57vÉ7BFI*;9jÄ>w@Vdäâ2@Op*8w>i5-by4P{èåhÄÄDw9î1RÆ4x3©h23uÉè)<W?&&,🐧WÄ31Hbv5î,7VTDCrÉï'So🐧D#\"}127z🐧4ij8f®uZ58®pÄJHê®9ÄÅ4Æ-Dj zpN0èg1JB𖡒?Zh{Hom6𖡒B9i1\"èEms2.1.5¾ch@ÅWÆ<äU})2CW1h\t𖡒V9g�." at the end, and then kioclient5 exits with the status of 1. When I run tree against the source, and the destination, then diff the tree output, the last lines are: -17 directories, 413 files +7 directories, 0 files meaning only 7 folders got copied Let me know if I need to provide any info. This was kio 5.44 admittedly, ...but I also get similar results from a version from Mid October 2018, built from Git. But it looks like I possibly found a case of silent failure? I do get somewhat better results, if I change these two variables LC_ALL=C LANG=C (which I did to force Bash to split Unicode chars) I then get -17 directories, 413 files +8 directories, 221 files But I also get a bunch of dialogs warning me that some files "can't be found", but it's better than a silent failure... I will attach 2 files, one contains the Seed file, the command line output of kioclient5, and the trees of the source, and the Destination One is the script of which you can pass the path to the Seed file to as the first argument to the script, in order to make it create the exact same tree that failed to copy, so that the experiment can be recreated exactly. Let me know if you need anything -- You are receiving this mail because: You are watching all bug changes.