System does not send invitation to calendar event

REPRODUCIBILITY: Always
OS VERSION: 4.5.0.16
HARDWARE: Xperia 10 - II
UI LANGUAGE: Polish
REGRESSION:

DESCRIPTION:

I have few calendars added by webdav from owncloud. When inviting to event on these calendars, by selecting valid email address from phonebook through invite people function, no invitation email is received on recipient mailbox.
if I do the same operation on same calendar by using linux with kontakt software, invitation is being send.

PRECONDITIONS:

owncloud shared calendar present via webdav

STEPS TO REPRODUCE:

  1. open calendar
  2. create event in clendar from webdav
  3. select invite people
  4. select email from phone book
  5. save event

EXPECTED RESULT:

received invitation on recipient mailbox

ACTUAL RESULT:

No error notification, no message received on recipient mailbox

MODIFICATIONS:

Openrepos

ADDITIONAL INFORMATION:

Can share logs if anybody instruct me how to do it

I tested on my X10 III on 4.5 with a Nextcloud account and it works as expected. May it be possible that Owncloud is faulty?

I guess you mean CalDAV and not webdav (webdav is read-only, so no way to add invitation I would say).

What is the associated email address to your owncloud instance ? Do you have a configured email account for this address on the phone ? If so, it’s a bug that must be investigated.

1 Like

I confirm. It doesn’t send the invitation message when I add an event in the calendar (caldav account). However it does send the cancellation message when the event is deleted.

May you run it with debug messages ?

- devel-su -p
- QT_LOGGING_RULES="*.mkcal.debug=true" jolla-calendar

Add a new event with attendees and may you paste the content of the log (if it does not contains any personnal data) ?

[D] unknown:0 - Using Wayland-EGL
library "libutils.so" not found
library "libcutils.so" not found
library "libhardware.so" not found
library "android.hardware.graphics.mapper@2.0.so" not found
library "android.hardware.graphics.mapper@2.1.so" not found
library "android.hardware.graphics.mapper@3.0.so" not found
library "android.hardware.graphics.mapper@4.0.so" not found
library "libc++.so" not found
library "libhidlbase.so" not found
library "libgralloctypes.so" not found
library "android.hardware.graphics.common@1.2.so" not found
library "libion.so" not found
library "libz.so" not found
library "libhidlmemory.so" not found
library "android.hidl.memory@1.0.so" not found
library "vendor.qti.qspmhal@1.0.so" not found
[W] unknown:34 - file:///usr/share/jolla-calendar/calendar.qml:34:5: QML DbusInvoker: Failed to register service com.jolla.calendar.ui
[D] unknown:0 - database "/home/defaultuser/.local/share/system/privileged/Calendar/mkcal/db" opened
[D] unknown:0 - loaded timezones from database
[D] unknown:0 - loaded notebook "971462d9-597b-4059-9331-9e1c61d31a5e" "Agenda personnel" from database
[D] unknown:0 - loaded notebook "b1376da7-5555-1111-2222-227549c4e570" "Anniversaires" from database
[D] unknown:0 - loaded notebook "3069a3c3-94e8-4b32-9bdb-983b06d534a5" "DGAC" from database
[D] unknown:0 - loaded notebook "ec187ea8-9d85-48cd-92d9-a05974f01ba5" "Default" from database
[D] unknown:0 - loaded notebook "b4d63bce-2365-472c-9a18-70aac33fe291" "Jours fériés" from database
[D] unknown:0 - loaded notebook "97f93d81-bb91-4c62-9b03-83593ab56534" "Vacances scolaires" from database
[D] unknown:0 - LOADING !!!! Plugin directory "/usr/lib64/mkcalplugins"
[D] unknown:0 - Loading service handler plugin "libcaldavinvitationplugin.so"
[D] unknown:0 - Loaded service: "caldav"
[D] unknown:0 - Loaded plugin: "caldav"
[D] unknown:0 - Loading service handler plugin "libdefaultinvitationplugin.so"
[D] unknown:0 - Loaded service: "DefaultInvitationPlugin"
[D] unknown:0 - Loaded plugin: "DefaultInvitationPlugin"
[D] unknown:0 - Using service: "DefaultInvitationPlugin"
[D] unknown:0 - Messaging :  opening database
[D] unknown:0 - Default plugin: account "4" do not have a valid email address
[W] unknown:0 - Default account was not found!
[D] unknown:0 - Using service: "caldav"
[D] unknown:0 - Using service: "caldav"
[D] unknown:0 - notebook "3069a3c3-94e8-4b32-9bdb-983b06d534a5" isRunTimeOnly or isReadOnly
[D] unknown:0 - notebook "b1376da7-5555-1111-2222-227549c4e570" isRunTimeOnly or isReadOnly
[D] unknown:0 - Using service: "DefaultInvitationPlugin"
[D] unknown:0 - calendarModified called: true
[D] unknown:0 - get load dates QDate("2023-02-27") QDate("2023-04-10") QDateTime(2023-02-27 00:00:00.000 CET Qt::TimeSpec(TimeZone) Europe/Paris) QDateTime(2023-04-10 00:00:00.000 CEST Qt::TimeSpec(TimeZone) Europe/Paris)
[D] unknown:0 - set load dates QDate("2023-02-27") QDate("2023-04-10")
[D] unknown:0 - get load dates QDate("2023-01-30") QDate("2023-02-27") QDateTime(2023-01-30 00:00:00.000 CET Qt::TimeSpec(TimeZone) Europe/Paris) QDateTime(2023-02-27 00:00:00.000 CET Qt::TimeSpec(TimeZone) Europe/Paris)
[D] unknown:0 - set load dates QDate("2023-01-30") QDate("2023-02-27")
[D] unknown:0 - get load dates QDate("2023-04-10") QDate("2023-05-08") QDateTime(2023-04-10 00:00:00.000 CEST Qt::TimeSpec(TimeZone) Europe/Paris) QDateTime(2023-05-08 00:00:00.000 CEST Qt::TimeSpec(TimeZone) Europe/Paris)
[D] unknown:0 - set load dates QDate("2023-04-10") QDate("2023-05-08")
[D] unknown:0 - loaded timezones from database
[D] unknown:0 - calendarModified called: false
[D] unknown:0 - loaded notebook "971462d9-597b-4059-9331-9e1c61d31a5e" "Agenda personnel" from database
[D] unknown:0 - loaded notebook "b1376da7-5555-1111-2222-227549c4e570" "Anniversaires" from database
[D] unknown:0 - loaded notebook "3069a3c3-94e8-4b32-9bdb-983b06d534a5" "DGAC" from database
[D] unknown:0 - loaded notebook "ec187ea8-9d85-48cd-92d9-a05974f01ba5" "Default" from database
[D] unknown:0 - loaded notebook "b4d63bce-2365-472c-9a18-70aac33fe291" "Jours fériés" from database
[D] unknown:0 - loaded notebook "97f93d81-bb91-4c62-9b03-83593ab56534" "Vacances scolaires" from database
[D] unknown:0 - Using service: "caldav"
[D] unknown:0 - Using service: "caldav"
[D] unknown:0 - Using service: "caldav"
[D] unknown:0 - notebook "3069a3c3-94e8-4b32-9bdb-983b06d534a5" isRunTimeOnly or isReadOnly
[D] unknown:0 - notebook "b1376da7-5555-1111-2222-227549c4e570" isRunTimeOnly or isReadOnly
[D] unknown:0 - Using service: "DefaultInvitationPlugin"
[D] unknown:0 - "/home/defaultuser/.local/share/system/privileged/Calendar/mkcal/db.changed" has been modified
[D] unknown:0 - calendarModified called: true
[D] unknown:0 - get load dates QDate("2023-01-30") QDate("2023-05-08") QDateTime(2023-01-30 00:00:00.000 CET Qt::TimeSpec(TimeZone) Europe/Paris) QDateTime(2023-05-08 00:00:00.000 CEST Qt::TimeSpec(TimeZone) Europe/Paris)
[D] unknown:0 - set load dates QDate("2023-01-30") QDate("2023-05-08")
[D] unknown:0 - Starting favorites query at 85 ms
[D] unknown:0 - Starting metadata query at 100 ms
[D] unknown:0 - Favorites queried in 101 ms
[D] unknown:0 - All queried in 132 ms
[D] unknown:0 - appending incidence "0CE96C81-81D1-4E77-BDD6-0E1E91D3DEFB" for database insert
[D] unknown:0 - updated timezones in database
[D] unknown:0 - inserting incidence "0CE96C81-81D1-4E77-BDD6-0E1E91D3DEFB" notebook "971462d9-597b-4059-9331-9e1c61d31a5e"
[D] unknown:0 - Using plugin: "caldav"
[D] unknown:0 - No alarms to send
[D] unknown:0 - database "/home/defaultuser/.local/share/system/privileged/Calendar/mkcal/db" opened
[D] unknown:0 - loaded timezones from database
[D] unknown:0 - loaded notebook "971462d9-597b-4059-9331-9e1c61d31a5e" "Agenda personnel" from database
[D] unknown:0 - loaded notebook "b1376da7-5555-1111-2222-227549c4e570" "Anniversaires" from database
[D] unknown:0 - loaded notebook "3069a3c3-94e8-4b32-9bdb-983b06d534a5" "DGAC" from database
[D] unknown:0 - loaded notebook "ec187ea8-9d85-48cd-92d9-a05974f01ba5" "Default" from database
[D] unknown:0 - loaded notebook "b4d63bce-2365-472c-9a18-70aac33fe291" "Jours fériés" from database
[D] unknown:0 - loaded notebook "97f93d81-bb91-4c62-9b03-83593ab56534" "Vacances scolaires" from database
[D] unknown:0 - loaded timezones from database
[D] unknown:0 - calendarModified called: false
[D] unknown:0 - loaded notebook "971462d9-597b-4059-9331-9e1c61d31a5e" "Agenda personnel" from database
[D] unknown:0 - loaded notebook "b1376da7-5555-1111-2222-227549c4e570" "Anniversaires" from database
[D] unknown:0 - loaded notebook "3069a3c3-94e8-4b32-9bdb-983b06d534a5" "DGAC" from database
[D] unknown:0 - loaded notebook "ec187ea8-9d85-48cd-92d9-a05974f01ba5" "Default" from database
[D] unknown:0 - loaded notebook "b4d63bce-2365-472c-9a18-70aac33fe291" "Jours fériés" from database
[D] unknown:0 - loaded notebook "97f93d81-bb91-4c62-9b03-83593ab56534" "Vacances scolaires" from database
[D] unknown:0 - Using service: "caldav"
[D] unknown:0 - Using service: "caldav"
[D] unknown:0 - Using service: "caldav"
[D] unknown:0 - notebook "3069a3c3-94e8-4b32-9bdb-983b06d534a5" isRunTimeOnly or isReadOnly
[D] unknown:0 - notebook "b1376da7-5555-1111-2222-227549c4e570" isRunTimeOnly or isReadOnly
[D] unknown:0 - Using service: "DefaultInvitationPlugin"
[D] unknown:0 - "/home/defaultuser/.local/share/system/privileged/Calendar/mkcal/db.changed" has been modified
[D] unknown:0 - calendarModified called: true
[D] unknown:0 - get load dates QDate("2023-01-30") QDate("2023-05-08") QDateTime(2023-01-30 00:00:00.000 CET Qt::TimeSpec(TimeZone) Europe/Paris) QDateTime(2023-05-08 00:00:00.000 CEST Qt::TimeSpec(TimeZone) Europe/Paris)
[D] unknown:0 - set load dates QDate("2023-01-30") QDate("2023-05-08")

and when I delete the event:

[D] unknown:0 - appending incidence "NBUID:971462d9-597b-4059-9331-9e1c61d31a5e:0CE96C81-81D1-4E77-BDD6-0E1E91D3DEFB" for database delete
[D] unknown:0 - updated timezones in database
[D] unknown:0 - deleting incidence "NBUID:971462d9-597b-4059-9331-9e1c61d31a5e:0CE96C81-81D1-4E77-BDD6-0E1E91D3DEFB" notebook "971462d9-597b-4059-9331-9e1c61d31a5e"
[D] unknown:0 - database "/home/defaultuser/.local/share/system/privileged/Calendar/mkcal/db" opened
[D] unknown:0 - loaded timezones from database
[D] unknown:0 - loaded notebook "971462d9-597b-4059-9331-9e1c61d31a5e" "Agenda personnel" from database
[D] unknown:0 - loaded notebook "b1376da7-5555-1111-2222-227549c4e570" "Anniversaires" from database
[D] unknown:0 - loaded notebook "3069a3c3-94e8-4b32-9bdb-983b06d534a5" "DGAC" from database
[D] unknown:0 - loaded notebook "ec187ea8-9d85-48cd-92d9-a05974f01ba5" "Default" from database
[D] unknown:0 - loaded notebook "b4d63bce-2365-472c-9a18-70aac33fe291" "Jours fériés" from database
[D] unknown:0 - loaded notebook "97f93d81-bb91-4c62-9b03-83593ab56534" "Vacances scolaires" from database
[D] unknown:0 - loaded timezones from database
[D] unknown:0 - calendarModified called: false
[D] unknown:0 - loaded notebook "971462d9-597b-4059-9331-9e1c61d31a5e" "Agenda personnel" from database
[D] unknown:0 - loaded notebook "b1376da7-5555-1111-2222-227549c4e570" "Anniversaires" from database
[D] unknown:0 - loaded notebook "3069a3c3-94e8-4b32-9bdb-983b06d534a5" "DGAC" from database
[D] unknown:0 - loaded notebook "ec187ea8-9d85-48cd-92d9-a05974f01ba5" "Default" from database
[D] unknown:0 - loaded notebook "b4d63bce-2365-472c-9a18-70aac33fe291" "Jours fériés" from database
[D] unknown:0 - loaded notebook "97f93d81-bb91-4c62-9b03-83593ab56534" "Vacances scolaires" from database
[D] unknown:0 - Using service: "caldav"
[D] unknown:0 - Using service: "ca```ldav"
[D] unknown:0 - Using service: "caldav"
[D] unknown:0 - notebook "3069a3c3-94e8-4b32-9bdb-983b06d534a5" isRunTimeOnly or isReadOnly
[D] unknown:0 - notebook "b1376da7-5555-1111-2222-227549c4e570" isRunTimeOnly or isReadOnly
[D] unknown:0 - Using service: "DefaultInvitationPlugin"
[D] unknown:0 - "/home/defaultuser/.local/share/system/privileged/Calendar/mkcal/db.changed" has been modified
[D] unknown:0 - loaded timezones from database
[D] unknown:0 - loaded notebook "971462d9-597b-4059-9331-9e1c61d31a5e" "Agenda personnel" from database
[D] unknown:0 - loaded notebook "b1376da7-5555-1111-2222-227549c4e570" "Anniversaires" from database
[D] unknown:0 - loaded notebook "3069a3c3-94e8-4b32-9bdb-983b06d534a5" "DGAC" from database
[D] unknown:0 - loaded notebook "ec187ea8-9d85-48cd-92d9-a05974f01ba5" "Default" from database
[D] unknown:0 - loaded notebook "b4d63bce-2365-472c-9a18-70aac33fe291" "Jours fériés" from database
[D] unknown:0 - loaded notebook "97f93d81-bb91-4c62-9b03-83593ab56534" "Vacances scolaires" from database
[D] unknown:0 - Using service: "caldav"
[D] unknown:0 - Using service: "caldav"
[D] unknown:0 - Using service: "caldav"
[D] unknown:0 - notebook "3069a3c3-94e8-4b32-9bdb-983b06d534a5" isRunTimeOnly or isReadOnly
[D] unknown:0 - notebook "b1376da7-5555-1111-2222-227549c4e570" isRunTimeOnly or isReadOnly
[D] unknown:0 - Using service: "DefaultInvitationPlugin"
[D] unknown:0 - "/home/defaultuser/.local/share/system/privileged/Calendar/mkcal/db.changed" has been modified
[D] unknown:0 - calendarModified called: true
[D] unknown:0 - get load dates QDate("2023-01-30") QDate("2023-05-08") QDateTime(2023-01-30 00:00:00.000 CET Qt::TimeSpec(TimeZone) Europe/Paris) QDateTime(2023-05-08 00:00:00.000 CEST Qt::TimeSpec(TimeZone) Europe/Paris)
[D] unknown:0 - set load dates QDate("2023-01-30") QDate("2023-05-08")

Thank you for the log. I’ve no immediate idea what was misbehaving, but I’m investigating… I’ll report here when I find something.

I can confirm this behaviour as well on a cloud hosted nextcloud instance. The invitation is never sent.

This actually raises more questions from my side:

  • @phklrz do you confirm that with the log you sent, a cancel email is sent to the attendees ? As far as I know, there is only one code path to send invitation updates from device, and this code path has a debug message starting with Using plugin:. You can see it just after a new invitation has been added to the calendar inserting incidence "0CE96C81-81D1-4E77-BDD6-0E1E91D3DEFB" notebook "971462d9-597b-4059-9331-9e1c61d31a5e" followed by Using plugin: "caldav". But there is no such debug message after the deletion on line deleting incidence "NBUID:971462d9-597b-4059-9331-9e1c61d31a5e:0CE96C81-81D1-4E77-BDD6-0E1E91D3DEFB" notebook "971462d9-597b-4059-9331-9e1c61d31a5e". So I can’t imagine how the device is sending a cancelled invitation.
  • is this behaviour a regression ?

Because, the CalDAV plugin responsible to do something when the Using plugin: "caldav" is encountered has an empty implementation to send emails. So CalDAV account should not send any invitation or updates from device.

Is it a regression ? As mentioned in the previous answer, the CalDAV implementation for invitations is empty. So it should not do anything “by design” since the start.

I had noticed before that my wife or my son did not receive invitations but I thought it was maybe a problem on their side. So maybe it’s not a regression but I can’t affirm it.
For the log, I’ll try to catch a clean log from a new test because I’ve had some difficulties pasting the log in the text area and maybe some text is missing.
You 've written Using plugin: "caldav" but in the log I see Loading plugin: "caldav" and using service: "caldav"

The Using plugin: "caldav" appears just the after the line starting with inserting incidence "0CE96[...]. And that’s expected. Then, the CalDAV plugin just do nothing for the send invitation action.

This line (Using plugin: "caldav") does not show after the deletion line in the log you provided. The reason for it is that nemo-qml-plugin-calendar (responsible for the call) does not consider that you’re the organiser of the event… That may be another bug by the way. The test is done by comparing the organizer field of the event and the email associated with the CalDAV account on device. If empty or not matching, you’re not the organiser and not cancellation should be sent (so the line Using plugin: "caldav" is not appearing).

What is puzzling me is how you can receive a cancellation notice with a CalDAV account (Nextcloud account is using the CalDAV implementation on device), since the caldav plugin is ignoring invitation send and updates.

Yes you’re right, I didn’t see it.
For the cancellation message, my guess is that it’s the server which sends the message, not the phone.

I think the problem comes from:

[D] unknown:0 - Default plugin: account "4" do not have a valid email address
[W] unknown:0 - Default account was not found!

But I don’t know how to add an email address to the caldav account. When creating it in the “Settings” there is no field for it.

That explains why it works on my side. I have an Nextcloud account by /e/ and they offer an email address (that I never use, until for this case).

The email account for a CalDAV account, as @pherjung mentioned, should be set on the server side. The Sailfish OS plugin will then get it from the server at next sync.

Yes, this in a feature that hasn’t been implemented (yet). I’m going to move this to feature requests category.