[evolution/gnome-3-30] Free/Busy lookup for authenticated URLs not re-tried
- From: Milan Crha <mcrha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution/gnome-3-30] Free/Busy lookup for authenticated URLs not re-tried
- Date: Tue, 9 Oct 2018 14:18:05 +0000 (UTC)
commit a9852b1450c75b7e176007835ce60d924fb48f41
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]