RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1202372 - Discover and display all calendar shares associated with GOA Google account
Summary: Discover and display all calendar shares associated with GOA Google account
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: evolution-data-server
Version: 7.2
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: rc
: 7.2
Assignee: Milan Crha
QA Contact: Desktop QE
URL:
Whiteboard:
Depends On: 1174414
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-03-16 13:45 UTC by David Jaša
Modified: 2015-11-19 07:57 UTC (History)
4 users (show)

Fixed In Version: evolution-data-server-3.12.11-18.el7
Doc Type: Bug Fix
Doc Text:
Cause: GNOME Online Accounts (GOA) configured Google accounts added only the main user's Calendar Consequence: when users had configured multiple Google calendars, these were not recognized by the evolution-data-server automatically, thus not available for the user in UI Fix: detect all configured (and enabled) Google calendars for GOA-configured accounts Result: also custom user calendars are added and the user can use them
Clone Of:
Environment:
Last Closed: 2015-11-19 07:57:49 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
eds 3.12.11 patch (66.74 KB, patch)
2015-03-18 17:50 UTC, Milan Crha
no flags Details | Diff
eds 3.8.5 patch (68.20 KB, patch)
2015-03-18 17:55 UTC, Milan Crha
no flags Details | Diff


Links
System ID Private Priority Status Summary Last Updated
GNOME Bugzilla 663828 0 None None None Never
Red Hat Product Errata RHBA-2015:2226 0 normal SHIPPED_LIVE evolution bug fix and enhancement update 2015-11-19 08:37:43 UTC

Description David Jaša 2015-03-16 13:45:35 UTC
Description of problem:
When using Google calendars configured via Gnome Online Accounts, only default calendar is shown, other calendar shares must be added manually if user wishes to work with them via Evolution. It's quite tedious, manually-added shares won't get associated with the google account and they won't go automatically when removed on the server. To sum up, omission of non-default calendar shares IMO defeats purpose of g-o-a integration - just log in to the account and have access to everything within an account configured by g-o-a.

Version-Release number of selected component (if applicable):
evolution-data-server-3.8.5-34.el7.x86_64
gnome-online-accounts-3.8.5-14.el7.x86_64

How reproducible:
always

Steps to Reproduce:
1. add google account to Gnome Online Accounts
2. go to Evolution calendar
3. watch for shares under the online account name

Actual results:
just the default calendar is displayed

Expected results:
all calendar shares are displayed under the GOA account name

Additional info:

Comment 2 Milan Crha 2015-03-16 14:40:59 UTC
Thanks for a bug report. Here [1] is a corresponding upstream bug. The change should be done upstream first, then possibly backported to the rebased version of evolution-data-server.

[1] https://bugzilla.gnome.org/show_bug.cgi?id=663828

Comment 3 Milan Crha 2015-03-18 17:50:38 UTC
Created attachment 1003349 [details]
eds 3.12.11 patch

Here's a backport of the upstream evolution-data-server patch for 3.12.11. Let's depends with this on the rebase.

Comment 4 Milan Crha 2015-03-18 17:55:52 UTC
Created attachment 1003354 [details]
eds 3.8.5 patch

And here's a patch for 3.8.5 of eds, for those whom do not want to wait for the rebase. I made a test build with it, which is available for download here [1]. It has some oddities, like when a Google account is added into GOA then evolution-data-server recognizes new calendars, but they may not always be populated straight away, thus it's required to restart background processes (basically the machine for lazy people like me), to get it fully working. I'm not going to spend any time on it, because the 3.12.11 doesn't do this (or I didn't notice it at least).

[1] https://people.gnome.org/~mcrha/rh1202372/

Comment 5 Milan Crha 2015-05-05 16:26:19 UTC
By the way, I was just pointed into the Google settings for the list of "discovery-available calendars" for CalDAV. That can be found at:
https://www.google.com/calendar/syncselect

as was answered at:
http://stackoverflow.com/questions/25669144/google-caldav-access-to-shared-calendars

to which I've got a link to from Erick, a gnome-calendar developer.

Comment 6 Milan Crha 2015-05-11 15:32:28 UTC
I made one more update in evolution-data-server, due to one change I noticed with the calendar discovery password (OAuth token) provide.

Comment 8 Milan Crha 2015-05-14 08:44:13 UTC
One more update in this regard, evolution-data-server-3.12.11-5, to have these steps working flawlessly (for company calendars):

a) gnome-control-center -> Online Accounts -> Add Google account
b) a page with Google login is opened, I filled in:
    User name: mcrha
    Password:  [left blank]
   then pressed login. That redirected me to saml.redhat.com.
