Bug 372041 - "Add Folders" attempts to import parent directory AND target dir.
Summary: "Add Folders" attempts to import parent directory AND target dir.
Status: RESOLVED FIXED
Alias: None
Product: digikam
Classification: Applications
Component: Import-Albums (show other bugs)
Version: 5.2.0
Platform: Microsoft Windows Microsoft Windows
: NOR normal
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-11-03 20:43 UTC by Brian
Modified: 2020-08-03 21:16 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In: 7.1.0


Attachments
Import dialog screenshot (235.08 KB, image/png)
2016-11-03 20:43 UTC, Brian
Details

Note You need to log in before you can comment on or make changes to this bug.
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