evolution-data-server r10024 - trunk/servers/groupwise



Author: psankar
Date: Mon Feb  2 08:57:22 2009
New Revision: 10024
URL: http://svn.gnome.org/viewvc/evolution-data-server?rev=10024&view=rev

Log:
2009-02-02  Sankar P  <psankar novell com>

	** Part of fix for bnc bug #470143

	* servers/groupwise/e-gw-container.c:
	Handle a broken server response with
	GroupWise 7.x server

Modified:
   trunk/servers/groupwise/ChangeLog
   trunk/servers/groupwise/e-gw-container.c

Modified: trunk/servers/groupwise/e-gw-container.c
==============================================================================
--- trunk/servers/groupwise/e-gw-container.c	(original)
+++ trunk/servers/groupwise/e-gw-container.c	Mon Feb  2 08:57:22 2009
@@ -205,25 +205,26 @@
 	/* retrieve the name */
 	subparam = soup_soap_parameter_get_first_child_by_name (param, "name");
 	if (!subparam) {
-		g_warning (G_STRLOC ": found container with no name");
-		return FALSE;
+			/* GroupWise 7.X servers does not return the name field. 
+			This is not an issue with Bonsai 8.X . So, keep this code for 
+			working well with the broken GW 7.X series */
+			e_gw_container_set_name (container, "");
+	} else {
+			value = soup_soap_parameter_get_string_value (subparam);
+			e_gw_container_set_name (container, (const char *) value);
+			g_free (value);
 	}
 
-	value = soup_soap_parameter_get_string_value (subparam);
-	e_gw_container_set_name (container, (const char *) value);
-	g_free (value);
-
 	/* retrieve the ID */
 	subparam = soup_soap_parameter_get_first_child_by_name (param, "id");
 	if (!subparam) {
-		g_warning (G_STRLOC ": found container with no ID");
-		return FALSE;
+			e_gw_container_set_id (container, "");
+	} else {
+			value = soup_soap_parameter_get_string_value (subparam);
+			e_gw_container_set_id (container, (const char *) value);
+			g_free (value);
 	}
 
-	value = soup_soap_parameter_get_string_value (subparam);
-	e_gw_container_set_id (container, (const char *) value);
-	g_free (value);
-
 	/* retrieve the parent container id */
 	subparam = soup_soap_parameter_get_first_child_by_name (param, "parent");
 	if (!subparam) {



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]