Bug 372041

Summary: "Add Folders" attempts to import parent directory AND target dir.
Product: [Applications] digikam Reporter: Brian <watershedpr>
Component: Import-AlbumsAssignee: Digikam Developers <digikam-bugs-null>
Status: RESOLVED FIXED    
Severity: normal CC: caulier.gilles, metzpinguin
Priority: NOR    
Version: 5.2.0   
Target Milestone: ---   
Platform: Microsoft Windows   
OS: Microsoft Windows   
Latest Commit: Version Fixed In: 7.1.0
Sentry Crash Report:
Attachments: Import dialog screenshot

Description Brian 2016-11-03 20:43:36 UTC
Created attachment 102017 [details]
Import dialog screenshot

I am working on a prototype install of digiKam on Windows to show to my company. My album collection is located in a folder on the Desktop. I placed another folder of images on the Desktop and opened DK's "Add Folders" tool under the Import menu. I navigated to the folder I wanted imported, but DK by default also selected the parent (in this case C:\Users\library\Desktop). As seen in the attachment, the Directory field says '"Desktop" "target folder"', indicating that both will be imported. In addition, if I click other folders also on the Desktop, DK selects them all, instead of just the most recent click. If I want to deselect some I can ctrl-click them, but there's no way to deselect "Desktop" unless I navigate into a subfolder and then back out. Then, when I click my target folder, it is the only one that is selected.

Importing both caused a full system crash, because Desktop contains the target folder, and both are being copied into a folder that also lives on the desktop. DigiKam started trying to copy my archive into the new subfolder within the archive, over and over, creating recursive subdirectories. I did a hard reboot and used robocopy (http://superuser.com/a/1048242) to delete the new subdirectory. Now I know how to avoid this problem, but it could easily happen to others.

I have a feeling the problem may be specific to the Windows version of DK.

Thanks for your work on digiKam!
Comment 1 caulier.gilles 2017-12-09 17:19:40 UTC
This problem still reproducible with current 5.8.0 - pre-release Windows bundle
available here :

https://files.kde.org/digikam/

Gilles Caulier
Comment 2 caulier.gilles 2020-08-02 12:39:29 UTC
digiKam 7.0.0 stable release is now published:

https://www.digikam.org/news/2020-07-19-7.0.0_release_announcement/

We need a fresh feedback on this file using this version.

Best Regards

Gilles Caulier
Comment 3 Maik Qualmann 2020-08-03 21:16:38 UTC
Fixed with bug 424934.

Maik