Dash shows invalid search results after deleting a file

Bug #1032697 reported by Robert Dyer
14
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Unity
Triaged
Low
Unassigned
unity-lens-files
Triaged
Low
Unassigned
unity (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

The Files & Folders lense gives wrong results after a file is deleted. It leaves the containing folder in the search results for that term, despite the fact that folder no longer contains files named with that search term.

Steps to reproduce:
1) create a file /tmp/foo.txt
2) open file in gedit: gedit /tmp/foo.txt
3) close gedit
4) open Unity dash and search for 'foo'
5) observe results for both /tmp/foo.txt (file) and /tmp (directory)
6) delete /tmp/foo.txt
7) open Unity dash and search for 'foo' again

Expected behavior: no results
Observed behavior: still one result for /tmp (directory)

This is a non-upgraded install of Precise (12.04) with -proposed enabled.

unity:
  Installed: 5.14.0-0ubuntu1
  Candidate: 5.14.0-0ubuntu1
  Version table:
 *** 5.14.0-0ubuntu1 0
        500 http://us.archive.ubuntu.com/ubuntu/ precise-proposed/main i386 Packages
        100 /var/lib/dpkg/status
     5.12-0ubuntu1.1 0
        500 http://us.archive.ubuntu.com/ubuntu/ precise-updates/main i386 Packages
     5.10.0-0ubuntu6 0
        500 http://us.archive.ubuntu.com/ubuntu/ precise/main i386 Packages

Note that I confirmed this is not a Zeitgeist bug.

<seiflotfy> PsyberS_: that is a unity bug, the fact that you deleted the file does not delete it from the zeitgeist history, but rather annotates it as deleted
<seiflotfy> unity should not show deleted history
<PsyberS_> seiflotfy: but shouldnt the deletion also annotate the directory?
<seiflotfy> PsyberS_: it does
<PsyberS_> oh, but unity doesnt respect that?
<seiflotfy> exactly

Changed in unity:
status: New → Confirmed
Changed in unity-lens-files:
status: New → Confirmed
Changed in unity:
status: Confirmed → Triaged
Changed in unity-lens-files:
status: Confirmed → Triaged
Changed in unity:
importance: Undecided → Low
Changed in unity-lens-files:
importance: Undecided → Low
Changed in unity:
milestone: none → backlog
Tim Penhey (thumper)
Changed in unity:
milestone: backlog → none
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.