Summary: | k3b silently drops files whose names contain special characters when adding to project | ||
---|---|---|---|
Product: | [Applications] k3b | Reporter: | Ken Arromdee <arromdee> |
Component: | Data Project | Assignee: | k3b developers <k3b> |
Status: | RESOLVED FIXED | ||
Severity: | major | CC: | aacid, michalm, trueg |
Priority: | NOR | ||
Version: | 19.04 | ||
Target Milestone: | --- | ||
Platform: | Mageia RPMs | ||
OS: | Linux | ||
Latest Commit: | https://invent.kde.org/multimedia/k3b/commit/b77897355ecbccb8492b7ee953dd147df4fb699f | Version Fixed In: | |
Sentry Crash Report: | |||
Attachments: | example |
Description
Ken Arromdee
2020-10-22 22:36:30 UTC
would you be able to attach a tar with files like that to make it easier for us to reproduce the issue? Created attachment 132675 [details]
example
Tar archive containing two identical files, one with a name containing a special character. When adding the directory in k3b, only the file without the special character is added and the other is silently dropped.
ok, can reproduce A possibly relevant merge request was started @ https://invent.kde.org/multimedia/k3b/-/merge_requests/3 Git commit 22b1d0939a3e0bb944b0efaeaac15553b7b36066 by Albert Astals Cid. Committed on 08/11/2020 at 21:40. Pushed by aacid into branch 'master'. Warn when trying to add folders that contain unsupported filenames In Qt anything that is not propertly utf8 is transparently not returned, i.e. QDir will simply pretend the file doesn't exist. This isn't ideal since people may be asuming a backup is totally done since no error was reported and one file was not really copied. This doesn't fix the fact that the file is not copied but at least warns the file could not by found. It does so by using KIO::listDir instead of QDir M +10 -3 src/projects/k3bdataurladdingdialog.cpp https://invent.kde.org/multimedia/k3b/commit/22b1d0939a3e0bb944b0efaeaac15553b7b36066 Git commit b77897355ecbccb8492b7ee953dd147df4fb699f by Albert Astals Cid. Committed on 08/11/2020 at 21:41. Pushed by aacid into branch 'release/20.12'. Warn when trying to add folders that contain unsupported filenames In Qt anything that is not propertly utf8 is transparently not returned, i.e. QDir will simply pretend the file doesn't exist. This isn't ideal since people may be asuming a backup is totally done since no error was reported and one file was not really copied. This doesn't fix the fact that the file is not copied but at least warns the file could not by found. It does so by using KIO::listDir instead of QDir (cherry picked from commit 22b1d0939a3e0bb944b0efaeaac15553b7b36066) M +10 -3 src/projects/k3bdataurladdingdialog.cpp https://invent.kde.org/multimedia/k3b/commit/b77897355ecbccb8492b7ee953dd147df4fb699f |