Connect. Communicate. Collaborate. Securely.

Home » Developer Zone » API/SDK Writers » CardDAV: Cannot update VCARD if VCARD was created in custom contacts folder
  •  
pwall417

Messages: 1
Karma: 0
Send a private message to this user
Setup:
Kerio Connect 9.2.1 (2397)
-User 'OpaccService' (has access to other users' contact folders etc.)
-User 'PeterMuster'
--> has custom contacts folder 'Opacc_Contacts' (Editor rights granted to 'OpaccService')

Via CardDAV/WebDAV I have successfully created a contact (VCARD) in custom contacts folder 'Opacc_Contacts' of user
'PeterMuster' by using the credentials of user 'OpaccService'. Here is the request and the response from KerioConnect:
PUT https ://kerio1.intra.local/contacts/intra.local/petermuster/Opacc_Contacts/OPACC_OpaccOne%20Groupware%20Tests_4711.vcf HTTP/1.1
If-None-Match: *
Content-Type: text/vcard; charset=utf-8
Authorization: Basic T3BhY2NTZXJ2aWNlOnNlY3JldA==
Host: kerio1.intra.local
Content-Length: 704
Expect: 100-continue

BEGIN:VCARD
VERSION:3.0
PRODID:-//Opacc//Opacc WebDAV Client//EN
FN:My Subject
N:LastName;FirstName;;Personal Title;Name Suffix
BDAY:1980-04-15
ORG:Organization;Department
TITLE:Function Title
CATEGORIES:OpaccTestCategory2_äöüÄÖÜ\,12,OpaccTestCategory1_äöüÄÖÜ\,11
ADR;TYPE=WORK:P.O. Box 1234;;Street;City;;12346;Country
TEL;TYPE=WORK,FAX:Fax No.
TEL;TYPE=CELL:Mobile No.
TEL;TYPE=WORK,VOICE:Telephone No. 1
TEL;TYPE=WORK,VOICE:Telephone No. 2
EMAIL:email1<_at_>somecorp.com
EMAIL:email2<_at_>somecorp.com
NOTE:Das ist der Body Text
URL;TYPE=WORK:http ://www.somecorp.com
UID:BEFD7A3B-0468-4DCE-BBE2-0D850737A8D0
X-OPACC-APPLNAME:OpaccOne Groupware Tests
X-OPACC-KEY:4711
END:VCARD

-->
HTTP/1.1 201 Created
Allow: OPTIONS, TRACE, GET, HEAD, DELETE, PUT, COPY, MOVE, PROPFIND, PROPPATCH, SEARCH, SUBSCRIBE, UNSUBSCRIBE, POLL, BDELETE, BCOPY, BMOVE, BPROPPATCH, BPROPFIND, LOCK, UNLOCK
Connection: Close
Content-Length: 151
Content-Type: text/html
Date: Tue, 14 Feb 2017 15:33:01 GMT
ETag: 0e03d820209743888ed6de2714a027820000005800000001
Location: /contacts/intra.local/petermuster/Opacc_Contacts/OPACC_OpaccOne%20Groupware%20Tests_4711.vcf
Repl-UID: <rid:0e03d820209743888ed6de2714a027820000000000000058>
ResourceTag: <rt:0e03d820209743888ed6de2714a0278200000000000000580e03d820209743888ed6de2714a027820000005800000001>
Server: Kerio Connect 9.2.1
X-UA-Compatible: IE=edge

<body><h1>/contacts/intra.local/petermuster/Opacc_Contacts/OPACC_OpaccOne%20Groupware%20Tests_4711.vcf has been successfully created.</h1></body>



I then try to update this contact (VCARD). However, the KerioConnect server either returns 403 Forbidden or
200 OK but does not change the contact data.
Here are the requests and responses which I have tried:


Trial #1
--------
PUT https ://kerio1.intra.local/contacts/intra.local/petermuster/Opacc_Contacts/OPACC_OpaccOne%20Groupware%20Tests_4711.vcf HTTP/1.1
If-Match: "0e03d820209743888ed6de2714a027820000005800000001"
Content-Type: text/vcard; charset=utf-8
Authorization: Basic T3BhY2NTZXJ2aWNlOnNlY3JldA==
Host: kerio1.intra.local
Content-Length: 753
Expect: 100-continue

BEGIN:VCARD
VERSION:3.0
PRODID:-//Opacc//Opacc WebDAV Client//EN
FN:My SubjectGeändert
N:LastName (Geändert);FirstName (Geändert);;Personal TitleGeändert;Name Suf
 fixGeändert
BDAY:2500-12-31
ORG:Organization;DepartmentGeändert
TITLE:Function TitleGeändert
CATEGORIES:OpaccTestCategory1_äöüÄÖÜ\,11
ADR;TYPE=WORK:P.O. Box 1234Geändert;;StreetGeändert;CityGeändert;;12346Geän
 dert;CountryGeändert
TEL;TYPE=WORK,FAX:Fax No.Geändert
TEL;TYPE=CELL:Mobile No.Geändert
EMAIL:email1<_at_>somecorp.com
EMAIL:newemail2<_at_>somecorp.com
NOTE:Das ist der Body Text (Geändert)
URL;TYPE=WORK:http ://www.somecorp.com/index
UID:BEFD7A3B-0468-4DCE-BBE2-0D850737A8D0
X-OPACC-APPLNAME:OpaccOne Groupware Tests
X-OPACC-KEY:4711
END:VCARD

-->
HTTP/1.1 403 Forbidden
Connection: Close
Content-Length: 0
Content-Type: application/octet-stream
Date: Tue, 14 Feb 2017 15:36:33 GMT
Server: Kerio Connect 9.2.1
X-UA-Compatible: IE=edge



Trial #2
--------
PUT https ://kerio1.intra.local/contacts/intra.local/petermuster/addressbook/OPACC_OpaccOne%20Groupware%20Tests_4711.vcf HTTP/1.1
If-Match: "0e03d820209743888ed6de2714a027820000005800000001"
Content-Type: text/vcard; charset=utf-8
Authorization: Basic T3BhY2NTZXJ2aWNlOnNlY3JldA==
Host: kerio1.intra.local
Content-Length: 753
Expect: 100-continue

BEGIN:VCARD
VERSION:3.0
PRODID:-//Opacc//Opacc WebDAV Client//EN
FN:My SubjectGeändert
N:LastName (Geändert);FirstName (Geändert);;Personal TitleGeändert;Name Suf
 fixGeändert
BDAY:2500-12-31
ORG:Organization;DepartmentGeändert
TITLE:Function TitleGeändert
CATEGORIES:OpaccTestCategory1_äöüÄÖÜ\,11
ADR;TYPE=WORK:P.O. Box 1234Geändert;;StreetGeändert;CityGeändert;;12346Geän
 dert;CountryGeändert
TEL;TYPE=WORK,FAX:Fax No.Geändert
TEL;TYPE=CELL:Mobile No.Geändert
EMAIL:email1<_at_>somecorp.com
EMAIL:newemail2<_at_>somecorp.com
NOTE:Das ist der Body Text (Geändert)
URL;TYPE=WORK:http ://www.somecorp.com/index
UID:BEFD7A3B-0468-4DCE-BBE2-0D850737A8D0
X-OPACC-APPLNAME:OpaccOne Groupware Tests
X-OPACC-KEY:4711
END:VCARD

-->
HTTP/1.1 403 Forbidden
Connection: Close
Content-Length: 0
Content-Type: application/octet-stream
Date: Tue, 14 Feb 2017 15:34:12 GMT
Server: Kerio Connect 9.2.1
X-UA-Compatible: IE=edge



Trial #3
--------
PUT https ://kerio1.intra.local/exchange/petermuster/Opacc_Contacts/OPACC_OpaccOne%20Groupware%20Tests_4711.vcf HTTP/1.1
If-Match: "0e03d820209743888ed6de2714a027820000005800000001"
Content-Type: text/vcard; charset=utf-8
Authorization: Basic T3BhY2NTZXJ2aWNlOnNlY3JldA==
Host: kerio1.intra.local
Content-Length: 753
Expect: 100-continue

BEGIN:VCARD
VERSION:3.0
PRODID:-//Opacc//Opacc WebDAV Client//EN
FN:My SubjectGeändert
N:LastName (Geändert);FirstName (Geändert);;Personal TitleGeändert;Name Suf
 fixGeändert
BDAY:2500-12-31
ORG:Organization;DepartmentGeändert
TITLE:Function TitleGeändert
CATEGORIES:OpaccTestCategory1_äöüÄÖÜ\,11
ADR;TYPE=WORK:P.O. Box 1234Geändert;;StreetGeändert;CityGeändert;;12346Geän
 dert;CountryGeändert
TEL;TYPE=WORK,FAX:Fax No.Geändert
TEL;TYPE=CELL:Mobile No.Geändert
EMAIL:email1<_at_>somecorp.com
EMAIL:newemail2<_at_>somecorp.com
NOTE:Das ist der Body Text (Geändert)
URL;TYPE=WORK:http ://www.somecorp.com/index
UID:BEFD7A3B-0468-4DCE-BBE2-0D850737A8D0
X-OPACC-APPLNAME:OpaccOne Groupware Tests
X-OPACC-KEY:4711
END:VCARD

-->
HTTP/1.1 200 OK
Allow: OPTIONS, TRACE, GET, HEAD, DELETE, PUT, COPY, MOVE, PROPFIND, PROPPATCH, SEARCH, SUBSCRIBE, UNSUBSCRIBE, POLL, BDELETE, BCOPY, BMOVE, BPROPPATCH, BPROPFIND, LOCK, UNLOCK
Connection: Close
Content-Length: 135
Content-Type: text/html
Date: Tue, 14 Feb 2017 15:37:14 GMT
ETag: 0e03d820209743888ed6de2714a027820000005800000001
Repl-UID: <rid:0e03d820209743888ed6de2714a027820000000000000058>
ResourceTag: <rt:0e03d820209743888ed6de2714a0278200000000000000580e03d820209743888ed6de2714a027820000005800000001>
Server: Kerio Connect 9.2.1
X-UA-Compatible: IE=edge

<body><h1>/exchange/petermuster/Opacc_Contacts/OPACC_OpaccOne%20Groupware%20Tests_4711.vcf has been successfully written.</h1></body>


So even though the last response was 200 OK, the contact was not updated. Thus my question:
How are we supposed to update a contact (VCARD) in a custom folder via CardDAV/WebDAV? Thanks for your help.

P.S. I successfully deleted the above contact (VCARD) with the following
request using the same URL as in update trial #2:
DELETE https ://kerio1.intra.local/contacts/intra.local/petermuster/addressbook/OPACC_OpaccOne%20Groupware%20Tests_4711.vcf HTTP/1.1
Authorization: Basic T3BhY2NTZXJ2aWNlOnNlY3JldA==
Host: kerio1.intra.local
Content-Length: 0
Connection: Keep-Alive
Previous Topic: cdr.db enumeration desription of fromtype, totype and status
Goto Forum:
  


Disclaimer:
Kerio discussion forums are intended for open communication between forum members and may contain information and material posted by members which may be useful in learning about Kerio products. The discussion forums are not intended to provide technical support for any specific product. Any information implied or expressed in the discussion forums is that of the posting member. Kerio is in no way responsible for the information posted in the forums, or its accuracy. Kerio employees may participate in the discussions, but their postings do not represent an offical position of the company on any issues raised or discussed. Kerio reserves the right to monitor and maintain the forums to promote free and accurate exchange of information.

Current Time: Tue May 30 11:18:44 CEST 2017

Total time taken to generate the page: 0.00905 seconds
.:: Contact :: Home ::.
Powered by: FUDforum 3.0.4.