After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 613562 - tracker-search displays results for unavailable data
tracker-search displays results for unavailable data
Status: RESOLVED FIXED
Product: tracker
Classification: Core
Component: General
0.7.x
Other Linux
: Normal major
: ---
Assigned To: tracker-general
Jamie McCracken
Depends on:
Blocks:
 
 
Reported: 2010-03-22 07:12 UTC by Tao Daniel
Modified: 2010-03-22 14:56 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
tracker-miner-fs.log (224.48 KB, text/plain)
2010-03-22 07:12 UTC, Tao Daniel
Details
tracker-extract.log (450.37 KB, text/plain)
2010-03-22 07:13 UTC, Tao Daniel
Details
tracker-miner-fs.cfg (2.31 KB, text/plain)
2010-03-22 07:13 UTC, Tao Daniel
Details

Description Tao Daniel 2010-03-22 07:12:08 UTC
Created attachment 156713 [details]
tracker-miner-fs.log

Tracker version: 0.7.25

Bug detailed descriptions(behavior, impact, etc)
===========================================================
Tracker can't remove USB disk records from database even USB disk is
plugged-out. After USB disk is plugged-out, run command "tracker-search", USB
contents still can be shown in result. The only way to remove USB disk content is to run command "tracker-control -r" to remove all tracker database and run
"tracker-control -s" to trigger tracker re-indexing all contents.

Reproduce Steps(steps,current result, reproduce possibility)
===========================================================
(1) Insert USB disk and wait until all USB contents are indexed by
tracker;
(2) Run command "tracker-search -v", find that USB video content can be
searched out;
(3) Run command "umount /media/" to un-mount USB disk, then plug out USB disk;
(4) Run command "tracker-search -v" again, find that tracker still can show USB
records in result even USB disk is plugged-out;

Expected result:
===========================================================
Tracker should not show USB content in searched result after USB disk is
plugged-out;
Comment 1 Tao Daniel 2010-03-22 07:13:01 UTC
Created attachment 156714 [details]
tracker-extract.log
Comment 2 Tao Daniel 2010-03-22 07:13:36 UTC
Created attachment 156715 [details]
tracker-miner-fs.cfg
Comment 3 Martyn Russell 2010-03-22 09:36:31 UTC
(In reply to comment #0)
> Expected result:
> ===========================================================
> Tracker should not show USB content in searched result after USB disk is
> plugged-out;

This is an interesting situation. The tracker-search utility will show all results in the database regardless of if they are available or not. Additional SPARQL is needed to make sure the item is or isn't mounted.

We should probably add some --available option of some sorts to allow this check to be put in place.
Comment 4 Martyn Russell 2010-03-22 14:56:09 UTC
This problem has been fixed in the development version. The fix will be available in the next major software release. Thank you for your bug report.