-
Notifications
You must be signed in to change notification settings - Fork 30
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
403 forbidden dismissing event notification (Bugzilla Bug 1150571) #3
Comments
Comment 10111900Date: 2015-04-02 18:21:45 +0200 Created attachment 8587479 Thunderbird 31.6.0, GData Provider 1.0.4, Lightning 3.3.3 I'm seeing the same stuff that we saw in bug 1101175.
|
Comment 10114927Date: 2015-04-03 09:18:31 +0200 Is this the problem mentioned in bug 1137249 comment 1? |
Comment 10118059Date: 2015-04-04 01:56:28 +0200 Created attachment 8588232
|
Comment 10118061Date: 2015-04-04 01:57:45 +0200 Comment on attachment 8588232 I am seeing this, too. Posted about it on the google group. |
Comment 10118362Date: 2015-04-04 05:59:11 +0200 (In reply to Stefan Sitter from comment #1)
Unsure. I didn't start seeing this again until the last week or so. |
Comment 10128949Date: 2015-04-08 02:56:57 +0200 It looks like I can dismiss events that I created for my own calendar. The ones that I have trouble with are events that I have been invited to by someone else. |
Comment 10177461Date: 2015-04-20 23:31:22 +0200 (In reply to Aaron Klotz [:aklotz] (please use needinfo) from comment #5)
Actually, the events that I've been having a problem with are for recurring meetings whose events were imported during the Google Calendar migration. |
Comment 12804681Date: 2017-10-31 10:25:09 +0100 Created attachment 8923748 I seem to have a very similar problem, or possibly two similar problems. There are a lot of bugs about dismissing reminders, but I think my problem is either this one, or the one described in #1271867. I have just added a new google calendar to Thunderbird, and after connection it showed me reminders for a couple hundred events, all in the past. Dismiss All worked fine for most of them, but three reminders remain, and refuse to go away. If I try clicking Dismiss, I get a dialog about modification failed, asking me to either "discard and reload", or "submit anyway". Which ever selection I go for, I get the same reminder again, and the same options if I try to discard it again. Similar behavior for the other two reminders. I've enabled debug logging for the calendar (attached, with some privacy edits), and it looks like one of the events are returning a 404 when I try to dismiss, while the others return 403. I've tried removing the calendar and adding it again, but the same three event reminders show up again. The only way to get rid of the reminders dialog is to close it using the X in the corner, and then selecting "submit anyway". The next time a reminder triggers, I still have those three, in addition to the new one. The new one will dismiss fine.
|
Comment 12804690Date: 2017-10-31 10:28:48 +0100 Forgot to add version info: Mozilla Thunderbird 52.4.0 (64-bit) |
Comment 13528724Date: 2018-08-08 00:37:58 +0200 I also have three reminders that cannot be dismissed. Windows 10 Error in log:
|
Comment 13899953Date: 2019-02-02 22:43:24 +0100 Same issue with This is a really annoying bug. Is by any chance anyone who can take a look? It's a 4 years old issue... |
Comment 14060676Date: 2019-04-17 17:47:17 +0200 Same issue with |
Comment 14354693Date: 2019-09-11 13:00:55 +0200 *** Bug 1524268 has been marked as a duplicate of this bug. *** |
Comment 14354727Date: 2019-09-11 13:17:27 +0200 *** Bug 1524268 has been marked as a duplicate of this bug. *** |
Comment 14354730Date: 2019-09-11 13:18:36 +0200 Interesting info from bug #1454901: (eivindt from bug #1454901 comment #11)
|
Comment 14354733Date: 2019-09-11 13:19:51 +0200 *** Bug 1137249 has been marked as a duplicate of this bug. *** |
Comment 14354735Date: 2019-09-11 13:20:50 +0200 *** Bug 1263098 has been marked as a duplicate of this bug. *** |
Guess the only thing that is important for dismissing an event-notification is "x-moz-lastack" inside extended properties. The google documentation says about PATCH:
So there is no need to send everything. |
Oh and I guess they had problems about that already before the current problem: gdata-provider/src/components/calGoogleCalendar.js Lines 491 to 492 in d55f7b4
Well guess what ... thats not true. |
Yep, I need to rewrite this to check the differences between |
@kewisch thank you very very much for looking into this. This really not just annoying, but makes Google Calendar borderline unuable in Lightning when you have lots of recurring events (think "Scrum dailies" ... I have this problem absolutely solidly. Is there a hotfix or proposed change that I could test in my environment? |
I don't have any code written for this. Would you or someone on your team be interested in looking into a fix? |
This doesn't happen at all if I mark the calendar with the offending events read-only. Does that also break notifications? It also doesn't happen for instances of the notification that happen after import, as far as I can tell. It may be easier to avoid ever hitting the codepath than to deal with screwy PATCH semantics. |
The official documentation about PATCH does not mention that values that keep the same won't be overwritten ,guess that was just a wrong assumption. |
I found a simple (but racy) workaround: remove the calendar, then re-add it and mark it read-only immediately, before it finishes importing any of the offending events. Wait until it has finished importing all the events, sync again, close and restart Thunderbird to make absolutely sure it's done importing, and then mark it writable. The problem hasn't come back yet, though I don't understand it well enough to know if that can be relied upon. It took a while to get the calendar properties to load while the import was running, but fortunately the offenders are more than a thousand events deep in my calendar, so I had time. |
I updated to Thunderbird 68.2.1 and installed the equivalent plugin and have the same problem ie 403 forbidden when I do a dismiss. I updated from Thunderbird 68.0 and 4.4 plugin ie the default Ubuntu 18.04 versions which also had these problems. Removing calendar, doing read only mentioned by the last commenter does not work for me. |
Tried doing exactly that twice, but it doesn't fix anything for me either. What works for me now is unchecking Show missed reminders for writable calendars in Preferences -> Calendar -> Reminders. |
Also have the same issue. |
Yeah, I'm not sure what's going on here. This has been an annoying bug for years now (5-years actually). And since I've been moving to Thunderbird more and more, especially now that we are quarantined, it's getting really frustrating. If I can make a suggestion: add the event to a "black-list" that will never ever crop up again in Thunderbird. Essentially exclude it from the calendar completely. I will now try to do what @robertjk suggested and report back if this works. It's the third time that I remove the calendar. |
@Joaobranquinho When the work in #224 completes, I can make a release. |
Until #224 is merged, the simple workaround is to delete the event. For me, that's a more acceptable workaround than setting to not remind about missed events... (I've edited this post as originally I reported I'm still getting 403 when trying PATCH via API, but that was wrong config on my side) |
So would there be any chance of backporting the fix to patch the current release? It's such an usability showstopper... |
is there a way I can take beta or unreleased version? |
I see yet another mention of this bug in #542, and while I'm sure the eventual release from the main branch will fix this, here's my simple patch that fixes this for me (any maybe me only) on the legacy branch: diff --git a/src/legacy/modules/gdataCalendar.jsm b/src/legacy/modules/gdataCalendar.jsm
index c0b201d..af7a895 100644
--- a/src/legacy/modules/gdataCalendar.jsm
+++ b/src/legacy/modules/gdataCalendar.jsm
@@ -493,7 +493,8 @@ class calGoogleCalendar extends cal.provider.BaseClass {
// Updating invitations often causes a forbidden error because
// some parts are not writable. Using PATCH ignores anything
// that isn't allowed.
- if (cal.itip.isInvitation(aNewItem)) {
+ if (cal.itip.isInvitation(aNewItem) || aNewItem.organizer.id != "mailto:" + this.mCalendarName) {
+ console.log(`Changing request type to PATCH, since organizer ${aNewItem.organizer.id} != mailto:${this.mCalendarName}`)
request.type = request.PATCH;
}
I.e. if the organizer of the event is not the current user, change request type to PATCH. I've been running with this patch for a couple of weeks without issues. |
@eivindt Can you create a PR for it? Would be greatly appreciated :) |
I'll try to do that tomorrow unless someone explains why my change is a stupid idea. ;) |
@eivindt This still doesn't work for me. I see the
|
Yes, unfortunately, still not perfect. I have no idea why yours is failing @peci1 your error message seems to indicate no access to the calendar at all, which isn't the type of error my small patch was trying to fix. |
I'm not sure if it's relevant here, but I have an open support case with Google regarding the calendar API. This is an excerpt: this error was probably in misunderstanding of the API docs. I had account A and an event in it. Then I shared A's calendar to B as readonly and wanted to call PATCH changing extendedProperties/private in the B account. The docs on extended properties say:
Maybe it would help to improve wording of this part of docs on https://developers.google.com/calendar/api/guides/extended-properties to also mention that the "local copy" of the event is not made for accounts that share access to the calendar but are not invited. |
The @eivindt patch from #3 (comment) fixed a couple of undismissable events that kept popping back up every few minutes and was annoying me for days. Did a PR ever get made? |
Sorry for the late response. I never did make a PR for this. The main reason is that I still have situations where I cannot dismiss event notifications, and digging into these, trying to find the correct resolution has been difficult. I'll see if I can create a PR for this situation, and create separate issues for the other situations that I see. |
here is my experience in case it helps: I was experiencing the same issue (was redirected here from one of the closed issues above) where every time my main google calendar (the one with my email address as its name) would refresh/resync id get an alert with reminders that were entirely from events i had been invited to/attended. dismissing them did nothing and i was able to find this issue by searching for the error messages that appeared in the Tools >Developer tools > error console menu when i clicked to dismiss the individual events. My workaround After removing reminders from the affected events (and also unsubscribing/re-adding that calendar in thunderbird), i dont get the annoying reminder popups anymore (i think). I also suspect (although I dont know this codebase and admittedly havent checked myself) that some of the errors from this extension might be because the extension is assuming that none of the fields are editable in a shared event, when it seems like the reminders one at a minimum is designed to be (and maybe things like color too?) hope this helps, if only to provide an extra workaround Edit: whoops i realize this may not be new info and may just be a rehash of existing info in this thread - sorry!!! |
This doesn't seem necessary. Restarting TB usually helps me. |
Bugzilla Bug 1150571
Date: 2015-04-02T18:21:45+02:00
From: @dblohm7
Assigned To: nobody
Depends on: bug 1101175
Blocker for: bug 1314185
Last updated: 2019-09-11T13:39:25+02:00
The text was updated successfully, but these errors were encountered: