[Davical-general] Davical setup for OS X Contacts (CARDAV, not CALDAV)?

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

[Davical-general] Davical setup for OS X Contacts (CARDAV, not CALDAV)?

Ben Goren
So, with some help from the kind folks here and over on the OpenBSD Ports mailing list, I now have Davical serving up calendars.

The next (and, hopefully, last) piece of the puzzle is how to get OS X's built-in "Contacts" CARDAV client to talk to Davical.

I don't see any client configuration information on the Web site / wiki; nor do I see anything server-specific for CARDAV (similar URL rewriting?). I've tried all the obvious things I can think of with no luck. I'm pretty sure there's little left but a very simple incantation...

...but I've not a clue what that incantation might be.

Any suggestions?

Thanks,

b&
------------------------------------------------------------------------------
Go from Idea to Many App Stores Faster with Intel(R) XDK
Give your users amazing mobile app experiences with Intel(R) XDK.
Use one codebase in this all-in-one HTML5 development environment.
Design, debug & build mobile apps & 2D/3D high-impact games for multiple OSs.
http://pubads.g.doubleclick.net/gampad/clk?id=254741911&iu=/4140
_______________________________________________
Davical-general mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/davical-general
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Davical setup for OS X Contacts (CARDAV, not CALDAV)?

Ingo Ratsdorf
Apple Addressbook only supports ONE single addressbook, being the primary (or first) addressbook in any collection. It only supports the typical apple form of http[s]://{davserver.tld}/principals/user/{username}

You only have to enter {davserver.tld} into the account information, addressbook will find the (right) url (as above).
Ref: http://sabre.io/dav/carddav-directory/

Client info

OS/X 10.6 Addressbook

The OS/X 10.6 client will not request the list of directories, but it rather assumes that there's one located at the /directory path on the root of the server.

So if you want to support this client as well, ensure that that's the exact location of the global addressbook. Because of this, this client will also not be able to support more than 1 directory.

OS/X 10.7 and 10.8

These clients do pick up on the directories property, but they will only support 1 directory at most still.

iOS 4, 5 and 6.

The CardDAV spec dictates that clients should not do things like a Depth: 1 PROPFIND on the directory. iOS 4 & 5 do this though. When this happens, simply don't return anything (empty array from getChildren()) rather than throwing an error.

Throwing an error will break iOS 4 and 5, but this does appear to be fixed in iOS6.


If that does not work, your setup is not working or your rewrite rules do not work.

Cheers,
Ingo


On 01/12/2015 6:50:15 AM, Ben Goren wrote:
So, with some help from the kind folks here and over on the OpenBSD Ports mailing list, I now have Davical serving up calendars.

The next (and, hopefully, last) piece of the puzzle is how to get OS X's built-in "Contacts" CARDAV client to talk to Davical.

I don't see any client configuration information on the Web site / wiki; nor do I see anything server-specific for CARDAV (similar URL rewriting?). I've tried all the obvious things I can think of with no luck. I'm pretty sure there's little left but a very simple incantation...

...but I've not a clue what that incantation might be.

Any suggestions?

Thanks,

b&


------------------------------------------------------------------------------
Go from Idea to Many App Stores Faster with Intel(R) XDK
Give your users amazing mobile app experiences with Intel(R) XDK.
Use one codebase in this all-in-one HTML5 development environment.
Design, debug & build mobile apps & 2D/3D high-impact games for multiple OSs.
http://pubads.g.doubleclick.net/gampad/clk?id=254741911&iu=/4140
_______________________________________________
Davical-general mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/davical-general
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Davical setup for OS X Contacts (CARDAV, not CALDAV)?

Ben Goren
On Nov 30, 2015, at 12:04 PM, "Ingo Ratsdorf" <[hidden email]> wrote:

> If that does not work, your setup is not working or your rewrite rules do not work.

Eureka! Thank you!

For the record, this did the trick:

rewrite ^/principals/(.*)$ /caldav.php/$1 last;

b&
------------------------------------------------------------------------------
Go from Idea to Many App Stores Faster with Intel(R) XDK
Give your users amazing mobile app experiences with Intel(R) XDK.
Use one codebase in this all-in-one HTML5 development environment.
Design, debug & build mobile apps & 2D/3D high-impact games for multiple OSs.
http://pubads.g.doubleclick.net/gampad/clk?id=254741911&iu=/4140
_______________________________________________
Davical-general mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/davical-general
Loading...