Author Topic: Integrate Nextcloud Caldav source to Roundcube calendar plugin  (Read 4587 times)

Offline ol2tmx

  • Newbie
  • *
  • Posts: 3
Dear all,
I just installed and configured Roundcube 1.4 RC1 on my vhost and everything is work perfectly. As sources for Caldav/Carddav I am using my Nextcloud instance and it works very good with plenty of Clients on mobile devices and Thunderbird email client.  I could successfully install the Carddav plugin and it is working as it was expected.

No I have some question regarding the Calendar plugin to support online calendar inside of roundcube. I just followed the description of https://plugins.roundcube.net/packages/kolab/calendar and coud successfully install the calendar plugin with caldav support. I was missing a textfield for integrating a caldav URL into the calendar configuration interface. Anyhow I figured out the URL has to be defined into the plugins 'config.inc.php'

It defines the caldav URL as following:
Code: [Select]
// $config['calendar_caldav_url'] = 'http://%h/iRony/calendars/%u/%i';

The Caldav URL's in Nextcloud are quite different to Sabre etc in the view of shared caldav ressources:

example:

Nextcloud CALDAV Source URL:  https://nextcloud.mydomain.tld/remote.php/dav/calendars/user1/mycalendar/
Nextcloud CALDAV Shared URL:  https://nextcloud.mydomain.tld/remote.php/dav/calendars/user2/mycalendar_shared_by_user1/
Nextcloud CALDAV Shared URL 2:  https://nextcloud.mydomain.tld/remote.php/dav/calendars/user3/mycalendar_shared_by_user1/
...

I don't know if it is possible to define more than 1 caldav URL in this plugin configuration to point the right person to the correct Caldav URL??

I just defined the URL with:

 
Code: [Select]
$config['calendar_caldav_url'] ='https://nextcloud.mydomain.tld/remote.php/dav/calendars/user1/mycalendar/';
Result:

just a new empty white web page without any content. Any ideas for debugging???  :-X 
 













« Last Edit: June 07, 2019, 04:29:00 PM by ol2tmx »

Offline xuo

  • Jr. Member
  • **
  • Posts: 16
Re: Integrate Nextcloud Caldav source to Roundcube calendar plugin
« Reply #1 on: March 14, 2020, 02:41:46 PM »
Hi,

I've exactly the same issue. Did you succeed to make it work ?

Regards.

Xuo.

Offline freeman1doma

  • Newbie
  • *
  • Posts: 5
Re: Integrate Nextcloud Caldav source to Roundcube calendar plugin
« Reply #2 on: May 24, 2020, 04:00:05 PM »
Have this problem with RC 1.4.4 and baikal 0.6.1 http://sabre.io/baikal
empty white web page after add some addressbooks... with no messages to error.log
How can fix this problem?

Offline freeman1doma

  • Newbie
  • *
  • Posts: 5
Re: Integrate Nextcloud Caldav source to Roundcube calendar plugin
« Reply #3 on: July 06, 2020, 01:07:51 PM »
I have find fix for my problem with blank page in CardDav plugin. In my setup used freebsd 12.1 and roundcube 1.4.4  with php72.
My steps for fix problem:
CardDav 3.0.3  install and patch(or from composer and after install - patch):
# cd /usr/local/www/roundcube/plugins/carddav
# fetch https://github.com/blind-coder/rcmcarddav/releases/download/v3.0.3/carddav-3.0.3.tar.bz2
# tar zxvf carddav-3.0.3.tar.bz2 -C /usr/local/www/roundcube/plugins/carddav/ --strip-components=1
# cp /usr/ports/mail/roundcube-carddav/files/patch-carddav__backend.php  /usr/local/www/roundcube/plugins/carddav
#  patch < patch-carddav__backend.php

Install php extensions for CardDav:
php72-sockets
php72-simplexml
php72-curl

Content of file  patch-carddav__backend.php:
Code: [Select]
--- carddav_backend.php.orig    2018-05-28 06:30:30 UTC
+++ carddav_backend.php
@@ -716,9 +716,7 @@ EOF
 <C:addressbook-multiget xmlns:D="DAV:" xmlns:C="urn:ietf:params:xml:ns:carddav">
 <D:prop>
     <D:getetag/>
-    <C:address-data>
-        <C:allprop/>
-    </C:address-data>
+    <C:address-data/>
 </D:prop>
 $hrefstr
 </C:addressbook-multiget>