Closed Bug 1454901 Opened 6 years ago Closed 5 years ago

Cannot dismiss reminders with gdata provider add-on

Categories

(Calendar :: Provider: GData, defect)

Lightning 5.4
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 1150571

People

(Reporter: eivindt, Unassigned)

Details

User Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:59.0) Gecko/20100101 Firefox/59.0
Build ID: 20180319141609

Steps to reproduce:

User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 Lightning/5.4

This only happens for _some_ google reminders, not all, I'm not sure exactly what causes the problem.

1. Get reminder for recurring event (I think I've only seen this for recurring events)
2. Event has already passed
3. Dismiss event (either the single one, or all)
4. I get an extra pop up saying that this event has changed on the server, reload or submit my changes anyway
5. No matter what choice I make, the reminder pop-up is emptied, and then immediately populated by the stuck reminders again

If I close the reminders dialog, step 4 happens, then the dialog disappears for a second or two, before reappearing.


Actual results:

I've enabled the developer toolbox, monitoring network traffic.  When I try to dismiss the reminder, a PATCH request is made to the googlapis (probably for the event), but gets a 404.  

Then step 4 happens.   

When I choose to reload, a GET request to googleapis is made for events.  This returns an empty items array.

It seems as if the stuck reminders are "remembered" by the provider, and cannot be removed since the PATCH command fails, and it fails to remove the reminders even though refreshing the events from google shows no events.
Thunderbird: 60.0 (64-bit)
Debian Stable
Google provider
google for work account

I'm unable to dismiss the old calendar reminders. I removed addon, unsubscribed, nothing works. The references below show that this problem has been in existence since at least 2009. 


__Reference__

There is a bunch of tickets for cross reference so I think this is a big issue. Please use this ticket as reference

1. Fixed in Thunderbird 59 supposedly closed as duplicate of below ticket which is marked fixed even do its still broken: https://bugzilla.mozilla.org/show_bug.cgi?id=769118 (Can't dismiss missed reminders for recurring events (CalDAV))

2. Fixed in thunderbird 56?, but users confirmed it still be broken in 57. Was told to create a new ticket. https://bugzilla.mozilla.org/show_bug.cgi?id=1344068 (alarmLastAck is not taken from parent item in alarm service) 

3. List of 6 bugs related: https://bugzilla.mozilla.org/buglist.cgi?quicksearch=dismiss+reminders

4. This ticket can be closed, its 4 years old: https://bugzilla.mozilla.org/show_bug.cgi?id=1114387

5. Same as this bug: https://bugzilla.mozilla.org/show_bug.cgi?id=1427057

7. Incorrect solution; Doesn't work https://support.mozilla.org/en-US/questions/1103321

8. Incorrect solution; Doesn't work. unsubscribe, remove provder, restart, reinstall, subscribe still the same issue: https://support.mozilla.org/en-US/questions/1130213

9. Same problem as this ticket, solution unacceptable (turn off reminders?): https://support.mozilla.org/en-US/questions/1168962 

10. 6 year old ticket: https://bugzilla.mozilla.org/show_bug.cgi?id=769118, can be closed as duplicate of this.

11. 4 year old ticket duplicate of this one: https://bugzilla.mozilla.org/show_bug.cgi?id=948507

12. From 2016 Another solution that didn't work. deleting cache sqlite doesn't solve it.: https://support.mozilla.org/en-US/questions/1146457

13. Google forum with no solution: https://productforums.google.com/forum/#!topic/calendar/xBH5nScG_F4

14. Article from 2009, doesn't work. http://www.consumingexperience.com/2009/01/thunderbird-reminders-keep-popping-up.html

15. yet another google conversation : https://groups.google.com/forum/#!topic/mozilla.support.calendar/l0UaJJAT_2s

16. redhat bug, solution tried and still doesn't work. https://bugzilla.redhat.com/show_bug.cgi?id=1441896
Hello,
How to clear/dismiss calendar events from google that error in Thunderbird: 
I might have found a temporary solution and a problem:

1. 
http://calendar.google.com/calendar/r/
2. Go through the reminders you can't clear and delete just that event.

Problem Identified and steps to reproduce?:
- What appears to be an issue here is that "even in gmail was marked as "not coming". 
- Thunderbird displays a reminder for that event.
- In Thunderbird you cannot clear it because of the error: Can't dismiss because even was modified on the servers. You can reload, or submit anyway. Both don't work. Even stays there forever. None of the above-mentioned solutions worked.
- The only solution is to go to http://calendar.google.com/calendar/r/ and delete the event.

I'll have to check later, to see if I can cause it to break every time when I say on the "calendar website or in Thunderbird" that I'm not coming to the event.

Thanks
Lucas

This seems to have been fixed as of Thunderbird 60, I can no longer reproduce it. It still happens if using caldav as provider, but I assume that belongs in a different issue.

Eivind

WFM per reporter

Status: UNCONFIRMED → RESOLVED
Closed: 5 years ago
Resolution: --- → WORKSFORME

I am still experiencing this bug even with Thunderbird 60.

User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.5.1
OS: Linux 4.15.0-45-generic

Provider for Google Calendar 4.4.2

I am also still experiencing this bug, particularly not being able to dismiss notifications after the event has started. It is quite a frustrating bug. I do not have write access to some of the calendars I am subscribed to, which makes it much worse to deal with.

User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.5.1
OS: Linux 4.18.0-16-generic

Provider for Google Calendar 4.4.2

Here's some additional info:

console.error: Lightning:
  [calGoogleCalendar] Modifying item Foo:2147500037: {
 "error": {
  "errors": [
   {
    "domain": "global",
    "reason": "forbidden",
    "message": "Forbidden"
   }
  ],
  "code": 403,
  "message": "Forbidden"
 }
}

This happens when trying to send a PATCH to the Google Calendar API.

This is happening to me. Unlike others here it's not all reminders, it's just a single event - other events work fine. My logs show:

[calGoogleCalendar] Missing ETag for 30vop0465ldt4hsnarceg89ue2_R20190701T200000%40google.com##9f8fdecc-6d65-4c74-9da1-95d18580c5a5

I dunno if it's related or not, but I also see this:

uncaught exception: 2147746065

from autosync.js:206:13.

TB 60.8.0

Status: RESOLVED → REOPENED
Ever confirmed: true
Resolution: WORKSFORME → ---

Happening to me too. It is hindering the use of reminders.

The solution path described in the Google Group for this plug-in worked for me. Solution is dated 9/4/17. I am running
Arch Linux: uname -a
Linux Light1DAW 5.2.10-arch1-1-custom #1 SMP PREEMPT Wed Aug 28 16:49:13 CDT 2019 x86_64 GNU/Linux
TB 60.7.2, Lightning 6.2.5, Provider 4.4.2
See: "Cannot remove entry - "This item has recently been changed on the server" " article in the Google Group.
Paraphrasing previous poster's words below:
Close Thunderbird. Look for your profile, then calendar-data subdirectory.
On Linux, that is ~/.thunderbird/<unique-tbird-name for your profile>/calendar-data/; I renamed mine to old-calendar-data.
Open Thunderbird and Right-click on all offending calendars e.g. ...@gmail.com and select Unsubscribe for each.
Open Thunderbird in safe mode, add Provider 4.4.2 fresh from xpi file.
Close Thunderbird in safe mode.
Open Thunderbird and Calendar.
Click on the empty space below the calendar section and select New Calendar
Select "From Network" and then Google in the choices. You may write the email address where you want to use the calendar from.
It should grab all the Google Calendars at once, mine did.

I am also now seeing this again, but it's not the same behaviour as in my original report. Let me know if you want me to open a separate bug, or keep it in this one.

The behaviour I'm seeing now seems to be only for recurring events that I have been invited to (i.e. they are not my events).

As other people have noted, there's now a 403 Forbidden response, not the 404 in the original report, and there are no response at all in the user interface (no dialogs of any kind).

I don't know why the provider sends a full calendar json to the googleapis in order to dismiss a notification, but I was able to figure out what field that's causing this problem.

If I manually send the same request to the same url with the same authorization header, I also get a 403 Forbidden. But if I remove the 'recurrence' field:

"recurrence" : [
      "RRULE:FREQ=WEEKLY;BYDAY=FR"
],

and then resend, I get a 200 OK response.

Also interesting to notice is that in the 200 OK response, the recurrence field looks like this:

"recurrence": [
        "RRULE:FREQ=WEEKLY;WKST=MO;BYDAY=FR"
    ],

I.e. the WKST=MO; has been added.

After manually posting this, the reminder is dismissed correctly from Thunderbird as well.

I also have an event that behaves more like the original error:

  • Recurring event that was not created by me
  • Dismissing event causes a PATCH request that returns 404, and a dialog shows up asking if I want to Discard and reload or submit anyway.
  • Discarding shows a GET of both events and tasks. The events response shows items: [] but the event does not go away.
  • Submitting anyway just leads to another 404.

I did upgrade my linux distribution shortly before this happened, but as far as I can tell, I still have the same versions.

User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 Lightning/6.2.8

Status: REOPENED → RESOLVED
Closed: 5 years ago5 years ago
Resolution: --- → DUPLICATE

I am seeing this issue over and over, in mysterious ways...

As of Thunderbird 78, using Provider didn't work for me, so I am integrating a Google Calendar using instructions found "somewhere" (can't remember now) : Option to add calender using caldav, then location: "https://apidata.googleusercontent.com/caldav/v2/..."

This "works", but with recurring events scheduled by someone else on my calendar, every time Thunderbird updates all old reminders pop up, and I can't dismiss them. The funny thing is that this seems to get fixed after some time... a few days. For example, I was just able to dismiss about 10 old reminedrs for old recurring that popped up after my last update.

Thunderbird just updated to 78.9.1 as I was typing this and this hasn't happened. The right reminders popped up. Hope this issue has been resolved.

(In reply to GG from comment #14)

I am seeing this issue over and over, in mysterious ways...

As of Thunderbird 78, using Provider didn't work for me, so I am integrating a Google Calendar using instructions found "somewhere" (can't remember now) : Option to add calender using caldav, then location: "https://apidata.googleusercontent.com/caldav/v2/..."

This "works", but with recurring events scheduled by someone else on my calendar, every time Thunderbird updates all old reminders pop up, and I can't dismiss them. The funny thing is that this seems to get fixed after some time... a few days. For example, I was just able to dismiss about 10 old reminedrs for old recurring that popped up after my last update.

Thunderbird just updated to 78.9.1 as I was typing this and this hasn't happened. The right reminders popped up. Hope this issue has been resolved.

Same thing is happened to me.

I'm experiencing this on 78.12.0.

Also experiencing this with Ubuntu Focal package: 78.11.0+build1-0ubuntu0.20.04.2. Calendar is completely unusable IMO, since reminders do not work. Why is this closed?

(In reply to matt from comment #17)

Also experiencing this with Ubuntu Focal package: 78.11.0+build1-0ubuntu0.20.04.2. Calendar is completely unusable IMO, since reminders do not work. Why is this closed?

Because if you follow the trail to the duplicate bug, the original reporter(s) issue is not a Thunderbird bug. It's with an add-on. And if you are not using an add-on, then this bug report doesn't cover your issue.
"See Also: → https://github.com/kewisch/gdata-provider/issues/3 "

Summary: Cannot dismiss reminders → Cannot dismiss reminders with gdata provider add-on

Because if you follow the trail to the duplicate bug, it's not a Thunderbird bug. It's with an add-on. And if you are not using an add-on, then this bug report doesn't cover your issue.
"See Also: → https://github.com/kewisch/gdata-provider/issues/3 "

Thanks for the quick response. You correct, I'm not using an addon, just caldav.

(In reply to matt from comment #20)

That was very helpful. Thank you! https://github.com/kewisch/gdata-provider/issues/3#issuecomment-563405579 solved it for me.

Confirming the bug on 91.4.1 and the fix provided from the github comment

You need to log in before you can comment on or make changes to this bug.