Bug in find_related_uris

Bug #570741 reported by Michal Hruby on 2010-04-27
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Zeitgeist Framework
Fix Released
High
Seif Lotfy

Bug Description

While playing with libzg, I got this exception:

** (process:10701): CRITICAL **: file /home/miso/test-zg.vala.c: line 166: uncaught error: Remote Exception invoking org.gnome.zeitgeist.Log.FindRelatedUris() on /org/gnome/zeitgeist/log/activity at name org.gnome.zeitgeist.Engine: org.freedesktop.DBus.Python.IndexError: Traceback (most recent call last):
  File "/usr/lib/pymodules/python2.6/dbus/service.py", line 702, in _message_cb
    retval = candidate_method(self, *args, **keywords)
  File "/usr/share/zeitgeist/_zeitgeist/engine/remote.py", line 135, in FindRelatedUris
    result_event_templates, storage_state, num_events, result_type)
  File "/usr/share/zeitgeist/_zeitgeist/engine/main.py", line 303, in find_related_uris
    landmarks = set([unicode(event.subjects[0].uri) for event in event_templates])
IndexError: list index out of range

Seif Lotfy (seif) on 2010-04-28
Changed in zeitgeist:
status: New → Fix Released
importance: Undecided → High
assignee: nobody → Seif Lotfy (seif)
milestone: none → 0.3.4

Seif: Was this revision http://bazaar.launchpad.net/~zeitgeist/zeitgeist/trunk/revision/1445 ?

I actually had expected the crash to be because len(event.subjects) == 0 in event.subjects[0].uri? It does not seem to be what you fixed in that rev :-)

Changed in zeitgeist:
milestone: 0.3.4 → 0.4.0
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers