Done.

** Description changed:

- It seems google-contacts.service file Google Contacts API (Gdata)
- https://www.google.com/m8/feeds/ which is NOT same as CardDav. As a
- result when some application( ex. Syncevolution) tries to access it
- (through oauth2), it gives “authentication failed error”.
+ [Impact]
+ Now that Yakkety has 3.22 and as upstream released the fix for 3.22 it became 
eligible for backporting to Yakkety.
+ 
+ [Test case]
+ After update, users should be able to sync contacts with google carddav 
server via syncevolution.
+ 
+ [Regression Potential] 
+ None.
+ 
+ 
+ 
+ 
+ [Original Description]
+ It seems google-contacts.service file Google Contacts API (Gdata) 
https://www.google.com/m8/feeds/ which is NOT same as CardDav. As a result when 
some application( ex. Syncevolution) tries to access it (through oauth2), it 
gives “authentication failed error”.
  
  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:
  
   “𝗣𝗥𝗢𝗣𝗙𝗜𝗡𝗗: 𝗡𝗲𝗼𝗻 𝗲𝗿𝗿𝗼𝗿 𝗰𝗼𝗱𝗲 𝟭: 𝟰𝟬𝟯 𝗙𝗼𝗿𝗯𝗶𝗱𝗱𝗲𝗻, 𝗺𝘂𝘀𝘁 𝗻𝗼𝘁 𝗿𝗲𝘁𝗿𝘆”
  
  Adding the carddav scope solves the issue.
  'https://www.googleapis.com/auth/carddav'
  
  evolution-data-server-online-accounts provides these files.
  
  Patch:
  
  --- a/modules/ubuntu-online-accounts/google-contacts.service.in.in
  +++ b/modules/ubuntu-online-accounts/google-contacts.service.in.in
  @@ -17,7 +17,7 @@
             <setting name="RedirectUri">https://localhost/</setting>
             <setting 
name="ClientId">796629365126-a2o58ak3l6nuk9bto6sr5aoku0vh5enc.apps.googleusercontent.com</setting>
             <setting name="ClientSecret">YVigZ5Po5p83_CrwQk-p5SwP</setting>
  -          <setting type="as" 
name="Scope">['https://www.googleapis.com/auth/userinfo.email','https://mail.google.com/','https://www.google.com/m8/feeds/','https://www.googleapis.com/auth/calendar']</setting>
  +          <setting type="as" 
name="Scope">['https://www.googleapis.com/auth/userinfo.email','https://mail.google.com/','https://www.google.com/m8/feeds/','https://www.googleapis.com/auth/calendar','https://www.googleapis.com/auth/carddav']]</setting>
           </group>
         </group>
       </group>
  
  Note:
  
  1. Ubuntu already enabled carddav in google developer console
  (lp:1433943)
  
  2. It requires to grant access twice; one for UOA and one for Evolution
  (server side). Then only it works
  (https://bugs.launchpad.net/ubuntu/+source/unity-control-
  center/+bug/1522360)

** Tags added: verification-done

** Tags removed: verification-done
** Tags added: verification-failed

** Description changed:

  [Impact]
- Now that Yakkety has 3.22 and as upstream released the fix for 3.22 it became 
eligible for backporting to Yakkety.
+ Now that Yakkety is going to have eds 3.22.6 and as upstream released the fix 
for 3.22.6 it automatically became eligible for backporting to Yakkety.
  
  [Test case]
  After update, users should be able to sync contacts with google carddav 
server via syncevolution.
  
- [Regression Potential] 
+ [Regression Potential]
  None.
- 
- 
- 
  
  [Original Description]
  It seems google-contacts.service file Google Contacts API (Gdata) 
https://www.google.com/m8/feeds/ which is NOT same as CardDav. As a result when 
some application( ex. Syncevolution) tries to access it (through oauth2), it 
gives “authentication failed error”.
  
  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:
  
   “𝗣𝗥𝗢𝗣𝗙𝗜𝗡𝗗: 𝗡𝗲𝗼𝗻 𝗲𝗿𝗿𝗼𝗿 𝗰𝗼𝗱𝗲 𝟭: 𝟰𝟬𝟯 𝗙𝗼𝗿𝗯𝗶𝗱𝗱𝗲𝗻, 𝗺𝘂𝘀𝘁 𝗻𝗼𝘁 𝗿𝗲𝘁𝗿𝘆”
  
  Adding the carddav scope solves the issue.
  'https://www.googleapis.com/auth/carddav'
  
  evolution-data-server-online-accounts provides these files.
  
  Patch:
  
  --- a/modules/ubuntu-online-accounts/google-contacts.service.in.in
  +++ b/modules/ubuntu-online-accounts/google-contacts.service.in.in
  @@ -17,7 +17,7 @@
             <setting name="RedirectUri">https://localhost/</setting>
             <setting 
name="ClientId">796629365126-a2o58ak3l6nuk9bto6sr5aoku0vh5enc.apps.googleusercontent.com</setting>
             <setting name="ClientSecret">YVigZ5Po5p83_CrwQk-p5SwP</setting>
  -          <setting type="as" 
name="Scope">['https://www.googleapis.com/auth/userinfo.email','https://mail.google.com/','https://www.google.com/m8/feeds/','https://www.googleapis.com/auth/calendar']</setting>
  +          <setting type="as" 
name="Scope">['https://www.googleapis.com/auth/userinfo.email','https://mail.google.com/','https://www.google.com/m8/feeds/','https://www.googleapis.com/auth/calendar','https://www.googleapis.com/auth/carddav']]</setting>
           </group>
         </group>
       </group>
  
  Note:
  
  1. Ubuntu already enabled carddav in google developer console
  (lp:1433943)
  
  2. It requires to grant access twice; one for UOA and one for Evolution
  (server side). Then only it works
  (https://bugs.launchpad.net/ubuntu/+source/unity-control-
  center/+bug/1522360)

** Description changed:

  [Impact]
- Now that Yakkety is going to have eds 3.22.6 and as upstream released the fix 
for 3.22.6 it automatically became eligible for backporting to Yakkety.
+ Now that Yakkety is going to have eds 3.22.6 and as upstream released the fix 
for 3.22.6, it automatically became eligible for backporting to Yakkety.
  
  [Test case]
  After update, users should be able to sync contacts with google carddav 
server via syncevolution.
  
  [Regression Potential]
  None.
  
  [Original Description]
  It seems google-contacts.service file Google Contacts API (Gdata) 
https://www.google.com/m8/feeds/ which is NOT same as CardDav. As a result when 
some application( ex. Syncevolution) tries to access it (through oauth2), it 
gives “authentication failed error”.
  
  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:
  
   “𝗣𝗥𝗢𝗣𝗙𝗜𝗡𝗗: 𝗡𝗲𝗼𝗻 𝗲𝗿𝗿𝗼𝗿 𝗰𝗼𝗱𝗲 𝟭: 𝟰𝟬𝟯 𝗙𝗼𝗿𝗯𝗶𝗱𝗱𝗲𝗻, 𝗺𝘂𝘀𝘁 𝗻𝗼𝘁 𝗿𝗲𝘁𝗿𝘆”
  
  Adding the carddav scope solves the issue.
  'https://www.googleapis.com/auth/carddav'
  
  evolution-data-server-online-accounts provides these files.
  
  Patch:
  
  --- a/modules/ubuntu-online-accounts/google-contacts.service.in.in
  +++ b/modules/ubuntu-online-accounts/google-contacts.service.in.in
  @@ -17,7 +17,7 @@
             <setting name="RedirectUri">https://localhost/</setting>
             <setting 
name="ClientId">796629365126-a2o58ak3l6nuk9bto6sr5aoku0vh5enc.apps.googleusercontent.com</setting>
             <setting name="ClientSecret">YVigZ5Po5p83_CrwQk-p5SwP</setting>
  -          <setting type="as" 
