Bug 493950

Summary: Dolphin inconsistently handles case in Tags
Product: [Applications] dolphin Reporter: tagwerk19
Component: generalAssignee: Dolphin Bug Assignee <dolphin-bugs-null>
Status: REPORTED ---    
Severity: normal CC: kfm-devel
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Neon   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description tagwerk19 2024-10-02 05:13:07 UTC
SUMMARY
    If you tag a file with a tag of the "wrong case", Dolphin gets confused.

STEPS TO REPRODUCE: 
1...
    Make sure you have content indexing enabled and you are indexing your test directory

2...
    Create a test file and assign a tag "mytag":

        $ echo "Hello Penguin" > testfile.txt
        $ setfattr -n "user.xdg.tags" -v "mytag" testfile.txt  

3... 
    Check to see Baloo has indexed it and the "mytag" folder appears in Places Panel,
    Tags section and in the "All Tags" folder

4...
    In Dolphin, find the file and add a tag "MyTag" through the "Assign Tags" context
    menu (don't use the "Edit..." in the F11 Information Panel, you will hit Bug 493862)
    
    See what's happened...

OBSERVED RESULT:
    You will see both mytag and MyTag in the "assign Tags" dropdown list and both listed
    in the F11 information panel. The tag handling here seems to be case sensitive.
    
    However, you will see only the second tag, "MyTag" appear in the Places Panel, Tags
    section and in the "All Tags" folder. The earlier "mytag" disappears. The tag
    handling here seems to be case insensitive but Dolphin seems to show the "last
    used" tag.

EXPECTED RESULT:
    Baloo generally ignores case when indexing and searching. It does however index tags
    in mixed case. Somebody was doing the right thing :-)
        
    If you have used the "wrong case" when applying a tag, *both* tags should appear in
    the Places, Tags section and in the "All Tags" folder view
    
SOFTWARE/OS VERSIONS:
    Neon Unstable 
    Dolphin: 24.11.70
    Plasma: 6.1.90
    Frameworks: 6.7.0
    Qt: 6.7.2

ADDITIONAL INFORMATION:
    Command line searches "baloosearch6 tags:mytag", "baloosearch6 tags:MyTag",
    "baloosearch6 tags:mYtAG" seemingly do case insensitive searches.