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 778775 - Add carddav scope to google-contacts.service for Ubuntu online accounts
Add carddav scope to google-contacts.service for Ubuntu online accounts
Status: RESOLVED FIXED
Product: evolution-data-server
Classification: Platform
Component: Contacts
3.22.x (obsolete)
Other Linux
: Normal major
: ---
Assigned To: evolution-addressbook-maintainers
Evolution QA team
Depends on:
Blocks:
 
 
Reported: 2017-02-16 17:01 UTC by Khurshid Alam
Modified: 2017-02-20 14:14 UTC
See Also:
GNOME target: ---
GNOME version: 3.21/3.22


Attachments
add_carddav_scope_uoa.patch (1.38 KB, patch)
2017-02-16 17:01 UTC, Khurshid Alam
committed Details | Review

Description Khurshid Alam 2017-02-16 17:01:04 UTC
Created attachment 345967 [details] [review]
add_carddav_scope_uoa.patch

This bug was reported on launchpad https://bugs.launchpad.net/ubuntu/+source/evolution-data-server/+bug/1628792

Problem Description:

Google cardav scope ('https://www.googleapis.com/auth/carddav') is missing from contacts service file. After adding a google account in UOA, syncevolution can use that access token for carddav services. 

For example, running following command:

'''

SYNCEVOLUTION_DEBUG=1 syncevolution --print-databases –daemon=no\

loglevel=2 backend=carddav username=uoa:3,google-contacts\

syncURL=https://www.googleapis.com/.well-known/carddav

'''
gives following error:

 “
Comment 1 Khurshid Alam 2017-02-16 17:06:07 UTC
The bug description cut off...continuing.....

gives following error:
"PROFIND:" NEON error code 1: 403 Forbidden, must not retry"


Adding the carddav scope solves the issue. 'https://www.googleapis.com/auth/carddav'

I added a simple patch for example.
Comment 2 Milan Crha 2017-02-17 08:24:49 UTC
Thanks for a bug report and patch. I committed it to sources with the below change. Pity you didn't do this the last week, as it could reach also 3.22.5 release, the final in 3.22.x.

Created commit ce81845 in eds master (3.23.91+)
Comment 3 Khurshid Alam 2017-02-17 08:57:33 UTC
Thanks Milan. Yes, It seems I did missed it. I will check if Ubuntu wants to carry this patch for zesty (and eds-3.22.x).
Comment 4 Milan Crha 2017-02-20 14:14:42 UTC
I decided to release 3.22.6 after some time, thus:

Created commit d133dae in eds gnome-3-22 (3.22.6+)