[evolution-ews/gnome-3-8] Handle absence of ETag (cherry picked from commit 8081eaca990da510a69bc3525fbac39afb26170a)



commit 94f4772f16c9683f69e58a459f73efa88c0a6699
Author: David Woodhouse <David Woodhouse intel com>
Date:   Thu May 2 20:55:04 2013 +0100

    Handle absence of ETag
    (cherry picked from commit 8081eaca990da510a69bc3525fbac39afb26170a)

 src/addressbook/e-book-backend-ews.c |    2 +-
 src/server/e-ews-connection.c        |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/addressbook/e-book-backend-ews.c b/src/addressbook/e-book-backend-ews.c
index 458fb12..576d374 100644
--- a/src/addressbook/e-book-backend-ews.c
+++ b/src/addressbook/e-book-backend-ews.c
@@ -1991,7 +1991,7 @@ ebews_start_gal_sync (gpointer data)
                if (!ret)
                        goto exit;
 
-               e_book_backend_sqlitedb_set_key_value (priv->summary, priv->folder_id, "etag", etag, NULL);
+               e_book_backend_sqlitedb_set_key_value (priv->summary, priv->folder_id, "etag", etag?:"", 
NULL);
 
                seq = g_strdup_printf ("%"G_GUINT32_FORMAT, full->seq);
                ret = e_book_backend_sqlitedb_set_key_value (priv->summary, priv->folder_id, "seq", seq, 
&error);
diff --git a/src/server/e-ews-connection.c b/src/server/e-ews-connection.c
index dfde5c1..e05e90d 100644
--- a/src/server/e-ews-connection.c
+++ b/src/server/e-ews-connection.c
@@ -2697,7 +2697,7 @@ e_ews_connection_get_oal_detail (EEwsConnection *cnc,
                return;
        }
 
-       if (etag)
+       if (etag && *etag)
                soup_message_headers_append (soup_message->request_headers,
                                             "If-None-Match", etag);
 


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