Closed Bug 296746 Opened 20 years ago Closed 20 years ago

getItem on one calendar gets items from another calendar

Categories

(Calendar :: Provider: Local Storage, defect)

x86
Linux
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: mvl, Assigned: vlad)

Details

Attachments

(2 files)

I have 2 storage calendar, both with a different uri. If i add an item to one
calendar, and call getItem (with the id of that item) on the other calendar, i
do get the item back. But the second calendar is empty (as is the file)

But if the calendar file already contains the item on startup, and the addItem
is removed, cal2.getItem does indeed not return anything. So the problem is in
addItem, not in reading the storage file.
Attached file testcase —
expected result from the testcase:
Nothing should be between here
and here

actual result:
Nothing should be between here
 0 ABC3234 FooBar file:///tmp/cal1.sdb
and here
Attached patch patch v1 — — Splinter Review
This patch fixes the issue for me. Without it, all instances share the same
cache array (and the observers array)
Attachment #185455 - Flags: first-review?(vladimir)
Comment on attachment 185455 [details] [diff] [review]
patch v1

Oh my yes. r=shaver
Attachment #185455 - Flags: first-review?(vladimir) → first-review+
patch checked in
Status: NEW → RESOLVED
Closed: 20 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: