[Bug 20096] tp_connection_get_contacts_by_id handles TP_ERROR_INVALID_HANDLE as a fatal error
bugzilla-daemon at freedesktop.org
bugzilla-daemon at freedesktop.org
Fri Feb 13 16:17:49 CET 2009
http://bugs.freedesktop.org/show_bug.cgi?id=20096
Simon McVittie <simon.mcvittie at collabora.co.uk> changed:
What |Removed |Added
----------------------------------------------------------------------------
URL| |http://git.collabora.co.uk/?
| |p=user/smcv/telepathy-glib-
| |smcv.git;a=shortlog;h=refs/h
| |eads/contacts
--- Comment #2 from Simon McVittie <simon.mcvittie at collabora.co.uk> 2009-02-13 07:17:49 PST ---
Fixed in a branch, awaiting review.
diff --git a/telepathy-glib/contact.c b/telepathy-glib/contact.c
index 7ddfc2e..dd1f346 100644 (file)
--- a/telepathy-glib/contact.c
+++ b/telepathy-glib/contact.c
@@ -894,7 +894,7 @@ contacts_context_fail (ContactsContext *c,
* valid (it may be empty), and @failed_id_errors will map the IDs
* that were not valid to a corresponding #GError (if the connection manager
* complies with the Telepathy spec, it will have domain %TP_ERRORS and code
- * %TP_ERROR_NOT_AVAILABLE).
+ * %TP_ERROR_INVALID_HANDLE).
*
* If an unrecoverable error occurs (for instance, if @connection
* becomes disconnected) the whole operation fails, and no contacts
@@ -2050,7 +2050,8 @@ contacts_requested_one_handle (TpConnection *connection,
c->next_index++;
}
else if (error->domain == TP_ERRORS &&
- (error->code == TP_ERROR_NOT_AVAILABLE ||
+ (error->code == TP_ERROR_INVALID_HANDLE ||
+ error->code == TP_ERROR_NOT_AVAILABLE ||
error->code == TP_ERROR_INVALID_ARGUMENT))
{
g_hash_table_insert (c->request_errors,
@@ -2113,7 +2114,8 @@ contacts_requested_handles (TpConnection *connection,
}
}
else if (error->domain == TP_ERRORS &&
- (error->code == TP_ERROR_NOT_AVAILABLE ||
+ (error->code == TP_ERROR_INVALID_HANDLE ||
+ error->code == TP_ERROR_NOT_AVAILABLE ||
error->code == TP_ERROR_INVALID_ARGUMENT))
{
/* One of the strings is bad. We don't know which, so split them. */
--
Configure bugmail: http://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the telepathy-bugs
mailing list