[dolphin] [Bug 433990] New: Dolphin does not trim leading/trailing spaces from new tags

bugzilla_noreply at kde.org bugzilla_noreply at kde.org
Fri Mar 5 09:06:40 GMT 2021


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

            Bug ID: 433990
           Summary: Dolphin does not trim leading/trailing spaces from new
                    tags
           Product: dolphin
           Version: 20.12.3
          Platform: Other
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: general
          Assignee: dolphin-bugs-null at kde.org
          Reporter: tagwerk19 at innerjoin.org
                CC: kfm-devel at kde.org
  Target Milestone: ---

SUMMARY:

    Dolphin can create tags/tag components with leading/trailing spaces,
    these are shown as distinct in the tag list 

STEPS TO REPRODUCE:

    Create a test file and attach tags "mytag", " mytag", "mytag ",
    " mytag " and "parenttag / mytag" (using "Assign Tags" from context menu)

    Check the file with "getfattr -d ..."

OBSERVED RESULTS

    # file: testfile.jpg
    user.xdg.tags="mytag,mytag , mytag, mytag ,parenttag / mytag"

EXPECTED RESULTS

    Leading and trailing spaces should be trimmed from tag components
    before being saved

SOFTWARE/OS VERSIONS

    Neon Testing

    Dolphin : 20.12.3
    Plasma : 5.21.2
    Frameworks : 5.80.0
    Qt : 5.15.2 

ADDITIONAL INFORMATION

    Works better in the information panel "Tags" dialog but that still
    stumbles on tag components, as when creating "parenttag / mytag"

    (I see the discussion for filenames in bug 383376. Gut feeling is that
    if you really want a leading/trailing space, you should explicitly
    quote them. That's probably a separate discussion though)

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the kfm-devel mailing list