[evolution-data-server/gnome-3-26] Misleading error for Google collection account without Calendar part



commit b34f0028f1520f9bf4597f4a2783f0c8a0da82c8
Author: Milan Crha <mcrha redhat com>
Date:   Wed Sep 20 14:15:59 2017 +0200

    Misleading error for Google collection account without Calendar part
    
    When a Google collection account had not enabled Calendar part,
    a misleading error about failed connection for the account with
    "Unknown error" detailed description could show up. The reason
    was that the Google backend didn't even try to connect, due to
    the disabled Calendar part, but it reported error, even without
    actual error message (hence the "Unknown error" text).

 src/modules/google-backend/module-google-backend.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/src/modules/google-backend/module-google-backend.c 
b/src/modules/google-backend/module-google-backend.c
index c33e869..115c48f 100644
--- a/src/modules/google-backend/module-google-backend.c
+++ b/src/modules/google-backend/module-google-backend.c
@@ -466,6 +466,8 @@ google_backend_authenticate_sync (EBackend *backend,
        if (e_source_collection_get_calendar_enabled (collection_extension) && calendar_url) {
                result = e_webdav_collection_backend_discover_sync (E_WEBDAV_COLLECTION_BACKEND (backend), 
calendar_url, NULL,
                        credentials, out_certificate_pem, out_certificate_errors, cancellable, error);
+       } else {
+               result = E_SOURCE_AUTHENTICATION_ACCEPTED;
        }
 
 #if GDATA_CHECK_VERSION(0,15,1)


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