Bug 357504

Summary: File might get invisible in album after rename (by removing file extension)
Product: [Applications] digikam Reporter: Gregor Müllegger <gregor>
Component: AdvancedRename-fileAssignee: Digikam Developers <digikam-bugs-null>
Status: RESOLVED FIXED    
Severity: minor    
Priority: NOR    
Version: 4.14.0   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In: 5.0.0
Sentry Crash Report:

Description Gregor Müllegger 2016-01-04 10:14:28 UTC
I once made a few files disappear in my album by renaming them. It was not obvious to me at first as they just disappear. The reason that they were not listed anymore was that I accidentally removed the file extension while renaming (so it did not have a .jpg ending anymore).

The behaviour makes totally sense as digikam can only preview image files, and those are usually identified by the file extension. However it would be more fool-proof if it was harder to actually remove the file suffix.

For example, what about two different input boxes, one for the actual file name and one for the file extension. Keeping them separate would make changing/deleting the fileextension very explicit. Another alternative would be to show a (slightly annoying) confirmation modal that asks if you really want to change the file extension as this change will make the file invisible in digikam.

Reproducible: Always

Steps to Reproduce:
1. Select one file in the album view
2. Press F2 to rename
3. Enter a new filename and remove the file extension (that might happen by accident if you use Ctrl+A and then start typing)
4. The renamed file is no longer visible in the album
Comment 1 Maik Qualmann 2016-01-12 18:33:18 UTC
Git commit 78222b4b6475ab0ef7855119c84c28c865bf4c3b by Maik Qualmann.
Committed on 12/01/2016 at 18:31.
Pushed by mqualmann into branch 'master'.

makes extension also in single file mode only with [ext] accessible
FIXED-IN: 5.0.0

M  +2    -1    NEWS
M  +8    -7    utilities/advancedrename/advancedrenamedialog.cpp

http://commits.kde.org/digikam/78222b4b6475ab0ef7855119c84c28c865bf4c3b