Bug 116240 - beagle can lose track of copied files
Summary: beagle can lose track of copied files
Status: RESOLVED FIXED
Alias: None
Product: SUSE LINUX 10.0
Classification: openSUSE
Component: GNOME (show other bugs)
Version: RC 1
Hardware: Other All
: P5 - None : Critical
Target Milestone: ---
Assignee: Gary Ekker
QA Contact: E-mail List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-09-09 19:41 UTC by Jon Trowbridge
Modified: 2005-09-12 16:01 UTC (History)
1 user (show)

See Also:
Found By: Other
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments
a fix for this bug (2.02 KB, patch)
2005-09-09 19:48 UTC, Jon Trowbridge
Details | Diff
yet another patch (2.20 KB, text/x-patch)
2005-09-11 21:55 UTC, Jon Trowbridge
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jon Trowbridge 2005-09-09 19:41:51 UTC
In some cases, "cp foo bar" will cause "foo" to be dropped from the index. 
Because invalid metadata remains attached to "foo", it might not be
re-discovered by the daemon during subsequent crawls.
Comment 1 Jon Trowbridge 2005-09-09 19:48:41 UTC
Created attachment 49463 [details]
a fix for this bug
Comment 2 Gary Ekker 2005-09-09 20:44:07 UTC
submitted for RC2
Comment 3 Jon Trowbridge 2005-09-11 21:52:43 UTC
I spent some time thinking about this bug over the weekend, and found a problem
with my orginal fix.

My original patch was mostly correct, but didn't correctly handle some corner
cases: certain combinations of copy and move operations could cause an exception
to be thrown and leave the index in an inconsistent state.  The attached patch
fixes this problems.
Comment 4 Jon Trowbridge 2005-09-11 21:55:02 UTC
Created attachment 49550 [details]
yet another patch

Note: this patch does *not* obsolete my previous patch.  Both patches are
needed to fix the problem.
Comment 5 JP Rosevear 2005-09-12 12:08:37 UTC
AJ, if this won't make 10.0 I'd like to ship an update.
Comment 6 Andreas Jaeger 2005-09-12 13:09:22 UTC
It's submitted and checked in - isn't it?

-------------------------------------------------------------------
Fri Sep  9 22:37:20 CEST 2005 - gekker@suse.de

- Fix handling of copied files (116240)
- Fix creation of beagleindex user
- Fix owner of /var/cache/beagle (113424)

Otherwise: Please submit new package asap.
Comment 7 JP Rosevear 2005-09-12 14:20:41 UTC
There is a second patch that handles a couple more corner cases.  Going to
submit asap.
Comment 8 Gary Ekker 2005-09-12 16:01:49 UTC
Chris submitted this patch for RC3.