[evolution] Free/Busy lookup for authenticated URLs not re-tried
- From: Milan Crha <mcrha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution] Free/Busy lookup for authenticated URLs not re-tried
- Date: Tue, 9 Oct 2018 14:17:01 +0000 (UTC)
commit f47130b53c636a3433005f65b08fe44967338c70
Author: Milan Crha <mcrha redhat com>
Date: Tue Oct 9 16:15:15 2018 +0200
Free/Busy lookup for authenticated URLs not re-tried
When GIO read fails with "permission denied" error the code should
re-try using libsoup, but this was not done due to incorrect
error code check. This change adds an error code which is
returned these days, but also keeps the previous value, just in case.
Related to https://gitlab.gnome.org/GNOME/evolution/issues/168
src/calendar/gui/e-meeting-store.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/src/calendar/gui/e-meeting-store.c b/src/calendar/gui/e-meeting-store.c
index ae5b1f5c0f..724c1cd62b 100644
--- a/src/calendar/gui/e-meeting-store.c
+++ b/src/calendar/gui/e-meeting-store.c
@@ -2039,7 +2039,8 @@ start_async_read (const gchar *uri,
istream = G_INPUT_STREAM (g_file_read (file, NULL, &error));
- if (g_error_matches (error, SOUP_HTTP_ERROR, SOUP_STATUS_UNAUTHORIZED)) {
+ if (g_error_matches (error, SOUP_HTTP_ERROR, SOUP_STATUS_UNAUTHORIZED) ||
+ g_error_matches (error, G_IO_ERROR, G_IO_ERROR_PERMISSION_DENIED)) {
download_with_libsoup (uri, qdata);
g_object_unref (file);
g_error_free (error);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]