← Back to team overview

zeitgeist team mailing list archive

[Bug 909708] Re: Inserting event with two subjects with the same URI breaks the following event

 

So I think I went with a modified option 3
since we already parse the subjects before insertion I added a list with subj_uris to find if there is a duplicate and return 0 if one is found

** Changed in: zeitgeist
     Assignee: Siegfried Gevatter (rainct) => Seif Lotfy (seif)

** Changed in: zeitgeist
       Status: Confirmed => In Progress

** Branch linked: lp:~zeitgeist/zeitgeist/fix-909708

-- 
You received this bug notification because you are a member of Zeitgeist
Framework Team, which is subscribed to Zeitgeist Framework.
https://bugs.launchpad.net/bugs/909708

Title:
  Inserting event with two subjects with the same URI breaks the
  following event

Status in Zeitgeist Framework:
  In Progress

Bug description:
  By the way our database is structured, all subjects of a same event
  must have different URIs.

  However, this isn't currently being checked, with the effect that the
  first subject is inserted correctly, while the second subject triggers
  the "existing event" exception and rolls back the event ID. This has
  the effect that the next event to be inserted will incorrectly have
  the same event ID (thus its subjects are mixed into whatever got saved
  of the first event and all sorts of weirdness :P).

To manage notifications about this bug go to:
https://bugs.launchpad.net/zeitgeist/+bug/909708/+subscriptions


References