https://bugs.kde.org/show_bug.cgi?id=414344

            Bug ID: 414344
           Summary: Image names and Album names that only differ by case
                    are treated as the same.
           Product: digikam
           Version: 6.4.0
          Platform: Mint (Debian based)
                OS: Linux
            Status: REPORTED
          Severity: minor
          Priority: NOR
         Component: Database-Scan
          Assignee: digikam-bugs-n...@kde.org
          Reporter: jmdick...@gmail.com
  Target Milestone: ---

SUMMARY
When multiple files or sub-directories in the same directory have names that
differ only by the case, digikam only displays one of them.


STEPS TO REPRODUCE
1. Create a name collision:
convert -size 50x50 plasma: /home/john/Pictures/file1.jpg
convert -size 50x50 plasma: /home/john/Pictures/File1.jpg
2. Launch digikam:
~/appimages/digikam-6.4.0-x86-64.appimage
3. Check the album

OBSERVED RESULT
Only one of the files is displayed.

EXPECTED RESULT
All files should be displayed.

SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: Linux Mint 18.3 / KDE Plasma Version 5.8.9
(available in About System)
KDE Plasma Version:
KDE Frameworks Version:  KDE Frameworks 5.61.0
Qt Version: Qt 5.13.1 (built against 5.13.1)

ADDITIONAL INFORMATION
Database: mysql
Collection filesystem: ext4

Note: the startup scan detects one of the other files and seems to update the
database each time digikam is started:

First run after files are created:
~/appimages/digikam-6.4.0-x86-64.appimage
...
Digikam::NewItemsFinder::slotStart: scan mode: ScanDeferredFiles
Digikam::NewItemsFinder::slotTotalFilesToScan: total scan value :  12711
Digikam::DImg::load: "/home/john/Pictures/File1.jpg" : "JPEG" file identified
Digikam::ItemScanner::prepareAddImage: Adding new item
"/home/john/Pictures/File1.jpg"
Digikam::ItemScanner::commit: Scanning took 21 ms
Digikam::ItemScanner::~ItemScanner: Finishing took 9 ms
Digikam::DImg::load: "/home/john/Pictures/file1.jpg" : "JPEG" file identified
Digikam::ItemScanner::prepareAddImage: Adding new item
"/home/john/Pictures/file1.jpg"
Digikam::ItemScanner::commit: Scanning took 19 ms
Digikam::ItemScanner::~ItemScanner: Finishing took 8 ms
Digikam::ThumbnailCreator::loadImagePreview: Trying to get thumbnail with Exiv2
for "/home/john/Pictures/File1.jpg"
Digikam::ThumbnailCreator::loadImagePreview: Trying to get thumbnail with DImg
preview for "/home/john/Pictures/File1.jpg"
Digikam::DImg::load: "/home/john/Pictures/File1.jpg" : "JPEG" file identified
...

Second run:
~/appimages/digikam-6.4.0-x86-64.appimage
...
Digikam::NewItemsFinder::slotStart: scan mode: ScanDeferredFiles
Digikam::NewItemsFinder::slotTotalFilesToScan: total scan value :  12711
Digikam::DImg::load: "/home/john/Pictures/File1.jpg" : "JPEG" file identified
Digikam::ItemScanner::prepareAddImage: Adding new item
"/home/john/Pictures/File1.jpg"
Digikam::ItemScanner::commit: Scanning took 17 ms
Digikam::ItemScanner::~ItemScanner: Finishing took 18 ms
Digikam::ThumbnailCreator::loadImagePreview: Trying to get thumbnail with Exiv2
for "/home/john/Pictures/File1.jpg"
Digikam::ThumbnailCreator::loadImagePreview: Trying to get thumbnail with DImg
preview for "/home/john/Pictures/File1.jpg"
Digikam::DImg::load: "/home/john/Pictures/File1.jpg" : "JPEG" file identified
...

Third run:
~/appimages/digikam-6.4.0-x86-64.appimage
...
Digikam::NewItemsFinder::slotStart: scan mode: ScanDeferredFiles
Digikam::NewItemsFinder::slotTotalFilesToScan: total scan value :  12711
Digikam::DImg::load: "/home/john/Pictures/file1.jpg" : "JPEG" file identified
Digikam::ItemScanner::prepareAddImage: Adding new item
"/home/john/Pictures/file1.jpg"
...

Setting the locale to C does not help --- it only makes things worse by hiding
my photos that have utf-8 characters in their names:
LC_ALL=C ~/appimages/digikam-6.4.0-x86-64.appimage
...
Digikam::NewItemsFinder::slotTotalFilesToScan: total scan value :  12646
Digikam::CollectionScanner::itemsWereRemoved: Removed items: (6934, 6935, 6936,
6937, 6938, 6939, 6940, 6941, 6942, 6943, 6944, 6945, 6946, 6947, 6948, 6949,
6950, 6951, 6952, 6953, 6954, 6955, 6956, 6957, 6958,
...
Digikam::DImg::load: "/home/john/Pictures/File1.jpg" : "JPEG" file identified
Digikam::ItemScanner::prepareAddImage: Adding new item
"/home/john/Pictures/File1.jpg"
...

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to