Commit 45866245 authored by Milan Crha's avatar Milan Crha

[CalDAV/CardDAV] Can add component to local cache with incomplete info

When a component/contact is loaded from the server when it's not part
of the local cache (which can happen for example with meeting invitations),
then the fetched object was stored without the href in the local cache,
which made it impossible to edit the object later (it resulted
in an "Invalid Object" error).
parent 0a093c2f
......@@ -1038,6 +1038,8 @@ ebb_carddav_load_contact_sync (EBookMetaBackend *meta_backend,
g_propagate_error (&local_error, EDB_ERROR_EX (E_DATA_BOOK_STATUS_OTHER_ERROR, _("Server didn’t return object’s ETag")));
else
g_propagate_error (&local_error, EDB_ERROR_EX (E_DATA_BOOK_STATUS_OTHER_ERROR, _("Received object is not a valid vCard")));
} else if (out_extra) {
*out_extra = g_strdup (href);
}
}
......
......@@ -1194,6 +1194,8 @@ ecb_caldav_load_component_sync (ECalMetaBackend *meta_backend,
g_propagate_error (&local_error, EDC_ERROR_EX (InvalidObject, _("Server didn’t return object’s ETag")));
else
g_propagate_error (&local_error, EDC_ERROR (InvalidObject));
} else if (out_extra) {
*out_extra = g_strdup (href);
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment