Skip to content
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

Invitations not sent when added meetings from Android #9472

Closed
biva opened this issue May 14, 2018 · 11 comments
Closed

Invitations not sent when added meetings from Android #9472

biva opened this issue May 14, 2018 · 11 comments
Assignees

Comments

@biva
Copy link

biva commented May 14, 2018

Using Davdroid, no invitation is sent when creating an event with an attendee. It looks very similar to #1482

The lines added by @ctodobom and @rullzer
+$server->addPlugin(new \Sabre\CalDAV\Schedule\Plugin());
+$server->addPlugin(new OCA\DAV\CalDAV\Schedule\IMipPlugin( \OC::$server->getMailer(), \OC::$server->getLogger()));

are not present in the code: https://github.com/nextcloud/server/blob/master/apps/dav/appinfo/v1/caldav.php

Config:
NC 13.0.2
Davdroid 1.11.2-ose
Calendar 1.6.1

[Edit] : it does work from Thunderbird, invitations are sent

@allgood
Copy link
Contributor

allgood commented May 14, 2018

Looks like it was moved to a conditional based on variable $sendInvitations, there is an option on the admin panel to enable the sending of caldav invitations.

@biva
Copy link
Author

biva commented May 14, 2018

Thank you @ctodobom . The option is already enabled, and invitation is sent from Thunderbird and the calendar app on the web UI. But not from Android with Davdroid. Any idea?

@allgood
Copy link
Contributor

allgood commented May 14, 2018

Just tested with Android 8.0 and the same versions you mentioned on your bug report... message was sent successfully.

EDIT: on gmail the message sent from nextcloud went into the spam folder. maybe this is wha is happening to you.

@biva
Copy link
Author

biva commented May 14, 2018

Thank you. But no spam :(

How could I investigate what is not working on my side? Tested with the same attendee's email address, both from Thunderbird and the calendar app: the invitation is sent. I don't see anything specific in the log (only the 2 invitations sent from TB and the calendar app).

I tested the creation from 2 apps (acalendar and Google Calendar)

Here is the debug info from Davdroid:


--- BEGIN DEBUG INFO ---

SOFTWARE INFORMATION
Package: at.bitfire.davdroid
Version: 1.11.2-ose (218) from 5 mai 2018
Installed from: com.android.packageinstaller
JB Workaround installed: no

CONNECTIVITY (at the moment)
Active connection: WiFi, CONNECTED

CONFIGURATION
Power saving disabled: yes
android.permission.READ_CONTACTS permission: granted
android.permission.WRITE_CONTACTS permission: granted
android.permission.READ_CALENDAR permission: granted
android.permission.WRITE_CALENDAR permission: granted
org.dmfs.permission.READ_TASKS permission: denied
org.dmfs.permission.WRITE_TASKS permission: denied
System-wide synchronization: automatically
Account: MyAccount
  Address book sync. interval: 60 min
  Calendar     sync. interval: 60 min
  OpenTasks    sync. interval: —
  WiFi only: false
  [CardDAV] Contact group method: CATEGORIES
  [CalDAV] Time range (past days): 90
           Manage calendar colors: true
Address book account: Perso (MyAccount CA)
  Main account: Account {name=MyAccount, type=bitfire.at.davdroid}
  URL: https://mynextcloud.com/remote.php/dav/addressbooks/users/sisim/Perso/
  Sync automatically: true

SQLITE DUMP
android_metadata
	|  locale |
	|  fr_FR |
----------
services
	|  _id | accountName | service | principal |
	|  3 | MyAccount | carddav | https://mynextcloud.com/remote.php/dav/principals/users/sisim/ |
	|  4 | MyAccount | caldav | https://mynextcloud.com/remote.php/dav/principals/users/sisim/ |
----------
sqlite_sequence
	|  name | seq |
	|  services | 4 |
	|  homesets | 10 |
	|  collections | 23 |
----------
homesets
	|  _id | serviceID | url |
	|  9 | 4 | https://mynextcloud.com/remote.php/dav/calendars/sisim/ |
	|  10 | 3 | https://mynextcloud.com/remote.php/dav/addressbooks/users/sisim/ |
----------
collections
	|  _id | serviceID | type | url | readOnly | forceReadOnly | displayName | description | color | timezone | supportsVEVENT | supportsVTODO | source | sync |
	|  19 | 4 | CALENDAR | https://mynextcloud.com/remote.php/dav/calendars/sisim/contact_birthdays/ | 1 | 0 | Contact birthdays |  | -54 |  | 1 | 0 |  | 0 |
	|  20 | 4 | CALENDAR | https://mynextcloud.com/remote.php/dav/calendars/sisim/personal/ | 0 | 0 | Personal |  | -1579148 |  | 1 | 1 |  | 1 |
	|  21 | 3 | ADDRESS_BOOK | https://mynextcloud.com/remote.php/dav/addressbooks/users/sisim/Perso/ | 0 | 0 | Perso |  |  |  | 0 | 0 |  | 1 |
	|  22 | 3 | ADDRESS_BOOK | https://mynextcloud.com/remote.php/dav/addressbooks/users/sisim/Pro/ | 0 | 0 | Pro |  |  |  | 0 | 0 |  | 0 |
	|  23 | 3 | ADDRESS_BOOK | https://mynextcloud.com/remote.php/dav/addressbooks/users/sisim/Trash/ | 0 | 0 | Trash |  |  |  | 0 | 0 |  | 0 |
----------

SYSTEM INFORMATION
Android version: 7.1.2 (lineage_h815-userdebug 7.1.2 NJH47F c627f1545d)
Device: LGE LG-H815 (h815)

--- END DEBUG INFO ---

@biva
Copy link
Author

biva commented May 14, 2018

Investigating, I found out that the attendee's email is entered with mailto: in front, when created from Android, and not from UI

  1. Create event "Tricot" on Android, add participant john@mail.com
  2. Go to UI, look into "Tricot" details
  3. Attendees are mailto:john@mail.com and mailto:Account_Name_On_Davdroid

Maybe it's the problem? And why is there an additional attendee created? (mailto:Account_Name_On_Davdroid)

@allgood
Copy link
Contributor

allgood commented May 15, 2018

I suppose that you replaced the address of the "Tricot" creator by Account_Name_On_Davdroid ... Android does this. Can you try to add an event with an external participant through the web interface and see if it sends the message? If it not send, try testing the ability of nextcloud on sending the message from this specific user, maybe you are experiencing an issue with any mail getting out from nextcloud (thunderbird can send it by itself)

@biva
Copy link
Author

biva commented May 15, 2018

I suppose that you replaced the address of the "Tricot" creator by Account_Name_On_Davdroid

No, Account_Name_On_Davdroid is the name I gave to the Davdroid account (you can configure several ones if you want). It is not an attendee, and it is not my personal email address as the creator of the event "Tricot" (it is even not an email address)

Can you try to add an event with an external participant through the web interface and see if it sends the message?

Yes, it does send the message

Thank you for your support!

@allgood
Copy link
Contributor

allgood commented May 15, 2018

maybe the bug is being triggered by a non-mail user on the atendees. Looks like davdroid always put the current user as an attendee even if it is not a mail address, this may be causing fail when nextcloud try to send the message!

@rullzer
Copy link
Member

rullzer commented May 15, 2018

@georgehrke can you look into this?

@georgehrke georgehrke self-assigned this May 15, 2018
@georgehrke
Copy link
Member

@biva Can you please provide server logs? There should be an error message in the web servers error log / Nextcloud log if the invitation is not sent.

@biva
Copy link
Author

biva commented May 15, 2018

@ctodobom you were right! I should have named the account with my email address, that was the issue. I set a new account with my email address, and it works now. I'm sorry, because I did not read carefully the instruction while creating the account: Davdroid does explain that I should use my email address...

So I proposed a new documentation file, to explain Android sync:

@biva biva closed this as completed May 15, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants