Inserting event with two subjects with the same URI breaks the following event
Bug #909708 reported by
Siegfried Gevatter
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Zeitgeist Framework |
Fix Released
|
Medium
|
Seif Lotfy |
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).
Related branches
lp:~zeitgeist/zeitgeist/fix-909708
- Siegfried Gevatter: Approve
-
Diff: 39 lines (+11/-0)2 files modifiedsrc/engine.vala (+10/-0)
test/dbus/remote-test.py (+1/-0)
Changed in zeitgeist: | |
assignee: | nobody → Siegfried Gevatter (rainct) |
importance: | Undecided → Medium |
milestone: | none → 0.9.0 |
status: | New → Confirmed |
Changed in zeitgeist: | |
status: | In Progress → Fix Committed |
Changed in zeitgeist: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
Committed a test case reproducing this in revision 350.
------------------- uplicateSubject (self):
events = parse_events( "test/data/ three_events. js")
events[ 0].subjects. append( list(events[ 0].subjects[ 0])) tsAndWait( events)
self.assertEqu als(3, len(set(ids)))
def testInsertWithD
ids = self.insertEven
-------------------