SUMMARY Rename album an within album property fails when a subalbum exists STEPS TO REPRODUCE 1. Edit the properties of an album containing a subalbum 2. Modify the album name, then click on Ok OBSERVED RESULT 1. A warn dialog indicates that the renaming as failed, and close the dialog box 2. The photographs are not available any more within Digikam (switch albums to check), and the album is not renamed. 3. The photographs files are still available in the file manager, and the directory is not renamed 4. Rename again the album, but with the rename option. The warning is displayed again. The album is renamed, but the corresponding directory. The photograph are not available. 5. Rename again the album to the initial name. The renaming succeed, and the photographs are available again. Note : The album renaming with rename option has quite the same issue. EXPECTED RESULT SOFTWARE/OS VERSIONS Windows: Windows 7 MacOS: Linux/KDE Plasma: (available in About System) KDE Plasma Version: KDE Frameworks Version: Qt Version: ADDITIONAL INFORMATION
I can not reproduce the problem here. The problem can occur under Windows if the album or a sub-album is opened by another program and is thus blocked. In general, renaming with sub albums should work without problem. Maik
Git commit 8a12004bf0b543b2f09b79ad12b35d0d5c73b3da by Maik Qualmann. Committed on 06/01/2019 at 21:40. Pushed by mqualmann into branch 'master'. rename album only if renaming the folder was successful M +6 -7 core/libs/album/manager/albummanager_palbum.cpp https://commits.kde.org/digikam/8a12004bf0b543b2f09b79ad12b35d0d5c73b3da
I reproduce this issue every try on Windows. There is no other application using the folder or the subfolder. I will play this test on Linux soon.
I can not reproduce the problem on a real Win7 machine and also not on 2 virtual Win7 / Win10 machines. Do they run a specific anti-virus software? Maik
(In reply to Maik Qualmann from comment #4) > I can not reproduce the problem on a real Win7 machine and also not on 2 > virtual Win7 / Win10 machines. Do they run a specific anti-virus software? > > Maik I reproduce the issue with my 2 win7 machine. I tried with album associated with a local homegroup folder (my first try) and with a ordinary harddrive folder. The home group folder is set but not used over the network for the try (the clients was off). The anti-virus is Avira (freeware version). I reproduce the issue with another win7-pro machine and recorded the display (attached). The anti-virus is Kaspersky. Paul
Created attachment 117380 [details] Video showing the issue
I can reproduce that if the folder to be renamed has an extended network share on Windows, then it can not be renamed. We will not be able to detect or prevent this with the resources available with the Qt-API. Remove the network share or add it to a folder higher. Maik
(In reply to Maik Qualmann from comment #7) > I can reproduce that if the folder to be renamed has an extended network > share on Windows, then it can not be renamed. We will not be able to detect > or prevent this with the resources available with the Qt-API. Remove the > network share or add it to a folder higher. > > Maik Would I use a network collection for this kind of folder ? Network folder renaming is an avaible feature within the file manager. It is surprising that Qt-API can't manage it.
Git commit d85733a8f64d1ba4f5067a9c190b094b2b353781 by Maik Qualmann. Committed on 03/04/2020 at 19:34. Pushed by mqualmann into branch 'master'. try to fix locked file operations under Windows do not add QFileSystemWatcher to images in the cache Related: bug 417737 M +5 -0 core/libs/threadimageio/fileio/loadingcache.cpp https://invent.kde.org/kde/digikam/commit/d85733a8f64d1ba4f5067a9c190b094b2b353781