Bug 372763 - Rename does not give options on Conflict
Summary: Rename does not give options on Conflict
Status: RESOLVED FIXED
Alias: None
Product: digikam
Classification: Applications
Component: AdvancedRename-dialog (show other bugs)
Version: 5.3.0
Platform: Mint (Ubuntu based) Linux
: NOR normal
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-11-21 22:05 UTC by Mick Sulley
Modified: 2022-02-01 06:23 UTC (History)
6 users (show)

See Also:
Latest Commit:
Version Fixed In: 6.0.0


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mick Sulley 2016-11-21 22:05:32 UTC
When renaming a number of pictures, if there is a name conflict it displays an error message and gives the option to abort but no option to choose a different name.  DK4 gave that option and also suggested a new name.
Comment 1 Matthias K. 2017-04-30 05:46:17 UTC
I'm also experiencing this problem. This is a major issue, since the renaming process stalls once it encounters a conflict, thus batch renaming is broken if the batch has conflicts :(
Comment 2 Anton Lavrov 2017-07-27 16:34:12 UTC
This issue with non-atomic batch rename was fixed in 5.5 (or maybe earlier) - now Digikam checks for conflicts with existing files and doesn't allow to start batch rename if there are conflict.
Comment 3 Matthias K. 2018-01-01 20:58:34 UTC
Indeed Digikam now doesn't allow to start batch rename if there are conflicts, but that doesn't really fix the workflow problem :(

My current workaround (w/ v5.6.0) is:

- create a sub-directory 'tmp' and move all photos to be renamed into it
- select a limited number of photos
- try to rename
- in case of conflicts select the first N photos without conflicts and rename them
- move the renamed photos up into the actual album directory

- select a limited number of photos
- try to rename
- in case of conflicts select the first N photos without conflicts and rename them
- manually rename the first photo since it has a conflict
- move the renamed photos into the actual album directory

- repeat until all photos have been renamed

This is extremely cumbersome compared with the previous behavior. Please provide some kind of reasonable solution.
Comment 4 Maik Qualmann 2018-01-02 11:36:07 UTC
I find the current behavior very pleasant. But everyone has their own workflow. Which string to rename you use?

Maik
Comment 5 Mick Sulley 2018-01-02 16:15:20 UTC
The major problem with the current operation is that if a file would rename the same as current, so retain its current name, then it fails.  
If I use rename on a bunch of RAW files, then some will stay with their current name, so they all fail.  Any workaround is a real pain.  
Please just provide an option to ignore all failures and rename all the ones that can be renamed.
Comment 6 Matthias K. 2018-01-02 16:31:12 UTC
I don't find the current behavior pleasant at all and the workaround is very time consuming. Perhaps the behavior should be configurable if others really appreciate the current one.

The string I use is:

[date:"yyyyMMdd_hhmmss"]_[cam]{replace:"Canon EOS 80D","EOS 80D",i}{replace:"FUJIFILM","Fuji",i}{replace:"Canon EOS REBEL SL1","EOS Rebel SL1",i}{replace:"OLYMPUS CORPORATION","Olympus",i}{replace:"Canon PowerShot G9","G9",i}{replace:"Canon EOS 60D","EOS 60D",i}{replace:"Canon PowerShot S100","S100",i}

Obviously the main problem are photos with the same timestamp.
Comment 7 Maik Qualmann 2018-03-12 08:30:52 UTC
*** Bug 391746 has been marked as a duplicate of this bug. ***
Comment 8 nonobio 2018-03-12 08:45:13 UTC
(In reply to Maik Qualmann from comment #7)
> *** Bug 391746 has been marked as a duplicate of this bug. ***

Hi,

Sorry, i wasn't sure it was the same bug. Thanks for your work :)
Comment 9 Maik Qualmann 2018-03-13 21:47:21 UTC
Git commit 296632cb79d67b6166840d406182bcd71623ca6d by Maik Qualmann.
Committed on 13/03/2018 at 21:45.
Pushed by mqualmann into branch 'development/6.0.0'.

first step to factoring the IOJob class with a IOJobData container
To perform database operations only after successful file operation
or to add a dialog for user intervention
Related: bug 381625, bug 377719

M  +125  -173  libs/database/utils/dio.cpp
M  +23   -31   libs/database/utils/dio.h
M  +1    -0    libs/iojobs/CMakeLists.txt
A  +219  -0    libs/iojobs/iojobdata.cpp     [License: GPL (v2+)]
A  +91   -0    libs/iojobs/iojobdata.h     [License: GPL (v2+)]
M  +12   -8    libs/iojobs/iojobsmanager.cpp
M  +10   -16   libs/iojobs/iojobsmanager.h
M  +22   -26   libs/iojobs/iojobsthread.cpp
M  +11   -22   libs/iojobs/iojobsthread.h

https://commits.kde.org/digikam/296632cb79d67b6166840d406182bcd71623ca6d
Comment 10 Maik Qualmann 2018-03-15 20:34:22 UTC
Git commit 2b26c502d2f1cd9ef9fe661271df530922e6096a by Maik Qualmann.
Committed on 15/03/2018 at 20:31.
Pushed by mqualmann into branch 'development/6.0.0'.

now we can skip the file if the renamed file name already exists
Related: bug 377719

M  +1    -1    libs/database/utils/dio.cpp
M  +0    -1    utilities/advancedrename/advancedrenamedialog.cpp
M  +7    -4    utilities/advancedrename/advancedrenameprocessdialog.cpp

https://commits.kde.org/digikam/2b26c502d2f1cd9ef9fe661271df530922e6096a
Comment 11 Maik Qualmann 2018-03-29 19:17:13 UTC
The current behavior of digiKam-6.0.0 is that after renaming, it is possible to rename the failed images again. I find this behavior better than a dialog during the rename process. I close the bug now, if necessary re-open the bug.

Maik