Closed Bug 1910850 Opened 2 years ago Closed 1 year ago

Accepting invite doesn't immediately update calendar, accept button immediately re-appears (calendar not synced after accept)

Categories

(Calendar :: General, defect, P3)

Thunderbird 128
x86_64
Linux
defect

Tracking

(Not tracked)

RESOLVED INVALID

People

(Reporter: KaiE, Assigned: leftmostcat)

References

(Blocks 1 open bug)

Details

(Keywords: regression, regressionwindow-wanted)

I've received a calendar invite, from a thunderbird.net address, at my thunderbird.net account.

I get "this message contains an invitation" and I get the accept/tentative/decline buttons.

I click accept. The first I did that, apparently nothing happened.

The second time I noticed that the button briefly disappeared then immediately re-appeared.

The third time I clicked it, I was prompted to select a calendar for storing. I selected the calendar for that email account.

Didn't help. Button appears again.

Nothing of interest in error console.

I restarted 128.0.1
That helped. Now, the buttons are gone in that invite email, and the calendar shows the event.

Should we retry with another invite?

Blocks: tb128found
Keywords: regression

I don't have a clear idea about why this issue exists, although I've also seen it happen (mostly with Google calendars).

(In reply to Kai Engert (:KaiE:) from comment #0)

I restarted 128.0.1
That helped. Now, the buttons are gone in that invite email, and the calendar shows the event.

I think it helped because restarting caused Thunderbird to refresh your online calendars, and as a result it's not considering the event new anymore and therefore it won't offer you to add the event to your calendar. In my experience, "manually" refreshing the calendar would lead to the same resolution.

I don't really have a clear idea of what's causing the issue at the moment (maybe a badly handled conflict when trying to write the event into the calendar?), just wanted to provide a bit more context around it.

I can't remember the wording but I do remember Thunderbird complaining when I tried to accept an invite. I had this issue with both my google and non-google account as the account that accept the invite while the account sending the invite was always from a google account. I can't say if a non-google invite would result in the same issue tho.

I happened to me again.

However, this time, I followed Brendan's suggestion and manually asked that my calendar gets synchronized.
That fixed the issue.

To fix this bug, I guess the code should ensure that any necessary synchronization is performed automatically after accepting an invite.

Summary: Cannot accept invite, Accept button immediately re-appears → Cannot accept invite, Accept button immediately re-appears (online version of calendar not synced after accept)

Is it just me, or do others also experience this bug?

Hi Kai,
Can you please send me some more invitations? I have not yet been able to reproduce this in 128.2.3 but think I have noticed in the past.

What I can reproduce every time is similar (but almost the opposite?) and seems to exist on 128.2.3 and Daily...

Send calendar invite from Thunderbird.net to personal Gmail account
Daily receives the invite and shows options to accept/tentative/decline
Close Daily
Open Daily
accept/tentative/decline show for about 1 second before they get hidden and a message is displayed "This message contains an update to an existing event"
If I click "Update", the message changes to "This message contains an event that has already been processed"
If I click "Details" and hover over my (recipient) email, it shows "<personal email> still needs to reply"

This is NOT reproducible in reverse when I send invite from personal to Thunderbird.net account.

Flags: needinfo?(kaie)

I will send you an invite from a personal gmail account.
Once you receive the invite, click "accept".
Thunderbird will ask you to import the event.
Select your work calendar (toby @ thunderbird)
Afterwards, the accept button should re-appear.

That's what I get when I send the invite from my personal account to my thunderbird account.

Flags: needinfo?(kaie)
Summary: Cannot accept invite, Accept button immediately re-appears (online version of calendar not synced after accept) → Accepting invite doesn't immediately update calendar, accept button immediately re-appears (calendar not synced after accept)
Severity: -- → S3
Priority: -- → P3
Assignee: nobody → leftmostcat

Further investigation is still needed, but my present theory is that this has to do with invitations for which a target calendar can't be automatically detected, requiring prompting the user. We determine how to process the item when the iMIP bar is set up, and if there is no target calendar, we short circuit. When the user then makes a selection, we have no processing to do, but we may eventually prompt for the calendar, at which point a target calendar is set. The next time the iMIP bar is set up, the target calendar will be set and the appropriate processing will be determined.

If this is the case, I'm not quite sure how the invitation ends up accepted, but I will continue investigating this.

(In reply to Sean Burke [:leftmostcat] from comment #7)

my present theory is that this has to do with invitations for which a target calendar can't be automatically detected, requiring prompting the user.

I'm not sure your theory is correct.

I am not prompted to make a choice (of calendar).

I am receiving invites sent to the email address of my google kaie@tb account.

I have an enabled calendar for that account with the same email address.

TB adds the event to the correct calendar.

In the google calendar web interface, I can see that event is added to my calendar after I press accept. (I have configured that events aren't automatically added to my calendar, but only after I accept them.)

So, despite the event being added to the calendar, the notification bar doesn't learn that it's no longer necessary to make a choice.

My theory is, the act of updating the calendar isn't correctly propagated to Thunderbird's internal knowledge, maybe a cache of calendar data?

As I mentioned, despite accpepting, the event isn't shown in the TB calendar.

As soon as I manually request a refresh of that calendar (right click, synchronize), the event is refreshed and I'm no longer prompted.
I just learned, apparently, this also happens automatically, if I wait sufficiently long for an auto synchronize to happen.

I have to take my report back.

I think you were right.

Looking at my configured calendar, its email setting is "none".
I cannot explain why.
I think I have never before even looked at this setting.

With the right configuration, I can no longer reproduce the bug.

I'm marking this bug as invalid, but I think there's something we must take away from this bug.

Clearly it wasn't obvious what configuration I must use to get proper behavior.

I think we need a troubleshooting howto document, that recommends to check settings.

At the very least, I should have received suggestions like:

  • check your configured calendars
  • check that you have a calendar that is connected to the right email account, and that the right email address is selected for that calendar
Status: NEW → RESOLVED
Closed: 1 year ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.