D27062: Handle 410 Gone errors during Calendar sync
Gabriel Souza Franco
noreply at phabricator.kde.org
Fri Jan 31 12:36:12 GMT 2020
gbs created this revision.
gbs added a reviewer: mlaurent.
Herald added a project: KDE PIM.
Herald added a subscriber: kde-pim.
gbs requested review of this revision.
REVISION SUMMARY
According to https://developers.google.com/calendar/v3/errors, the server can return a 410 error if the syncToken or updatedMin is too old.
There is already code to preemptively request a full sync, but specifically for the "Contacts" calendar the server-side limit is much lower than usual, generating these errors and preventing sync.
TEST PLAN
- Set last sync for "Contacts" calendar to five days ago.
- Observe 410 error being returned.
- Verify that a full sync is performed.
REPOSITORY
R477 KGAPI Library
BRANCH
release/19.12
REVISION DETAIL
https://phabricator.kde.org/D27062
AFFECTED FILES
src/calendar/eventfetchjob.cpp
src/core/job.cpp
To: gbs, mlaurent
Cc: kde-pim, fbampaloukas, dcaliste, dvasin, rodsevich, winterz, vkrause, mlaurent, knauss, dvratil
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-pim/attachments/20200131/c2bc8aa5/attachment.html>
More information about the kde-pim
mailing list