Bug 485758

Summary: Tag Folders: Cannot enter folder for a nested tag if a file in the parent tag folder contains the text of the sub-tag.
Product: [Applications] dolphin Reporter: tprotopopescu
Component: panels: foldersAssignee: Dolphin Bug Assignee <dolphin-bugs-null>
Status: REPORTED ---    
Severity: normal CC: kfm-devel, tprotopopescu
Priority: NOR    
Version: 22.12.3   
Target Milestone: ---   
Platform: openSUSE   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description tprotopopescu 2024-04-18 20:39:10 UTC
SUMMARY

If you have a tag with a sub-tag, e.g. foo/bar, then if you have a file containing the word "bar" taged with 'foo' and with 'foo/bar' when you try to enter the 'foo/bar' tag folder dolphin gives the following message: "Could not enter folder tags:/foo/bar". 

In the dolphin terminal panel it says:

> cd '/<path to file>/bar.txt' "
> bash cd: /<path to file>/bar.txt: not a directory

whereas when the tag folder works as expected in terminal it say something like 

> cd /run/user/1000/kio-fuse-BSKyIT/tags/foo/bim


STEPS TO REPRODUCE

1. Create a file containing the word (not string) "bar", e.g. file_bar.txt

2. Tag it with the tags 'foo' and 'foo/bar' (if adding the tag through the information panel make sure that both the tag and the sub-tag are checked).

3. Click the tag folder 'foo' in the left 'places' panel. You should see the tag fragment 'bar' and the file 'file_bar.txt'

4. Click on the tag fragment 'bar'; it says "could not enter folder tags:/foo/bar". In the terminal panel it will say 
> cd '/<path to file>/bar.txt' "
> bash cd: /<path to file>/bar.txt: not a directory

5. Rename the file so that "bar" is no longer a word in the file, e.g. file_bars.txt

6. Going in to the 'bar' tag sub-folder works. 


OBSERVED RESULT

See 4.

EXPECTED RESULT

Go in to the tag sub-folder and see all files tagged with 'foo/bar'.

SOFTWARE/OS VERSIONS

openSUSE Leap 15.5
KDE Plasma Version: 5.27.9 
KDE Frameworks Version: 5.103.0
Qt Version: 5.15.8

ADDITIONAL INFORMATION