Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'jb43847' into 'master'
Fix a variety of issues with CardDAV sync with standards-compliant services See merge request mer-core/buteo-sync-plugin-carddav!19
- Loading branch information
Showing
7 changed files
with
221 additions
and
69 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
42 changes: 42 additions & 0 deletions
42
...lyparser/data/replyparser_addressbookinformation_addressbook-plus-collection-resource.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
<?xml version='1.0' encoding='utf-8'?> | ||
<D:multistatus xmlns:D="DAV:"> | ||
<D:response> | ||
<href xmlns="DAV:">/carddav/accountname%40server.tld/</href> | ||
<D:propstat> | ||
<D:prop> | ||
<D:displayname>Display Name</D:displayname> | ||
<D:resourcetype> | ||
<D:collection/> | ||
</D:resourcetype> | ||
</D:prop> | ||
<status xmlns="DAV:">HTTP/1.1 200 OK</status> | ||
</D:propstat> | ||
<D:propstat> | ||
<D:prop> | ||
<D:sync-token/> | ||
<getctag xmlns="http://calendarserver.org/ns/"/> | ||
</D:prop> | ||
<status xmlns="DAV:">HTTP/1.1 404 Not Found</status> | ||
</D:propstat> | ||
</D:response> | ||
<D:response> | ||
<href xmlns="DAV:">/carddav/accountname%40server.tld/addressbook/</href> | ||
<D:propstat> | ||
<D:prop> | ||
<D:displayname>Display Name</D:displayname> | ||
<D:resourcetype> | ||
<E:addressbook xmlns:E="urn:ietf:params:xml:ns:carddav"/> | ||
<D:collection/> | ||
</D:resourcetype> | ||
<getctag xmlns="http://calendarserver.org/ns/">123456789</getctag> | ||
</D:prop> | ||
<status xmlns="DAV:">HTTP/1.1 200 OK</status> | ||
</D:propstat> | ||
<D:propstat> | ||
<D:prop> | ||
<D:sync-token/> | ||
</D:prop> | ||
<status xmlns="DAV:">HTTP/1.1 404 Not Found</status> | ||
</D:propstat> | ||
</D:response> | ||
</D:multistatus> |
20 changes: 20 additions & 0 deletions
20
tests/replyparser/data/replyparser_contactmetadata_single-vcf-and-non-vcf.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<d:multistatus xmlns:d="DAV:" xmlns:card="urn:ietf:params:xml:ns:carddav"> | ||
<d:response> | ||
<d:href>/addressbooks/johndoe/contacts/new.vcf</d:href> | ||
<d:propstat> | ||
<d:prop> | ||
<d:getetag>"0021-0021"</d:getetag> <!-- new uri/etag :. added --> | ||
</d:prop> | ||
<d:status>HTTP/1.1 200 OK</d:status> | ||
</d:propstat> | ||
</d:response> | ||
<d:response> | ||
<d:href>/addressbooks/johndoe/contacts/alsonew</d:href> | ||
<d:propstat> | ||
<d:prop> | ||
<d:getetag>"0022-0022"</d:getetag> <!-- new uri/etag :. added --> | ||
</d:prop> | ||
<d:status>HTTP/1.1 200 OK</d:status> | ||
</d:propstat> | ||
</d:response> | ||
</d:multistatus> |
Oops, something went wrong.