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
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
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.
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
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!
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!
Created attachment 134271 [details] Cannot add Carddav iCloud
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.
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.
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
(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)
(Sorry - correction.....there are about 1 billion icloud account/users not 1 million as posted in comment 8 LOL)
Created attachment 175288 [details] Configuration.plist from a mac Anonimized Configuration.plist from the Application Support/AddressBook dir on a mac. REDACTED is the email address used as the username of the Apple account; ### are the digits of the account ID; XXXX are the hexadecimal digits of the address book UUID. I found the suggestion to look in this file on https://www.macobserver.com/icloud/enable-contacts-calendar-sync-non-icloud-devices/.
Adding to the above attachment: I am facing this problem not on Fedora but openSUSE.