Bug 456333

Summary: File transfer terminated resulted 0 byte files to target, while files were deleted from source
Product: [Applications] digikam Reporter: _ <myaccount132>
Component: Plugin-WebService-FileTransferAssignee: Digikam Developers <digikam-bugs-null>
Status: RESOLVED FIXED    
Severity: normal CC: caulier.gilles, metzpinguin
Priority: NOR    
Version First Reported In: 7.5.0   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed/Implemented In: 7.8.0
Sentry Crash Report:

Description _ 2022-07-04 18:41:32 UTC
SUMMARY
Digikam freezed during file transfer. Result: of 0 byte files at destingation while being DELETED FROM SOURCE DIRECTORY BEFORE TRANSFER IS COMPLETE, HOW!!?? I had to force restart because processes couldn't be terminated - filesystem check didn't find anything on reboot. I should have backups, but this just can't happen!!

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Ubuntu 22.04 LTS
KDE Plasma Version: 
KDE Frameworks Version: 5.92.0
Qt Version: Version 5.15.3 (built against 5.15.3)
Comment 1 Maik Qualmann 2022-07-04 18:48:50 UTC
We can only help to a limited extent, the Ubuntu Snap packages have a sandbox. This blocks access to external directories for digiKam. The File Export Tool does not delete source files. If you move via drag&drop or copy/paste, deleting the source file is fixed in current digiKam versions if it fails. Use our AppImage and delete the useless snap package.

Maik
Comment 2 _ 2022-07-04 18:54:47 UTC
This should be fixed from 7.5.0 within Ubunut (whatever the procedure is) as it is in Latest LTS of Ubuntu and likely has many users.
Comment 3 Maik Qualmann 2022-07-04 19:55:27 UTC
The digiKam included in Ubuntu is unusable, this is not the first bug report we have received for the Snap package. All sorts of problems arise due to the sandbox. The Local File Copy Tool never deletes the source file, it's impossible. Only the target file will be deleted if you have overwrite enabled. Check your file system, hard drive, etc.

Maik
Comment 4 Maik Qualmann 2022-07-04 20:19:51 UTC
Git commit c16cda2bfabf47159b8b73d0f4064327b45efd3b by Maik Qualmann.
Committed on 04/07/2022 at 20:18.
Pushed by mqualmann into branch 'qt5-maintenance'.

add extra check whether the source file is not the same as the target file
FIXED-IN: 7.8.0

M  +2    -1    NEWS
M  +7    -0    core/dplugins/generic/webservices/filecopy/fctask.cpp

https://invent.kde.org/graphics/digikam/commit/c16cda2bfabf47159b8b73d0f4064327b45efd3b