Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

BlackBerry® PlayBook™

Reply
Developer
nicklas
Posts: 150
Registered: ‎02-01-2009
My Device: Torch, PlayBook and Dev Alpha
My Carrier: SFR

OwnCloud - Carddav & Caldav

Hi,

 

Have someone succeed to do that playbook works with OwnCloud ?

 

OwnCloud permits to access to your addressbook or calendar from carddav and caldav.

 

I have added with success my addressbook ; but no still succeed with caldav...

 

For carddav, playbook doesn't load the contacts from the carddav server...

 

If I create a contact from the playbook, the contact is sync with carddav server. But sometimes it doesn't work ?

 

How can I force the sync from the addressbook native app playbook ?

 

Regards,

 

Nicolas

 

Please use plain text.
Regular Visitor
Matsugo
Posts: 1
Registered: ‎01-01-2012
My Device: Playbook
My Carrier: Telus

Re: OwnCloud - Carddav & Caldav

Hey Nicklas,

 

I have had trouble getting CardDAV to work with ownCloud and am planning on looking into that when I have time.

 

As for the CalDAV, it is a issue with the playbook where they break the CalDAV spec when trying to confirm the account settings. I have filed a bug on this at https://www.blackberry.com/jira/browse/TABLET-491

 

In the meantime as a work around if you have access to the owncloud php file you can change this and it looks to work without affecting anything.

 

/3rdparty/Sabre/CalDAV/XMLUtil.php line 77

Change: 

if (!is_null($start) && !is_null($end) && $end <= $start) {

to:

if (!is_null($start) && !is_null($end) && $end < $start) {

 

 

Matsugo

Please use plain text.
Developer
nicklas
Posts: 150
Registered: ‎02-01-2009
My Device: Torch, PlayBook and Dev Alpha
My Carrier: SFR

Re: OwnCloud - Carddav & Caldav

[ Edited ]

Thank's a lot for your post.

 

To sum up my test :

 

1°/ I have installed owncloud on my own server (Apache2, PHP5, MySQL with Debian Linux Sid)

I use owncloud directly from git repository

2°/ I have register my DNS to get : https://cloud.domain.tld pointing to my owncloud web interface

3°/ I have register two sub domains : https://carddav.domain.tld & https://caldav.domain.tld

4°/ I have set my Apache Virtualhost :

<VirtualHost *:443>
  ServerName cloud.domain.tld
  ServerAlias carddav.domain.tld
  ServerAlias caldav.domain.tld
  DocumentRoot /home/httpd/html/domain.tld/cloud

....

5°/ I have patched owncloud htaccess file :

  <IfModule mod_rewrite.c>
  RewriteEngine on
  RewriteRule .* - [env=HTTP_AUTHORIZATION:%{HTTP:Authorization}]

  RewriteCond %{HTTP_HOST} ^carddav
  RewriteCond %{REQUEST_URI} !^/apps
  RewriteRule .* /apps/contacts/carddav.php/$1 [L]

  RewriteCond %{HTTP_HOST} ^caldav
  RewriteCond %{REQUEST_URI} !^/apps
  RewriteRule .* /apps/calendar/caldav.php/$1 [L]
  </IfModule>
5°/ I have also patched the source

  //$server->setBaseUri(OC::$APPSWEBROOT.'/apps/calendar/caldav.php');
  $server->setBaseUri(OC::$APPSWEBROOT.'/');
and

  //$server->setBaseUri(OC::$APPSWEBROOT.'/apps/contacts/carddav.php');
  $server->setBaseUri(OC::$APPSWEBROOT.'/');

 

 

3°, 4°, 5°) I need to do it, because PlayBook wants only an address ! and not an URL.

 

 

After some tests for vCard sync, I think that all seems OK except that the PlayBook doesn't respect RFC about the character ",", "\", ";" using into a vCard.

 

RFC2425 - A MIME Content-Type for Directory Information

 

If I create a contact from the playbook with the character "," into the address field (by sample), I break my address book :smileysad:

 

I have created the issue :

https://www.blackberry.com/jira/browse/TABLET-505

 

About caldav, not really tested... but it seems that I can't create account (I have also try your patch ; but not with success)

 

Regards,

 

Nicolas

 

Please use plain text.
Developer
nicklas
Posts: 150
Registered: ‎02-01-2009
My Device: Torch, PlayBook and Dev Alpha
My Carrier: SFR

Re: OwnCloud - Carddav & Caldav

I have sum up all issues with carddav support.

 

https://www.blackberry.com/jira/browse/TABLET-509

 

Nicolas

 

Please use plain text.
New Contributor
Duncan_Mac_Leod
Posts: 4
Registered: ‎03-02-2013
My Device: Blackberry Z10
My Carrier: O2 Germany

Re: OwnCloud - Carddav & Caldav

Hi,

 

I am planning to buy a Z10, but it's essential for me that sync with owncloud via CALDAV & CARDDAV is working.

 

Today I've read that an update has been released.

 

Does anyone know whether CALDAV & CARDDAV are now working correctly?

 

Thank you.

Duncan

Please use plain text.
Contributor
gafpilot
Posts: 19
Registered: ‎03-20-2013
My Device: Z10
My Carrier: t-mobil

Re: OwnCloud - Carddav & Caldav

No! It does not! Trying to get it working without changing anything at owncloud - impossible!!! :smileymad:

Please use plain text.
New Contributor
mfuhrmann
Posts: 8
Registered: ‎03-24-2013
My Device: Z10
My Carrier: T-Mobile (Germany)

Re: OwnCloud - Carddav & Caldav

[ Edited ]

I have connected my Z10 with the calendars of my Owncloud (5.0) without any modification of the cloud. Just enter the required details into the "add CalDAV" window of the Z10. I'm using https for the could and that worked fine.

 

If you want to add multiple calendars, you have to enter multiple mail-addresses. Otherwise the Z10 complains that the account is already in use. But it seems that the owncloud doesn't care about the addresses and so you can enter bulls*it ;-)

 

CardDAV is on my to-do list for this afternoon :-)

Please use plain text.
Contributor
gafpilot
Posts: 19
Registered: ‎03-20-2013
My Device: Z10
My Carrier: t-mobil

Re: OwnCloud - Carddav & Caldav

Let me know about the Carddav please....

Please use plain text.
New Contributor
mfuhrmann
Posts: 8
Registered: ‎03-24-2013
My Device: Z10
My Carrier: T-Mobile (Germany)

Re: OwnCloud - Carddav & Caldav

I tried CardDAV with little (= no) success :-(

Please use plain text.
Contributor
gafpilot
Posts: 19
Registered: ‎03-20-2013
My Device: Z10
My Carrier: t-mobil

Re: OwnCloud - Carddav & Caldav

I updated to owncloud 5 but still no change :-(

Please use plain text.