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 and Gnome #1482

Closed
allgood opened this issue Sep 21, 2016 · 0 comments
Closed

Invitations not sent when added meetings from Android and Gnome #1482

allgood opened this issue Sep 21, 2016 · 0 comments

Comments

@allgood
Copy link
Contributor

allgood commented Sep 21, 2016

Steps to reproduce

  1. configure DAVDroid or Gnome Online Accounts to connect to a Calendar on nextcloud
  2. add a new meeting with at least one other mandatory participant

Expected behaviour

Mail invites should be sent to participants

Actual behaviour

No message is sent

Server configuration

Operating system: Debian Stretch

Web server: Apache

Database: MariaDB

PHP version: 7.0

Nextcloud version: 10.0

I've researched this problem and noted that it is because when connecting from Gnome Online Accounts or DAVDroid apps/dav/appinfo/v2/remote.php isn't executed, and v1/caldav.php is executed in its place. Digging a little more I've found that on caldav.php the plugins for invites aren't loaded.

I've made it work with a two line changes:

--- nextcloud/apps/dav/appinfo/v1/caldav.php    2016-08-25 03:59:50.000000000 -0300
+++ nextcloud-imip/apps/dav/appinfo/v1/caldav.php   2016-09-21 14:23:36.251450162 -0300
@@ -78,6 +78,8 @@
 }

 $server->addPlugin(new \Sabre\CalDAV\ICSExportPlugin());
+$server->addPlugin(new \Sabre\CalDAV\Schedule\Plugin());
+$server->addPlugin(new OCA\DAV\CalDAV\Schedule\IMipPlugin( \OC::$server->getMailer(), \OC::$server->getLogger()));
 $server->addPlugin(new ExceptionLoggerPlugin('caldav', \OC::$server->getLogger()));

 // And off we go!

After this changes, invites are sent both from Gnome and Android.

As I do not know the impact of this change on other parts of nextcloud / calendar, I am submitting this issue report.

allgood added a commit to allgood/nextcloud-server that referenced this issue Sep 22, 2016
allgood added a commit to allgood/nextcloud-server that referenced this issue Sep 23, 2016
Signed-off-by: Claudemir Todo Bom <claudemir@todobom.com>
@nickvergessen nickvergessen added this to the Nextcloud 11.0 milestone Sep 27, 2016
rullzer pushed a commit that referenced this issue Oct 12, 2016
Signed-off-by: Claudemir Todo Bom <claudemir@todobom.com>
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
rullzer pushed a commit that referenced this issue Oct 12, 2016
Signed-off-by: Claudemir Todo Bom <claudemir@todobom.com>
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
rullzer pushed a commit that referenced this issue Oct 12, 2016
Signed-off-by: Claudemir Todo Bom <claudemir@todobom.com>
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
rullzer added a commit that referenced this issue Oct 12, 2016
fix issue #1482 - mail invites through v1 webdav
nickvergessen added a commit that referenced this issue Oct 12, 2016
[stable10] fix issue #1482 - mail invites through v1 webdav
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants