<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.kde.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugs.kde.org/"
          
          maintainer="sysadmin@kde.org"
>

    <bug>
          <bug_id>517441</bug_id>
          
          <creation_ts>2026-03-11 17:28:54 +0000</creation_ts>
          <short_desc>Grouping by Filename is behaving differently on MacOS than on Linux Mint</short_desc>
          <delta_ts>2026-03-12 20:35:39 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>2</classification_id>
          <classification>Applications</classification>
          <product>digikam</product>
          <component>Albums-ItemsGroup</component>
          <version>9.0.0</version>
          <rep_platform>macOS (DMG)</rep_platform>
          <op_sys>macOS</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>NOR</priority>
          <bug_severity>wishlist</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>0</everconfirmed>
          <reporter name="T Hauser">npc+kdebug</reporter>
          <assigned_to name="Digikam Developers">digikam-bugs-null</assigned_to>
          <cc>caulier.gilles</cc>
    
    <cc>metzpinguin</cc>
          
          <cf_commitlink>https://invent.kde.org/graphics/digikam/-/commit/f3a5c941d6e9fc98cb4cc3a6a71744ae42dda99c</cf_commitlink>
          <cf_versionfixedin>9.1.0</cf_versionfixedin>
          <cf_sentryurl></cf_sentryurl>
          <votes>0</votes>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>2502564</commentid>
    <comment_count>0</comment_count>
    <who name="T Hauser">npc+kdebug</who>
    <bug_when>2026-03-11 17:28:54 +0000</bug_when>
    <thetext>SUMMARY
I set my Pixel 9 Pro to save the RAW file along the JPG. When loading the files into Digikam to rate them, I want to only once rate the same files (JPG + RAW). I do this by grouping them by filename. This works fine on Linux, but fails on MacOS. I cannot add the files to the bug report, as they are too large. But the filenames are like this:
PXL_20260228_152016807.RAW-01.COVER.jpg
PXL_20260228_152016807.RAW-02.ORIGINAL.dng

As said it works fine in Linux

STEPS TO REPRODUCE
1. In Album View, select all files which the user want to group by filename
2. Right Click &gt; Group &gt; Group Selected Files by Filename

OBSERVED RESULT
Linux: works, the RAW and DNG files are grouped together
MacOS: no grouping takes place. 

EXPECTED RESULT
Linux: files are grouped together
MacOS: files are grouped together

SOFTWARE/OS VERSIONS
macOS: 26.3.1
KDE Frameworks Version: 6.20 (MacOS)
Qt Version: 6.10 (MacOS)

ADDITIONAL INFORMATION</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2502721</commentid>
    <comment_count>1</comment_count>
    <who name="Maik Qualmann">metzpinguin</who>
    <bug_when>2026-03-12 05:29:26 +0000</bug_when>
    <thetext>No, such filenames don&apos;t work under Linux either, because the filename is different (01.COVER != 02.ORIGINAL).

We could only compare them using the so-called base name (PXL_20260228_152016807).

This isn&apos;t a bug, but a feature request.

Maik</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2502723</commentid>
    <comment_count>2</comment_count>
    <who name="T Hauser">npc+kdebug</who>
    <bug_when>2026-03-12 05:56:00 +0000</bug_when>
    <thetext>Would a video help? I just grouped exactly those files yesterdas on Linux. I think I have read somewhere that only the first part of the filename BEFOREjthe dot are grouped, this is why I thought its a bug.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2502732</commentid>
    <comment_count>3</comment_count>
    <who name="Maik Qualmann">metzpinguin</who>
    <bug_when>2026-03-12 06:48:54 +0000</bug_when>
    <thetext>I tested it under Linux with the filenames and the current code also says it cannot work at the moment.

QString fname = it-&gt;name().left(it-&gt;name().lastIndexOf(QLatin1Char(&apos;.&apos;)));

Maik</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2502737</commentid>
    <comment_count>4</comment_count>
    <who name="">caulier.gilles</who>
    <bug_when>2026-03-12 07:25:58 +0000</bug_when>
    <thetext>Hi Maik,

Perhaps the different behavior  between Linux FS and macOS FS (as Windows FS) is the non case-sensitive FS ?

Gilles</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2502742</commentid>
    <comment_count>5</comment_count>
    <who name="Maik Qualmann">metzpinguin</who>
    <bug_when>2026-03-12 08:32:14 +0000</bug_when>
    <thetext>Hi Gilles,

No, case sensitivity is irrelevant here, since the filenames in this example are different. We&apos;re checking up to the last dot in the filename, meaning we&apos;re checking the complete filename.

It&apos;s not a problem to check only the first dot in the filename and thus use the base filename. The only question is whether this would break the behavior for other users.

Maik</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2502903</commentid>
    <comment_count>6</comment_count>
    <who name="Maik Qualmann">metzpinguin</who>
    <bug_when>2026-03-12 20:35:39 +0000</bug_when>
    <thetext>Git commit f3a5c941d6e9fc98cb4cc3a6a71744ae42dda99c by Maik Qualmann.
Committed on 12/03/2026 at 20:34.
Pushed by mqualmann into branch &apos;master&apos;.

use only the base filename to group by filename
FIXED-IN: 9.1.0

M  +1    -1    NEWS
M  +2    -2    core/app/items/utils/itemviewutilities.cpp

https://invent.kde.org/graphics/digikam/-/commit/f3a5c941d6e9fc98cb4cc3a6a71744ae42dda99c</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>