Created attachment 998165 [details]
Description of problem:
Sync google calendars to evolution using CalDav because of 2factor not working well with libgdata ()
The calendar is correctly set up, because the events are viewable in evolution. However, every so often, I am prompted for authentication. Furthermore, it uses the wrong username for authentication.
Let's say that my gmail is HDresden and my linux username is moymoy.
Evolution will periodically prompt me for authentication to log moymoy into google servers.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Add new Calendar
2. Select CalDav
3. Enter gmail username and email
4. Click Choose calendar from list
6. Enter App specific password
7. Select calendar
8. Add calendar
Calendars will sync correctly, but evolution will periodically ask for authentication. It will wrongly try to authenticate the unix username to the caldav host.
Calendar syncs correctly, and that's the end of it.
Thanks for a bug report. Evolution doesn't get the user name out of nowhere, it is set in the Calendar Properties, field "User", just above Find Calendars button. You should correct it to the right one. It is prefilled as a local account login when entering a new Calendar, but that doesn't mean it should be used, as you see.
(In reply to Milan Crha from comment #1)
> Thanks for a bug report. Evolution doesn't get the user name out of nowhere,
> it is set in the Calendar Properties, field "User", just above Find
> Calendars button. You should correct it to the right one. It is prefilled as
> a local account login when entering a new Calendar, but that doesn't mean it
> should be used, as you see.
I saw that it was prefilled with my linux username right away. I corrected it to my google account.
My point is that I filled it with the correct username. I correctly authenticate to Google, and the calendar is sync'd up to Evolution through calDav. All my events are now visible through Evolution. And changes made through Evolution are reflected on the web.
But every now and then, I get prompted again for authentication, but it's with the wrong username. I just click cancel over and over until it stops bothering me.
So I set the calendar up again after a few restarts and there doesn't seem to be a problem anymore.
It's strange because it was so reproducible before. Not to mention everything was syncing just fine even when I was experiencing the problem.
I'll just chalk it up to overall glitchiness since the reason I had to restart a couple of times was because a few of my keyboard shortcuts stopped working (configured through settings -> keyboard -> shortcuts).
(In reply to somethingsome2000+redhat from comment #2)
> My point is that I filled it with the correct username. I correctly
> authenticate to Google, and the calendar is sync'd up to Evolution through
> calDav. All my events are now visible through Evolution. And changes made
> through Evolution are reflected on the web.
Hmm, that's really odd. I do not think I saw anything like that before. Did you create a Google account in GNOME Online Accounts too, or everything was done directly in Evolution?
Both. I first set up my Google account through GNOME. I then found out that Evolution was only syncing one of my calendars, so I tried adding the rest. That's when it happened.
It can be that you face . I wasn't able to reproduce it myself.