Bug 442310

Summary: inconsistent error messages depending on way used to try to create a symlink in unsupported filesystem
Product: [Frameworks and Libraries] frameworks-kio Reporter: Patrick Silva <bugseforuns>
Component: generalAssignee: KIO Bugs <kio-bugs-null>
Status: RESOLVED FIXED    
Severity: normal CC: a.samirh78, kdelibs-bugs
Priority: NOR    
Version: 5.86.0   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed In: 5.88

Description Patrick Silva 2021-09-11 16:37:49 UTC
SUMMARY
When I open a fat32 device with Dolphin and try to create a symlink via context menu of files view,
I see a dialog saying this:

Could not create symlink "/my/symlink". The destnation filesystem (FAT) does not support symlinks.

However, when I drag a file and drop it on a fat32 device in Places panel and choose "Link here"
from the context menu, Dolphin displays this inline error message:

Cannot transfer ‘file:///media/device/file’ because it is too large. The destination filesystem only supports files up to 4GiB

Operating System: Arch Linux
KDE Plasma Version: 5.22.5
KDE Frameworks Version: 5.86.0
Qt Version: 5.15.2
Graphics Platform: Wayland
Comment 2 Méven Car 2021-10-21 12:15:49 UTC
Git commit 8e87461c6368d446152e87b6a804e0359e171134 by Méven Car, on behalf of Ahmad Samir.
Committed on 21/10/2021 at 07:43.
Pushed by ahmadsamir into branch 'master'.

CopyJob: handle the no-op case of symlinks on FAT partitions

This copies some code from file_unix (see commit c27196acc33243db1da) to
CopyJob, since the latter is a more central place, we can catch more symlink
operations.

And as noted by dfaure in the MR, the code in file_unix is still needed for
the use case of apps using FileCopyJob directly and not CopyJob.

Split the msdos filesystem related code to a separate method, more readable
this way, I hope.
FIXED-IN: 5.88

M  +145  -53   src/core/copyjob.cpp
M  +6    -0    src/core/global.h
M  +3    -0    src/core/job_error.cpp

https://invent.kde.org/frameworks/kio/commit/8e87461c6368d446152e87b6a804e0359e171134