Bug 429664 - Windows file rename change case only fails badly
Summary: Windows file rename change case only fails badly
Status: RESOLVED FIXED
Alias: None
Product: digikam
Classification: Applications
Component: AdvancedRename-dialog (show other bugs)
Version: 7.2.0
Platform: Microsoft Windows Microsoft Windows
: NOR normal
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-11-26 00:57 UTC by kdeb
Modified: 2022-02-01 06:23 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In: 7.2.0
Sentry Crash Report:


Attachments

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