Closed Bug 1520554 Opened 6 years ago Closed 5 years ago

Cannot accept invitation with Provider for Google Calendar

Categories

(Calendar :: Provider: GData, defect)

Lightning 6.2.2.1
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED WORKSFORME

People

(Reporter: lopezibanez, Unassigned)

Details

User Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:64.0) Gecko/20100101 Firefox/64.0

Steps to reproduce:

  1. I have several Google Calendars set up with googleapi://
  2. I received an event invitation, the Accept/Decline buttons appear as normal.
  3. I have also set calendar.google.enableEmailInvitations to true
  4. I have also specified the email address in the primary Google Calendar (I cannot set an email address for other Google calendars).

Actual results:

When clicking Accept, no Google Calendar is listed.

Expected results:

At least one Google Calendar should appear or some way to add the event to the calendar (even in some reduced form).

The page here: https://wiki.mozilla.org/Calendar:GDATA_Provider#I_received_an_invitation_from_a_friend._When_trying_to_accept.2C_my_Google_Calendars_are_not_in_the_select_calendar_dialog.2C_or_no_dialog_is_shown

says: "Support for accepting invitations is not ideal due to various limitations, but I hope everything works."

I followed the instructions there but it doesn't work.

Component: Untriaged → Provider: GData
Product: Thunderbird → Calendar
Version: 60 → Lightning 6.2.2.1

The strangest thing is that I can accept the event to a non-Google calendar, the copy and paste it to a Google Calendar, then delete the original event.

Antony, can you assist?

Flags: needinfo?(acdp)

I'm facing the same issue.

Setup:

  • Thunderbird 60.5.0 (32-bit)
  • Lightning 6.2.5
  • Provider for Google Calendar 4.4.2

I tried

  • English
  • Germany installation
  • English (US) regional settings as well as
  • German regional settings. Doesn't matter.

I have several Google calendars configured, but no local calendar.

Using at least one local calendar: I will be able to Accept invitations.

Using no local calendar: I'm not able to Accept invitations. I always get the message "No writable calendars are configured for invitations, please check the calendar properties."

However, please, be sure... I checked the calendar properties a full day long!
There is no way to couple a Google calendar with an Email-Address.
It doesn't matter what calendar.google.enableEmailInvitations is set to.

Addtional debugging info:
Debugging turned out that calItipUtils.jsm (@ line 202) did not find any writable calendars.

Wayne, apols just seen your request:

I do have similar issue on the mac (mojave beta and TB 66b3) when looking to load an event from email!

I usually have to save the cal file as an ics load via import.

I will set up a local, as I do not have that either, and see if that resolves it.

Seems that TB (calItipUtils.jsm (@ line 202)) command as noted above, needs a local account to write to - actually can see the rationale for that!

will let you know findings

Flags: needinfo?(acdp)

i added a current email address as a local cal and sent an invite from another remote account - was able to load cal invite

deleted the local cal and resent another invite to same email address - was NOT able to load as came up with the same error msg as reported.

So I then setup another local with same address as before and then sent an invite from one remote address to another remote (this time - NOT the local) and this worked as well

So seems that so long as there is at least ONE account that is LOCAL one can save Cal invotes not matter if the address is the Local or Remote!

Hope this helps
ciao

I guess you're right.
However, it is not possible to save an invitation to a REMOTE calender (e.g. Google). To a LOCAL calendar it's not an issue. Even if you setup a local calender it's not possible to save an invitation to a remote calender (that's my observation).

What I wish to have is: Get an invitation and save this to a remote calender (e.g. Google).

You need at least one writable calendar to accept invitations, irrespective of its type. Network calendars work fine here in genral.

The issue is reported for the Provider for Google addon, which has invitation support disbaled by default (calendar.google.enableEmailInvitations), but reportedly also doesn't work if the pref is enabled. The email address is automatically derived from the calendar by the addon. Also please note, that Google supports only to accept invitation for your primary calendar, iirc.

The provider must report to Lighting that the calendar is writable and support scheduling - if it doesn't, that is probably related to your account setup, so you may want to provide more details about the calendars you have set up (personal/shared/owned by you/group calendars/individual domains or google rep. gmail). Once you did, NI :Fallen to look into it.

So what is the solution here?
It's not working. Doesn't matter the setting of calendar.google.enableEmailInvitations. It doesn't matter what email address is setup for the "primary calendar".

And yes, it already worked in the past. With the latest update of Thunderbird + Lightning it stopped working.

Maybe I'm stupid.
But all I read here is: It's working. If not - your problem. Sorry for that.

Please provide information as requested in the last section of comment 8, then needinfo :Fallen. There are way to many options what you might have configured to make a guess why it's not working for you. I can only point you into that direction, I'm not a Google user myself.

An alternate approach is to connect to Google calendar using their CalDAV interface (note you would need to use a different URL, whjich I don't have at hand), but if you want to help to find the issue do the former.

I guess you're right at all. Of cause.

I found the solution:

  1. The "first" calendar that is created in a Google account is the one that can be used for invitations.
  2. The "first" calendar is the one Google creates for you when you create a Google account.
  3. calendar.google.enableEmailInvitations must be set to true (use about:config for that).

So, simply tell the people:

  • One of your Google calendars can be used for invitations. You just need to figure out which one this is.

Summary:

  • This issue is related to Google accounts with several calendars.
  • Figure out what calender is the "first" one assigned to your Google account.
  • Invitations are limited to the "first" calendar assigned to your Google account.

Thanks for finding the solution and I'm sorry we weren't able to provide you with better support in the meanwhile. Debugging these issues is difficult when we are not experiencing them on our own.

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

I do not agree to set the status to "RESOLVED", because it is not resolved so far.
I posted a WORKAROUND and how to use it without having a real fix.

And, please, don't tell it "is difficult when not experiencing": This is very easy to reproduce! You just need to setup a Google account with more than one calendar.

This is not fixed at all in Lightning 6.2.8. Please reopen. None of the "workarounds" mentioned here work for me.

(In reply to [:MakeMyDay] from comment #8)

You need at least one writable calendar to accept invitations, irrespective of its type. Network calendars work fine here in genral.

I have several local calendars and several Google Calendars.

The issue is reported for the Provider for Google addon, which has invitation support disbaled by default (calendar.google.enableEmailInvitations), but reportedly also doesn't work if the pref is enabled. The email address is automatically derived from the calendar by the addon. Also please note, that Google supports only to accept invitation for your primary calendar, iirc.

I have the option enabled. I followed the instructions: https://wiki.mozilla.org/Calendar:GDATA_Provider#I_received_an_invitation_from_a_friend._When_trying_to_accept.2C_my_Google_Calendars_are_not_in_the_select_calendar_dialog.2C_or_no_dialog_is_shown

The provider must report to Lighting that the calendar is writable and support scheduling - if it doesn't, that is probably related to your account setup, so you may want to provide more details about the calendars you have set up (personal/shared/owned by you/group calendars/individual domains or google rep. gmail). Once you did, NI :Fallen to look into it.

All my google calendars are writable (I can create events from Thunderbird) and support scheduling (I can create invitations).
Personal, not shared, owned by me, gmail address.

Moreover, this is still true and my "ugly" workaround:

(In reply to M Lopez-Ibanez from comment #1)

The strangest thing is that I can accept the event to a non-Google calendar, the copy and paste it to a Google Calendar, then delete the original event.

I found bug 1567255

I also have a separate webcal, but it is read-only, so it is never listed as an option. If I remove the address of that one, then the Google Calendar appears. This seems a weird conflict.

This sounds a lot like it is related to how Lightning displays and processes the attached emails. I'm pretty sure we have a few bugs open on that, one being that we want calendars to support more than one email.

A few different reporters have displayed their issues here, for some there are workarounds for others there are not. If you would like to open a bug on Lightning please check this issue tracker, if there is something specific we can do in the Provider please head over to https://github.com/kewisch/gdata-provider/issues

I also have a separate webcal, but it is read-only, so it is never listed as an option. If I remove the address of that one, then the Google Calendar appears. This seems a weird conflict.

And now it doesn't :(

I noticed that Lightning says:

Lightning:iTIP method: REQUEST calItipUtils.jsm:192
Lightning:iTIP on REQUEST: no existing items. calItipUtils.jsm:1879
Lightning:iTIP operations: 1 calItipUtils.jsm:1937
Lightning:iTIP options on: REQUEST calItipUtils.jsm:341

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