c) on the SAML page enter my login: mcrha, password (pin + token)
   - I'm redirected back to the Google page where I'm allowing
   access to certain Google services to the GNOME project.
   After this the GOA account has its OAuth2 token.
d) evolution(-data-server) got the change and added enabled parts
   into the sources;
   * Mail fails with "IMAP disable" - bad luck, known issue
   * other services fail with "OAuth 2 authentication not supported"
   * Calendar (using CalDAV with the OAuth2 token, without giving my
     private phone number to the Google) works, I see my calendars
     in the Evolution

The change in 3.12.11-5 of eds was to not fail with authentication sometimes.

Comment 9 Milan Crha 2015-05-20 18:13:14 UTC
Yet another update for this bug report. This time should fix also the crash you experienced on the evolution-source-registry start. I managed to reproduce it with git master of evolution-data-server and backported the related parts here.

Comment 10 Jiri Koten 2015-05-21 15:35:00 UTC
There is an issue that evolution resets the colours of calendars on restart. It should prefer local colours if set.

Comment 11 Milan Crha 2015-05-21 16:21:55 UTC
(In reply to Jiri Koten from comment #10)
> There is an issue that evolution resets the colours of calendars on restart.
> It should prefer local colours if set.

Fixed for Google and ownCloud discovered sources in:
evolution-data-server-3.12.11-7.el7

Comment 12 Jiri Koten 2015-05-26 11:32:22 UTC
(In reply to Milan Crha from comment #11)
> (In reply to Jiri Koten from comment #10)
> > There is an issue that evolution resets the colours of calendars on restart.
> > It should prefer local colours if set.
> 
> Fixed for Google and ownCloud discovered sources in:
> evolution-data-server-3.12.11-7.el7

Unfortunately not, colours still get reset in evolution-data-server-3.12.11-9.el7

Comment 13 Milan Crha 2015-05-26 12:05:58 UTC
(In reply to Jiri Koten from comment #12)
> Unfortunately not, colours still get reset in
> evolution-data-server-3.12.11-9.el7

Ehm, you are right. Improper testing on my side. The ownCloud backend works as it should, while the Google backend doesn't. There was a fault in the new-source recognition, the Google backend thought that every discovered source was new.

I'll include the right change in the evolution-data-server-3.12.11-10.

Comment 14 Milan Crha 2015-06-11 12:53:57 UTC
I added one more little change into the package. it may not influence many things, but some corner cases only. The change is backported from the recent upstream changes.

Comment 15 Milan Crha 2015-06-12 09:02:03 UTC
To properly cover also in-evolution configured Google accounts with enabled Contacts/Calendars, a change from an upstream bug [1] was needed, thus I added it into the sources. Without it the calendars are not shown at all for Google accounts configured directly in the Evolution with checked "Add also Calendars" at the end of the new account wizard.

Comment 16 Milan Crha 2015-06-12 09:03:19 UTC
[1] https://bugzilla.gnome.org/show_bug.cgi?id=750148

Comment 17 Milan Crha 2015-07-07 14:31:58 UTC
I found another little glitch in the git master version [1], which is applicable here as well, thus I backported it.

[1] https://git.gnome.org/browse/evolution-data-server/commit/?id=0b20fce0b4444

Comment 20 errata-xmlrpc 2015-11-19 07:57:49 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://rhn.redhat.com/errata/RHBA-2015-2226.html


Note You need to log in before you can comment on or make changes to this bug.