syncevolution/test/testcases/eds_contact.vcf.google.tem.patch
Patrick Ohly 27af370ac2 WebDAV: do not mangle UID when sending items
The WebDAV backends contained a hack where the UID inside the data was forced
to be identical to the resource name. This is wrong for items created by us
via POST (because the server may choose a resource name != UID) or by some
other entity (where we have no idea how the resource name got chosen).

This commit removes the hack. Testing must be updated to pass correct data
with the same UID as on the server when updating an item, because the backend
will no longer ensure that and changing the UID of a resource gets rejected by
some servers.

The hack was introduced for peers which do not store the UID (for example, a
vCard or iCalendar 1.0 based SyncML client). A better solution must be found,
probably involving the Synthesis engine and its read/update/write cycle.
2014-05-02 16:43:44 +02:00

58 lines
2 KiB
Diff

@@ -36,7 +36,7 @@
VERSION:3.0
UID:unique-id-user12
NICKNAME:user12
-NOTE:ampersand entity &amp\; less-than entity &lt\;
+NOTE:ampersand entity &amp less-than entity &lt
FN:xml entities
N:xml;entities;;;
X-EVOLUTION-FILE-AS:xml\, entities
@@ -97,9 +97,9 @@
mailing address)\n- long lines (in this note)\n- special characters (in
this note)\n- tabs (in this note)\n\nVery long line\, very very long th
is time... still not finished... blah blah blah blah blah 1 2 3 4 5 6 7
- 8 9 10 11 12 13 14 15 16\n\ncomma \,\ncolon :\nsemicolon \;\nbackslash
+ 8 9 10 11 12 13 14 15 16\n\ncomma \,\ncolon :\nbackslash
\\\n\nThe same\, in the middle of a line:\ncomma \, comma\ncolon : col
- on\nsemicolon \; semicolon\nbackslash \\ backslash\n\nA tab tab done\n
+ on\nbackslash \\ backslash\n\nA tab tab done\n
line starts with tab
FN:Umlaut Ä Ö Ü ß
N:Ü;Ä;Ö;Umlaut;ß
@@ -124,7 +124,7 @@
UID:unique-id-user8
NICKNAME:user8
X-EVOLUTION-SPOUSE:
-NOTE:Here are some special characters: comma \, colon : semicolon \;
+NOTE:Here are some special characters: comma \, colon : no semicolon
FN:special characters
N:characters;special;;;
X-EVOLUTION-FILE-AS:characters\, special
@@ -164,7 +164,7 @@
VERSION:3.0
URL:http://john.doe.com
TITLE:Senior Tester
-ORG:Test Inc.;Testing;test#1
+ORG:Test Inc.
ROLE:professional test case
X-EVOLUTION-MANAGER:John Doe Senior
X-EVOLUTION-ASSISTANT:John Doe Junior
@@ -177,7 +177,7 @@
X-EVOLUTION-SPOUSE:Joan Doe
NOTE:This is a test case which uses almost all Evolution fields.
FN:John Doe
-N:Doe;John;;;
+N:NewDoe;John;;;
X-EVOLUTION-FILE-AS:Doe\, John
CATEGORIES:TEST
X-EVOLUTION-BLOG-URL:web log
@@ -297,7 +297,7 @@
UID:unique-id-user6
NICKNAME:user6
X-EVOLUTION-SPOUSE:
-NOTE:The first name is "First \; special \;".
+NOTE:The first name is "First <semicolon> special <semicolon>".
FN:Mr. First \; special \; middle Last
N:Last;First \; special \;;middle;Mr.;
X-EVOLUTION-FILE-AS:Last\, First \; special \;