After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 732890 - Refresh authoriser on receiving SOUP_STATUS_NOT_FOUND
Refresh authoriser on receiving SOUP_STATUS_NOT_FOUND
Status: RESOLVED FIXED
Product: libgdata
Classification: Platform
Component: General
git master
Other Linux
: Normal normal
: ---
Assigned To: libgdata-maint
libgdata-maint
Depends on:
Blocks:
 
 
Reported: 2014-07-08 10:47 UTC by Saurav Agarwalla
Modified: 2014-07-09 03:52 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
core: Refresh authoriser on receiving SOUP_STATUS_NOT_FOUND (1.31 KB, patch)
2014-07-08 10:59 UTC, Saurav Agarwalla
committed Details | Review
Log (1.95 KB, text/x-log)
2014-07-09 03:52 UTC, Saurav Agarwalla
  Details

Description Saurav Agarwalla 2014-07-08 10:47:36 UTC
In gdata-service.c:741, we should refresh authorization if we get SOUP_STATUS_NOT_FOUND because PicasaWeb returns SOUP_STATUS_NOT_FOUND when we try to access a resource, if the authorizer is not refreshed.
Comment 1 Saurav Agarwalla 2014-07-08 10:59:32 UTC
Created attachment 280134 [details] [review]
core: Refresh authoriser on receiving SOUP_STATUS_NOT_FOUND
Comment 2 Philip Withnall 2014-07-08 19:21:19 UTC
Review of attachment 280134 [details] [review]:

Do you have an example of this happening? e.g. A debug log with LIBGDATA_DEBUG=3 G_MESSAGES_DEBUG=all. Just for the record.

The patch looks good though. Thanks!
Comment 3 Philip Withnall 2014-07-08 19:22:33 UTC
Attachment 280134 [details] pushed as 268397c - core: Refresh authoriser on receiving SOUP_STATUS_NOT_FOUND
Comment 4 Saurav Agarwalla 2014-07-09 03:50:58 UTC
(In reply to comment #2)

> Do you have an example of this happening? e.g. A debug log with
> LIBGDATA_DEBUG=3 G_MESSAGES_DEBUG=all. Just for the record.

Yes. I got 'No photo found' error when using gdata_service_query_single_entry () for Picasa Web photos. On debugging, I found that this was the reason.

Thanks for the commit, Philip.
Comment 5 Saurav Agarwalla 2014-07-09 03:52:30 UTC
Created attachment 280202 [details]
Log

I have added the relevant part of log as attachment for the sake of completeness.