Comment 47 for bug 602211

Revision history for this message
Mikkel Kamstrup Erlandsen (kamstrup) wrote : Re: [Bug 602211] Re: Monitoring Create/Move/Copy Files events

On 15 November 2010 21:07, Seif Lotfy <email address hidden> wrote:
> SNIP
> So lets say I have a file that has been moved from /home/seif/foo to
> /home/seif/bar. This means I query for all events where subject_uri =
> /home/seif/foo so I get all results until the point it was moved, right? And
> if I ask for /home/seif/bar I get all events with subject_uri =
> /home/seif/foo as well as all subject_uri = /home/seif/bar ... ?

We still do strict template matching. If you query for event with
subject_uri=bar then you wont get any events with subject_uri=foo,
disregarding the subject_current_uri.

Otoh if you query for events with subject_current_uri=bar you will get
all events for subject_uri=foo too because these events will have been
set to subject_current_uri=bar. Note that we are *not* being clever
about matching on both the subject_uri and subject_current_uri fields.
It's still strict matching on the subject_current_uri field that gives
you these results.