[libgdata] core: Refresh authoriser on receiving SOUP_STATUS_NOT_FOUND



commit 268397c7a3a033829cc413ef7329ab06f4594de6
Author: Saurav Agarwalla <saurav agarwalla92 gmail com>
Date:   Tue Jul 8 16:18:51 2014 +0530

    core: Refresh authoriser on receiving SOUP_STATUS_NOT_FOUND
    
    If the authorizer is not refreshed, PicasaWeb returns
    SOUP_STATUS_NOT_FOUND when we try to access a resource. This shouldn't
    be the case when the user is logged in.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=732890

 gdata/gdata-service.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/gdata/gdata-service.c b/gdata/gdata-service.c
index 61f959c..78600e2 100644
--- a/gdata/gdata-service.c
+++ b/gdata/gdata-service.c
@@ -739,7 +739,8 @@ _gdata_service_send_message (GDataService *self, SoupMessage *message, GCancella
         * Note that we have to re-process the message with the authoriser so that its authorisation headers 
get updated after the refresh
         * (bgo#653535). */
        if (message->status_code == SOUP_STATUS_UNAUTHORIZED ||
-           message->status_code == SOUP_STATUS_FORBIDDEN) {
+           message->status_code == SOUP_STATUS_FORBIDDEN ||
+           message->status_code == SOUP_STATUS_NOT_FOUND) {
                GDataAuthorizer *authorizer = self->priv->authorizer;
 
                if (authorizer != NULL && gdata_authorizer_refresh_authorization (authorizer, cancellable, 
NULL) == TRUE) {


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