Bug 429664

Summary: Windows file rename change case only fails badly
Product: [Applications] digikam Reporter: kdeb
Component: AdvancedRename-dialogAssignee: Digikam Developers <digikam-bugs-null>
Status: RESOLVED FIXED    
Severity: normal CC: metzpinguin
Priority: NOR    
Version: 7.2.0   
Target Milestone: ---   
Platform: Microsoft Windows   
OS: Microsoft Windows   
Latest Commit: Version Fixed In: 7.2.0

Description kdeb 2020-11-26 00:57:41 UTC
SUMMARY

Rename from context menu of image. 
If you only change case of part of the name you get an error dialog with 
options to 'Rename again' 'Overwrite' 'Cancel'

'Rename again' will fail again.
'Overwrite' will fail and the image WILL BE DELETED (and not to the recycle bin).
 

Digikam current weekly x64
SOFTWARE/OS VERSIONS
Windows: Win 10
Comment 1 kdeb 2020-11-26 01:01:26 UTC
Later... looks like a temp renamed version of the deleted file goes into .dtrash so perhaps not completely lost.
Comment 2 Maik Qualmann 2020-11-26 06:43:43 UTC
Right, the file will definitely be moved to the digiKam recycle bin. With the Qt API we can hardly tell whether it is an "image.jpg" or an "Image.jpg". Both queries return a yes in a Windows file system, because both files are identical. Let's see, only changing in upper and lower case will be difficult to fix.

Maik
Comment 3 Maik Qualmann 2020-11-26 07:08:33 UTC
Git commit bb9c41193535cb79c5b77bded70c4883deab2a88 by Maik Qualmann.
Committed on 26/11/2020 at 07:07.
Pushed by mqualmann into branch 'master'.

read dir to check for file name to fix renaming in Windows
FIXED-IN: 7.2.0

M  +2    -1    NEWS
M  +7    -1    core/libs/iojobs/iojob.cpp

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