name="Scope">['https://www.googleapis.com/auth/userinfo.email','https://mail.google.com/','https://www.google.com/m8/feeds/','https://www.googleapis.com/auth/calendar']</setting>
  +          <setting type="as" 
name="Scope">['https://www.googleapis.com/auth/userinfo.email','https://mail.google.com/','https://www.google.com/m8/feeds/','https://www.googleapis.com/auth/calendar','https://www.googleapis.com/auth/carddav']]</setting>
           </group>
         </group>
       </group>
  
  Note:
  
  1. Ubuntu already enabled carddav in google developer console
  (lp:1433943)
  
  2. It requires to grant access twice; one for UOA and one for Evolution
  (server side). Then only it works
  (https://bugs.launchpad.net/ubuntu/+source/unity-control-
  center/+bug/1522360)

** Tags removed: verification-failed
** Tags added: verification-needed

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to evolution-data-server in Ubuntu.
https://bugs.launchpad.net/bugs/1628792

Title:
  [SRU] Add carddav scope to google-contacts.service

Status in evolution-data-server package in Ubuntu:
  Fix Released
Status in evolution-data-server source package in Yakkety:
  Triaged

Bug description:
  [Impact]
  Now that Yakkety is going to have eds 3.22.6 and as upstream released the fix 
for 3.22.6, it automatically became eligible for backporting to Yakkety.

  [Test case]
  After update, users should be able to sync contacts with google carddav 
server via syncevolution.

  [Regression Potential]
  None.

  [Original Description]
  It seems google-contacts.service file Google Contacts API (Gdata) 
https://www.google.com/m8/feeds/ which is NOT same as CardDav. As a result when 
some application( ex. Syncevolution) tries to access it (through oauth2), it 
gives “authentication failed error”.

  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:

   “𝗣𝗥𝗢𝗣𝗙𝗜𝗡𝗗: 𝗡𝗲𝗼𝗻 𝗲𝗿𝗿𝗼𝗿 𝗰𝗼𝗱𝗲 𝟭: 𝟰𝟬𝟯 𝗙𝗼𝗿𝗯𝗶𝗱𝗱𝗲𝗻, 𝗺𝘂𝘀𝘁 𝗻𝗼𝘁 𝗿𝗲𝘁𝗿𝘆”

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

  evolution-data-server-online-accounts provides these files.

  Patch:

  --- a/modules/ubuntu-online-accounts/google-contacts.service.in.in
  +++ b/modules/ubuntu-online-accounts/google-contacts.service.in.in
  @@ -17,7 +17,7 @@
             <setting name="RedirectUri">https://localhost/</setting>
             <setting 
name="ClientId">796629365126-a2o58ak3l6nuk9bto6sr5aoku0vh5enc.apps.googleusercontent.com</setting>
             <setting name="ClientSecret">YVigZ5Po5p83_CrwQk-p5SwP</setting>
  -          <setting type="as" 
name="Scope">['https://www.googleapis.com/auth/userinfo.email','https://mail.google.com/','https://www.google.com/m8/feeds/','https://www.googleapis.com/auth/calendar']</setting>
  +          <setting type="as" 
name="Scope">['https://www.googleapis.com/auth/userinfo.email','https://mail.google.com/','https://www.google.com/m8/feeds/','https://www.googleapis.com/auth/calendar','https://www.googleapis.com/auth/carddav']]</setting>
           </group>
         </group>
       </group>

  Note:

  1. Ubuntu already enabled carddav in google developer console
  (lp:1433943)

  2. It requires to grant access twice; one for UOA and one for
  Evolution (server side). Then only it works
  (https://bugs.launchpad.net/ubuntu/+source/unity-control-
  center/+bug/1522360)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/evolution-data-server/+bug/1628792/+subscriptions

-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to     : desktop-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to