Bug 395174 - Search using string 'keepass' does not display the program 'keepassx' in search result
Summary: Search using string 'keepass' does not display the program 'keepassx' in sear...
Status: RESOLVED DOWNSTREAM
Alias: None
Product: Discover
Classification: Applications
Component: discover (show other bugs)
Version: 5.12.5
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Aleix Pol
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-06-09 11:12 UTC by accron1
Modified: 2018-07-02 22:52 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
Search result for string 'keepass' (311.83 KB, image/jpeg)
2018-06-14 20:51 UTC, accron1
Details
Search result for string 'keepassx' (319.39 KB, image/jpeg)
2018-06-14 20:52 UTC, accron1
Details
Screenshot of search 'keepass' on main screen in Kde Neon, installed and running on bare metal, and fully updated. (60.43 KB, image/png)
2018-06-27 16:02 UTC, accron1
Details
Screenshot of search 'keepass' in Application screen in Kde Neon, installed and running on bare metal, and fully updated. (60.43 KB, image/png)
2018-06-27 16:05 UTC, accron1
Details
Screenshot of exact search 'keepassx' on main screen in Kde Neon, installed and running on bare metal, and fully updated. (103.86 KB, image/png)
2018-06-27 16:10 UTC, accron1
Details

Note You need to log in before you can comment on or make changes to this bug.
Description accron1 2018-06-09 11:12:56 UTC
To reproduce:
- Open Discover and type 'keepass' in search field.

Expected result:
The program KeePassX should be displayed in search result

Actual result:
KeePassX is not displayed in search result
Comment 1 Nate Graham 2018-06-12 13:22:54 UTC
Works for me with 5,12.5 on Kubuntu 18.04. What distro are you using?
Comment 2 accron1 2018-06-13 07:53:45 UTC
I had the issue on both Kubuntu 18.04 and then Neon (I say 'had' because I have since then uninstalled them due to other issues I also had with kde). I was honestly a little surprised because I know you have worked hard on improving Discover.

Should have taken a screen shot of it... But I got the exact same result in both distros: keepassx was missing from search result, while displaying two unrelated entries (same unrelated entries in both distros).

I plan to install Neon again once the 18.04 version is out, I can report back then.
Comment 3 Aleix Pol 2018-06-14 11:25:33 UTC
Works here on ArchLinux too both for distro packages and flatpak.
Comment 4 accron1 2018-06-14 20:51:37 UTC
Created attachment 113327 [details]
Search result for string 'keepass'
Comment 5 accron1 2018-06-14 20:52:29 UTC
Created attachment 113328 [details]
Search result for string 'keepassx'
Comment 6 Nate Graham 2018-06-14 20:53:36 UTC
Thanks for the screenshot, that helps. If you click on "Applications" and search for "keepass", do you get more appropriate results?
Comment 7 Nate Graham 2018-06-14 20:55:42 UTC
BTW, just hit the PrintScreen key on your keyboard and the Spectacle program will open, allowing you to take a screenshot; no need to point your phone at the screen!
Comment 8 accron1 2018-06-14 21:20:12 UTC
(In reply to Nate Graham from comment #6)
> Thanks for the screenshot, that helps. If you click on "Applications" and
> search for "keepass", do you get more appropriate results?

I get no result at all (i.e. 'Sorry, nothing found...").

I take it then you are not able to reproduce this issue?

(Thanks for the screenshot tip, but I took the pics with my phone because I tried Neon in a VM on another machine simply to see if I could reproduce the reported issue; it was faster/easier to simply snap the pics with my phone than transfer the pics from that machine....)
Comment 9 Nate Graham 2018-06-14 21:22:37 UTC
I am not able to reproduce this issue with Kubuntu running on real hardware.

Are you in a live session, perchance? Can you successfully search for *anything* while in the Applications category?
Comment 10 accron1 2018-06-14 21:43:59 UTC
The screenshots are from a live session.

But the initial report was filed after installing the distros (Kubuntu 18.04 and Neon), and fully updated the system - hence my bug report: the result from the live session is IDENTICAL to what I saw after the installations.
I wouldn't have reported it if I weren't running on metal (even though I would probably still have expected it to work in a VM as well).

Yep, if I search 'word' I get 'LibreOffice Writer', among several other text editor suggestions; I actually tried this very search in my previous installations as well, just to confirm that I could get any relevant hits at all. That's why I specifically reported only KeePassX.
Comment 11 Nate Graham 2018-06-14 21:47:07 UTC
Very weird, thanks for the info.
Comment 12 Aleix Pol 2018-06-15 10:36:55 UTC
What these screenshots are showing is Discover without any appstream information on the system. This issue gets fixed, on Debian* distros by running "apt update".

Maybe it was just the first time you'd use Discover?
Comment 13 Nate Graham 2018-06-15 12:53:03 UTC
accron1@yahoo.com, let us know if the issue is fixed after an `apt update` and restarting Discover.

Aleix, could we have Discover automatically do this if it detects that there's no AppStream metadata downloaded?
Comment 14 accron1 2018-06-16 09:01:20 UTC
I did:
- boot into a live session running in a VM
- run 'sudo apt update'
- open Disover and search 'keepass', both from main screen and under Applications

Result:
exactly as reported earlier

Isn't this to be expected though, given that:
1) the exact search 'keepassx' does find the app (i.e. if it were a matter of missing data then you wouldn't expect the exact search to return anything either)
2) as I explained in comment #10, I had this issue on a fully updated system as well
Comment 15 Christoph Feck 2018-06-27 15:32:20 UTC
Does comment #14 provide the requested information? Please set the bug status or add a comment.
Comment 16 accron1 2018-06-27 16:02:38 UTC
Created attachment 113604 [details]
Screenshot of search 'keepass' on main screen in Kde Neon, installed and running on bare metal, and fully updated.

As reported, I got the same error not only in VM live session, but also running on bare metal and fully updated. The screenshot shows that.
Comment 17 accron1 2018-06-27 16:05:57 UTC
Created attachment 113605 [details]
Screenshot of search 'keepass' in Application screen in Kde Neon, installed and running on bare metal, and fully updated.

As reported, I got the same error not only in VM live session, but also running on bare metal and fully updated. The screenshot shows that.
Comment 18 accron1 2018-06-27 16:10:13 UTC
Created attachment 113606 [details]
Screenshot of exact search 'keepassx' on main screen in Kde Neon, installed and running on bare metal, and fully updated.

As reported, I got the same error not only in VM live session, but also running on bare metal and fully updated. The screenshot shows that.
Comment 19 Aleix Pol 2018-07-02 13:06:11 UTC
Can you check what's the output of "appstreamcli search keepass"?
Comment 20 accron1 2018-07-02 18:05:09 UTC
(In reply to Aleix Pol from comment #19)
> Can you check what's the output of "appstreamcli search keepass"?

Output is (in direct translation): "Could not find component matching keepass!"

I also searched for 'keepassX', and interestingly enough the output is the same even though the exact search does work in Discover.
Comment 21 Aleix Pol 2018-07-02 22:52:23 UTC
There's something broken in your appstream set up. I recommend checking with your distro.