Bug 310210 - Cannot add apple / icloud address book resource with CardDAV
Summary: Cannot add apple / icloud address book resource with CardDAV
Status: REOPENED
Alias: None
Product: Akonadi
Classification: Frameworks and Libraries
Component: DAV Resource (show other bugs)
Version: 5.19.2
Platform: Fedora RPMs Linux
: NOR normal
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords: triaged
Depends on:
Blocks:
 
Reported: 2012-11-16 14:01 UTC by Denny
Modified: 2024-03-15 19:23 UTC (History)
7 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
Cannot add Carddav iCloud (99.08 KB, image/png)
2020-12-22 20:02 UTC, Sunny
Details
Error 401 when trying to create carddav connection (193.30 KB, image/png)
2022-02-20 08:03 UTC, Rob Collins
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Denny 2012-11-16 14:01:00 UTC
An error 401 occures, when trying to add an icloud addressbook resource to KDEPIM Addressbook / Akonadi using a CardDAV / GroupDAV protocoll.

I used the following address:
https://<serverprefix>-contacts.icloud.com/<dsid>/carddavhome/card
See also [1]
together with the credentials to login on the icloud website.

The calender resource works seamlessly right away - once one figured out the correct server address [1].

As Apple is using *DAV standard protocoll, it shouldn't be a problem to get this going and valuable for any iphone/ipad/mac user.

[1] http://forums.macrumors.com/archive/index.php/t-1176780.html
Comment 1 Grégory Oestreicher 2012-11-23 20:30:15 UTC
This is gonna be impossible for me to test without an Apple product it seems.

Could you send me the network traces (captured without SSL/TLS) of a failed exchange? Try to anonymize it as much as possible, especially the authentication headers of the HTTP requests.

Cheers,
Grégory
Comment 2 Denny 2013-01-06 14:08:38 UTC
For testing, I think it would help to get your own login. You just need to know someone with an apple device to create your own apple id. With that you should be able to login on http://www.icloud.com and add the calender/addressbook to kdepim.
If not, drop me a line and I'll see what I can do for you.
Comment 3 numkem 2013-04-04 13:31:40 UTC
Same applies to me.

After some reading, the server prefix doesn't matter. One nice thing I foud that could help with finding URLs is : https://github.com/muhlba91/icloud
Comment 4 Andrew Crouthamel 2018-09-25 03:35:29 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least 15 days. Please provide the requested information as soon as possible and set the bug status as REPORTED. Due to regular bug tracker maintenance, if the bug is still in NEEDSINFO status with no change in 30 days, the bug will be closed as RESOLVED > WORKSFORME due to lack of needed information.

For more information about our bug triaging procedures please read the wiki located here: https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please set the bug status as REPORTED so that the KDE team knows that the bug is ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 5 Andrew Crouthamel 2018-10-27 03:57:40 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least 30 days. The bug is now closed as RESOLVED > WORKSFORME due to lack of needed information.

For more information about our bug triaging procedures please read the wiki located here: https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

Thank you for helping us make KDE software even better for everyone!
Comment 6 Sunny 2020-12-22 20:02:50 UTC
Created attachment 134271 [details]
Cannot add Carddav iCloud
Comment 7 Sunny 2020-12-22 20:05:37 UTC
Hi, i have the same problem. i cannot add apple carddav account to KAddressBook. it works with Evolution and thunderbird though. with CalDav I can add the account but the events do not sync.
Comment 8 Rob Collins 2022-02-20 07:58:57 UTC
It is very disappointing that this bug has been hanging around since 2012 - the problem I can confirm has not gone away 10 years later!  The OP correctly points out the following URL inputted into the carddav account creation section of any akonadi-based app (korganizer, kalendar etc), does not connect to Apple standardised carddav dav API, instead giving error 401.  This has become a source of some frustration for me after having spend this afternoon trying various combinations of URL's and getting nowhere with this. The URL which should work to give carddav access to my icloud address book is as follows and is shown also in the attached image (I've hashed out the account id number):
```
https://p46-contacts.icloud.com/[#########]/carddavhome/card/
```
I understand the p-number ("p46") changes also depending on the particular account and when/where it was established.  It's worth noting that this exact URL works flawlessly without hiccup to add the same icloud address book to Gnome Evolution using its carddav account creation tool for Gnome Contacts access to the icloud address book.  If Gnome can achieve this task without problem, surely KDE Plasma can?  There are about 1 million icloud account users today so this problem must be worth attending to surely?

Anyway, please could someone take a look into this; I am very willing to help with testing etc, and I can definitely help with access to an icloud account for anyone needing to test this themselves.  Do let me know - robcollins55@icloud.com.
Comment 9 Rob Collins 2022-02-20 08:03:26 UTC
Created attachment 146966 [details]
Error 401 when trying to create carddav connection

This image belongs with comment 8 https://bugs.kde.org/show_bug.cgi?id=310210#c8
Comment 10 Rob Collins 2022-02-20 08:38:17 UTC
(moved version to 5.19.2 archlinux version of akonadi in the bug report header as OP was 10 years ago with equivalent old versions)
Comment 11 Rob Collins 2022-02-20 08:48:32 UTC
(Sorry - correction.....there are about 1 billion icloud account/users not 1 million as posted in comment 8 LOL)