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)
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: mvl, Assigned: vlad)
Details
Attachments
(2 files)
|
1.20 KB,
text/plain
|
Details | |
|
1.19 KB,
patch
|
shaver
:
first-review+
|
Details | Diff | Splinter Review |
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.
| Reporter | ||
Comment 1•20 years ago
|
||
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
| Reporter | ||
Comment 2•20 years ago
|
||
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 3•20 years ago
|
||
Comment on attachment 185455 [details] [diff] [review] patch v1 Oh my yes. r=shaver
Attachment #185455 -
Flags: first-review?(vladimir) → first-review+
| Reporter | ||
Comment 4•20 years ago
|
||
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.
Description
•