Closed
Bug 375383
Opened 17 years ago
Closed 17 years ago
WCAP event with category lost all data after view refresh
Categories
(Calendar :: Provider: WCAP, defect)
Calendar
Provider: WCAP
Tracking
(Not tracked)
VERIFIED
FIXED
People
(Reporter: andreas.treumann, Assigned: michael.buettner)
Details
Attachments
(1 file)
2.62 KB,
patch
|
mvl
:
first-review+
|
Details | Diff | Splinter Review |
REPRODUCTION: ============= - use a WCAP calendar to create an event - fill out all fields, choose a catrgory e. g. 'Anniversery' - save this event - refresh the view RESULT: ======= - all data is lost, the event named 'New Event' again EXPECTED RESULT: ================ - a view refresh should not cause a data loss when a WCAP event gets a category REPRODUCIBLE: ============= - always Same scenario with a local home calendar works.
Flags: blocking-calendar0.5?
Assignee | ||
Comment 1•17 years ago
|
||
The problem is that a modification on an item gets the old item as well as the new item (see [1] for the idl definition). The providers are free to rely on this fact, where WCAP does just that. Daniel introduced recently that only the differences of the items are send to the server. Unfortunately, it is likely that the new item is passed as both arguments (new/old). This happens if the item to be modified is mutable, since the old item only gets cloned if it is not mutable, see [2]. this results in the old item being modified and being passed to modifyItem, the same instance disguised with different variable names. The problem exists in the standard dialog as well in the prototype dialog. [1] http://lxr.mozilla.org/seamonkey/source/calendar/base/public/calICalendar.idl#208 [2] http://lxr.mozilla.org/seamonkey/source/calendar/prototypes/wcap/sun-calendar-event-dialog.js#2191
Attachment #259673 -
Flags: first-review?(mvl)
Comment 2•17 years ago
|
||
Comment on attachment 259673 [details] [diff] [review] patch v1 r=mvl
Attachment #259673 -
Flags: first-review?(mvl) → first-review+
Assignee | ||
Comment 3•17 years ago
|
||
Checked in on trunk and MOZILLA_1_8_BRANCH -> FIXED
Status: NEW → RESOLVED
Closed: 17 years ago
Resolution: --- → FIXED
Reporter | ||
Comment 4•17 years ago
|
||
I checked this issue in the latest nightly build 2007040406 at Windows and linux. The task is fixed.
Status: RESOLVED → VERIFIED
Comment 5•17 years ago
|
||
Litmus testcase 4439 created
You need to log in
before you can comment on or make changes to this bug.
Description
•