hjbflyer

Q: Can’t create address book categories by program

I have extended a Java program to create, update and delete address book entries in the OS X 10.10.1 caldav/carddav server (server version 4). I am using ez-vcard 0.9.6 to handle the vcards.

Every thing works fine, except the creation of categories.

 

I have tested three scenarios:

Case 1: The categories do not exist.

   No matter if I create or update the vcard, no categories are created. If I later export

   the vcard into a file the CATEGORIES entry is missing.

 

      BEGIN:VCARD

   VERSION:3.0

   …

   CATEGORIES:A,B,C

   …

   END:VCARD

 

Case 2: I do create the categories by hand (using my iphone)

   No matter if I create or update the vcard. No vcard is showing up in one of the

   categories.

 

Case 3: If I move the vcard using my iphone into a CATEGORY, it is displayed there. It also

   contains that category in the vcard export file. If I later update the vcard, the contents

   is updated in the full list and in the CATEGORY (as expected).

 

It looks that the CATEGORIES property is ignored by the server, when I send my vcard. What do I miss? Is there

another property needed? The CATEGORIES property is part of the PUT message.

 

Thanks for any idea.

Mac mini, OS X Yosemite (10.10.1)

Posted on Jan 19, 2015 3:15 AM

Close

Q: Can’t create address book categories by program

  • All replies
  • Helpful answers

  • by lifedriveUser,

    lifedriveUser lifedriveUser Sep 10, 2016 7:36 AM in response to hjbflyer
    Level 1 (4 points)
    Mac OS X
    Sep 10, 2016 7:36 AM in response to hjbflyer

    I don't know if this helps but I'm using OS X 10.11.6 and Server v5.1.7 and I've observed that it appears the OS X CardDav Server does handle categories but  the Apple OSX Application Contacts does not.  See http://www.rfc-editor.org/rfc/rfc6350.txt for information about the Category Property.

     

    My evidence is that I'm syncing Microsoft Outlook contacts and Android contacts, both of which have categories with the OS X CardDav server.  The category property information is successfully transferred between Outlook and Android via OS X CardDav Server.

     

    However, when I sync with the Apple OS X Contact application with this same server the Category information is missed.  Not only is it not displayed, the property doesn't appear in a exported vcard.vcf file.

     

    Its very sad and annoying that Apple doesn't fully implement the vcard standard in its end-user applications - but it appears they do implement it more fully in the most recent version of the Server.