gdata-provider icon indicating copy to clipboard operation
gdata-provider copied to clipboard

Importing an event with an attendee using id instead of mailto causes "Missing attendee email" message.

Open MLopez-Ibanez opened this issue 4 years ago • 3 comments

Describe the problem and steps to reproduce it:

I imported an event from iCloud (ics format) into a Google Calendar

What happened?

The event doesn't show up in Google Calendar (but it does show up in Thunderbird). The console shows:

console.log: Lightning: [calGoogleCalendar] A request Error Occurred. Status Code: 400 Bad Request Body: {
 "error": {
  "errors": [
   {
    "domain": "global",
    "reason": "required",
    "message": "Missing attendee email."
   }
  ],
  "code": 400,
  "message": "Missing attendee email."
 }
}

console.error: Lightning: 
  [calGoogleCalendar] Adding Item XXXXXXXXXXXXX failed:2147746065: A request Error Occurred. Status Code: 400 Bad Request Body: {
 "error": {
  "errors": [
   {
    "domain": "global",
    "reason": "required",
    "message": "Missing attendee email."
   }
  ],
  "code": 400,
  "message": "Missing attendee email."
 }
}
console.warn: Lightning: [calCachedCalendar] Unable to perform playback action add to the server, will try again next time (87e1fdf2-4bf4-403d-9b1d-41a8d7afcb4f,A request Error Occurred. Status Code: 400 Bad Request Body: {
 "error": {
  "errors": [
   {
    "domain": "global",
    "reason": "required",
    "message": "Missing attendee email."
   }
  ],
  "code": 400,
  "message": "Missing attendee email."
 }
}
)

What did you expect to happen?

The event shows in Google Calendar

Anything else we should know?

ICS file attached (after anonymization) iCal-2020614.ics

Version 68.8.0 Lightning 68.8.0 Provider for Google Calendar 68.2.1

MLopez-Ibanez avatar Jun 25 '20 18:06 MLopez-Ibanez

Similar/same issue here: Importing .ics invites to Lightning makes them show up in Lightning, but not in Google calendar. In spite of associating the event with a specific google calendar after import.

Invite is from iCloud. Thunderbird: 68.7.0 (64-bit) OS: Pop!_OS 20.04 LTS

norsimon avatar Jul 12 '20 15:07 norsimon

Probably Google Calendar's API is more strict than Lightning's

MLopez-Ibanez avatar Jul 12 '20 17:07 MLopez-Ibanez

iCloud sometimes have attendees identified by a uid instead of an email. One possible fix would be to attempt to get the EMAIL parameter if the property value is not mailto:.

kewisch avatar Aug 04 '20 09:08 kewisch