cubicweb-tracker #5103173 issue with cascade deletion of a project [validation pending]

Once on extranet forge, trying to delete a projet

2015-03-19 13:49:27 - (cubicweb.repository) ERROR: error while cascading delete for entity [<Entity Ticket 2815584 [] at 192293648>, <Entity Ticket 2895681 [] at 192294032>, <Entity Ticket 2840386 [] at 192294416>, <Entity Ticket 2840235 [] at 192290960>, <Entity Ticket 2783460 [] at 192290896>, <Entity Ticket 2803077 [] at 192293264>, <Entity Ticket 2783462 [] at 192292048>, <Entity Ticket 2783464 [] at 192293008>, <Entity Ticket 2815722 [] at 192159824>, <Entity Ticket 2840330 [] at 140038037476176>, <Entity Ticket 2783467 [] at 187000848>, <Entity Ticket 2783458 [] at 186999888>, <Entity Ticket 2840239 [] at 187002512>, <Entity Ticket 2783472 [] at 187000912>, <Entity Ticket 2840530 [] at 187002256>, <Entity Ticket 2841336 [] at 187000784>, <Entity Ticket 2840282 [] at 187001360>, <Entity Ticket 2815583 [] at 187002576>, <Entity Ticket 2783466 [] at 187001744>, <Entity Ticket 2783455 [] at 187001168>]. RQL: DELETE X done_in Y WHERE X eid IN (2815584,2895681,2840386,2840235,2783460,2803077,2783462,2783464,2815722,2840330,2783467,2783458,2840239,2783472,2840530,2841336,2840282,2815583,2783466,2783455)
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/cubicweb/server/repository.py", line 1136, in _delete_info_multi
    session.execute(rql, build_descr=False)
  File "/usr/lib/python2.7/dist-packages/cubicweb/server/session.py", line 371, in wrapper
    return func(cnx, *args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/cubicweb/server/session.py", line 381, in check_open
    return func(cnx, *args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/cubicweb/server/session.py", line 1019, in execute
    rset = self._execute(self, rql, kwargs, build_descr)
  File "/usr/lib/python2.7/dist-packages/cubicweb/server/querier.py", line 611, in execute
    results = plan.execute()
  File "/usr/lib/python2.7/dist-packages/cubicweb/server/querier.py", line 192, in execute
    result = step.execute()
  File "/usr/lib/python2.7/dist-packages/cubicweb/server/ssplanner.py", line 485, in execute
    delete(cnx, subj, self.rtype, obj)
  File "/usr/lib/python2.7/dist-packages/cubicweb/server/repository.py", line 1383, in glob_delete_relation
    eidfrom=subject, rtype=rtype, eidto=object)
  File "/usr/lib/python2.7/dist-packages/cubicweb/server/hook.py", line 412, in call_hooks
    registry.call_hooks(event, cnx, **kwargs)
  File "/usr/lib/python2.7/dist-packages/cubicweb/server/hook.py", line 333, in call_hooks
    hook()
  File "/usr/share/cubicweb/cubes/tracker/hooks.py", line 35, in __call__
    {'x': self.eidfrom}).rows[0][0]
IndexError: list index out of range
2015-03-19 13:49:29 - (cubicweb.repository) ERROR: error while cascading delete for entity [<Entity Version 2840281 [] at 187329808>, <Entity Version 2783451 [] at 187508368>]. RQL: DELETE Y appeared_in X WHERE X eid IN (2840281,2783451)
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/cubicweb/server/repository.py", line 1136, in _delete_info_multi
    session.execute(rql, build_descr=False)
  File "/usr/lib/python2.7/dist-packages/cubicweb/server/session.py", line 371, in wrapper
    return func(cnx, *args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/cubicweb/server/session.py", line 381, in check_open
    return func(cnx, *args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/cubicweb/server/session.py", line 1019, in execute
    rset = self._execute(self, rql, kwargs, build_descr)
  File "/usr/lib/python2.7/dist-packages/cubicweb/server/querier.py", line 611, in execute
    results = plan.execute()
  File "/usr/lib/python2.7/dist-packages/cubicweb/server/querier.py", line 192, in execute
    result = step.execute()
  File "/usr/lib/python2.7/dist-packages/cubicweb/server/ssplanner.py", line 485, in execute
    delete(cnx, subj, self.rtype, obj)
  File "/usr/lib/python2.7/dist-packages/cubicweb/server/repository.py", line 1383, in glob_delete_relation
    eidfrom=subject, rtype=rtype, eidto=object)
  File "/usr/lib/python2.7/dist-packages/cubicweb/server/hook.py", line 412, in call_hooks
    registry.call_hooks(event, cnx, **kwargs)
  File "/usr/lib/python2.7/dist-packages/cubicweb/server/hook.py", line 333, in call_hooks
    hook()
  File "/usr/share/cubicweb/cubes/tracker/hooks.py", line 35, in __call__
    {'x': self.eidfrom}).rows[0][0]
IndexError: list index out of range
prioritynormal
typebug
done in1.17.1
load1.000
load left0.000
closed by#6482c453f613 [hooks] remove bad assumptions (closes #5103173)
patch[hooks] remove bad assumptions (closes #5103173) [applied]