Bug 431187 - Search doesn't work with |
Summary: Search doesn't work with |
Status: CONFIRMED
Alias: None
Product: frameworks-baloo
Classification: Frameworks and Libraries
Component: general (show other bugs)
Version: 5.68.0
Platform: Kubuntu Linux
: NOR normal
Target Milestone: ---
Assignee: Stefan Brüns
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-01-05 16:37 UTC by Bill Sideris
Modified: 2021-02-16 09:54 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
Proof (221.21 KB, image/png)
2021-01-05 20:41 UTC, Bill Sideris
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Bill Sideris 2021-01-05 16:37:00 UTC
SUMMARY
Search does not search for the character |
I have a folder on ext4 which contains plenty of files with the character | in the name.
After I search "|" (without the "") I get nothing. No results. 

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: kubuntu 20.04
KDE Plasma Version: 5.18.5
KDE Frameworks Version: 5.68.0
Qt Version: 5.12.8
Comment 1 Nate Graham 2021-01-05 17:40:55 UTC
Does it work if you use the command-line baloosearch utility?
Comment 2 Bill Sideris 2021-01-05 18:19:20 UTC
nope.
I made
/home/bill88t/Desktop/temp/all/
and
/home/bill88t/Desktop/temp/one|/

Then from the terminal:

bill88t@KeyFalse:~/Desktop$ baloosearch -d /home/bill88t/Desktop/temp -t folder "all"
/home/bill88t/Desktop/temp/all
Elapsed: 0,408531 msecs
bill88t@KeyFalse:~/Desktop$ baloosearch -d /home/bill88t/Desktop/temp -t folder "one|"
Elapsed: 0,173076 msecs
Comment 3 Nate Graham 2021-01-05 18:27:09 UTC
Seems like a bug in Baloo itself then. Can confirm. Probably | is a reserved internal character for "or" searches and it isn't escaped in user input
Comment 4 Stefan Brüns 2021-01-05 18:59:48 UTC
Can't confirm:

$> baloosearch -t folder -d  ~/Documents/Baloo/other/ "one|"
/home/stefan/Documents/Baloo/other/one|

$> balooshow -x ~/Documents/Baloo/other/*\|
463327173378375171 65027 107876764 /home/stefan/Documents/Baloo/other/one|
        Mtime: 1609872927 2021-01-05T19:55:27
        Ctime: 1609872927 2021-01-05T19:55:27

Internal Info
Terms: Mdirectory Minode T9 
File Name Terms: Fone F| 
XAttr Terms: 
49938624132742659 65027 11627242 /home/stefan/Documents/Baloo/other/with_pipe|
        Mtime: 1609872356 2021-01-05T19:45:56
        Ctime: 1609872356 2021-01-05T19:45:56

Internal Info
Terms: Mdirectory Minode T9 
File Name Terms: Fpipe Fwith F| 
XAttr Terms:
Comment 5 Bill Sideris 2021-01-05 20:41:25 UTC
Created attachment 134589 [details]
Proof

More weirdness upon close inspection..
Comment 6 Bill Sideris 2021-01-05 20:43:57 UTC
A screenshot with proof and some more weirdness.
Comment 7 Bill Sideris 2021-01-06 06:48:19 UTC
I have Baloo version 5.68.0. The thread was auto set to 5.77.0.
It was installed from the kubuntu default repos.