Closed Bug 463679 Opened 17 years ago Closed 17 years ago

Two email notifications sent for cached CalDAV calendar

Categories

(Calendar :: Provider: CalDAV, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: lmarcotte, Assigned: lmarcotte)

Details

(Whiteboard: [not needed beta][no l10n impact])

Attachments

(1 file)

User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.0.3) Gecko/2008092414 Firefox/3.0.3 Build Identifier: Lightning 0.9 When using cached CalDAV calendar, if one deletes an event that has an attendee, Lightning will either generate two IMIP messages or will issue two POST calls to the CalDAV server if CalDAV scheduling is enabled. Both cases will result in two emails being sent to the attendee. Reproducible: Always The following code is the culprit one in calDavCalendar.js (from caldav_dDI_del_onStreamComplete) : if (thisCalendar.isCached) { // the item is deleted in the storage calendar from calCachedCalendar realListener.onOperationComplete(thisCalendar, status, Components.interfaces.calIOperationListener.DELETE, null, null); } else { thisCalendar.mTargetCalendar.deleteItem(aItem, aListener); } thisCalendar.mTargetCalendar.deleteItem(aItem, aListener); The last call to deleteItem(...) is unnecessary since it'll be done from calCachedCalendar for cached calendars.
Flags: blocking-calendar1.0?
Keywords: qawanted
Whiteboard: [needs patch for code in comment#0]
Status: UNCONFIRMED → NEW
Ever confirmed: true
Flags: blocking-calendar1.0? → blocking-calendar1.0+
Ludovic, we're planning to do a release to accompany TB3 beta2 shortly. Any chance that you could provide a patch for this soon?
Assignee: nobody → lmarcotte
Whiteboard: [needs patch for code in comment#0] → [needs patch for code in comment#0][not needed beta][no l10n impact]
Whiteboard: [needs patch for code in comment#0][not needed beta][no l10n impact] → [not needed beta][no l10n impact][needs patch for code in comment#0]
Issue is still confirmed with the latest nightly builds (2009-02-22) of both Thunderbird 3 and Lightning.
Attached patch Proposed fixSplinter Review
Keywords: qawanted
Whiteboard: [not needed beta][no l10n impact][needs patch for code in comment#0] → [not needed beta][no l10n impact]
Comment on attachment 363567 [details] [diff] [review] Proposed fix Ludovic, please choose a reviewer next time. ;)
Attachment #363567 - Attachment is patch: true
Attachment #363567 - Flags: review?(philipp)
Status: NEW → ASSIGNED
Comment on attachment 363567 [details] [diff] [review] Proposed fix I've tested this patch and it works fine for me, r=philipp
Attachment #363567 - Flags: review?(philipp) → review+
Pushed to comm-central <http://hg.mozilla.org/comm-central/rev/b9893abd4e80> -> FIXED
Status: ASSIGNED → RESOLVED
Closed: 17 years ago
Resolution: --- → FIXED
Target Milestone: --- → 1.0
Target Milestone: 1.0 → 1.0b1
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: