Re: [Evolution] More authentication headaches

2016-09-15 Thread Milan Crha
On Thu, 2016-09-15 at 12:45 +0100, Patrick O'Callaghan wrote:
> < Daily Limit for Unauthenticated Use Exceeded. Continued use
> requires signup.

Hi,
could it be the updated evolution-data-server finally broke things,
instead of fixed them?

The calendar request has missing OAuth2 token, which resulted in the
403 Forbidden response, which makes sense, because that entry point
requires OAuth2. The error of "Daily Limit for Unauthenticated Use
Exceeded" I quoted above is just an indication that it had been tried
too many times without the token. I do not know why this would break so
much.

> Finally, why am I posting this via webmail? Because when I try to
> post using my normal account (*not* the one which has been giving me
> the problems mentioned above), the sending process simply hangs. 

A backtrace of the hung evolution would be nice to have. Debuginfo only
for the evolution-data-server and evolution itself welcome. You can get
the backtrace with command like this:
   $ gdb --batch --ex "t a a bt" -pid=`pidof evolution` &>bt.txt
Please check the bt.txt for any private information, like passwords,
email address, server addresses,... I usually search for "pass" at
least (quotes for clarity only).

Nonetheless, it feels like this should be dealt with in a GNOME
bugzilla, as it looks like a bug to me.

> I was asked to authenticate the Gmail one, but not this one. Possibly
> because the address (p...@usb.ve) doesn't indicate Google directly so
> the setup wizard treats it differently, but that's speculation. 

That's correct, as the address isn't @gmail.com/@googlemail.com, then
the wizard doesn't know it's hosted by Google. You can try to start
with a Google address, then return back in the wizard and change it to
@usb.ve address. Or in the account properties after finishing the fake
Gmail account. But I'm uncertain whether it'll work from the UI.

> However this had been working correctly before I tried to reset the
> whole shebang. I speculate that enough had been left over from before
> I switched from GOA to direct OAuth2 to keep it working, but now it
> has lost the tokens and doesn't know how to get them back.

The main difference is that in GOA you start by specifying what account
type you are creating, in this case "Google", while in the Evolution
that cannot be done, everything is guessed and setup from the email
address, if possible. The 3.20.x also doesn't setup OAuth2 for the mail
account if you uncheck both Contacts and Calendar parts. This is
changed in the development version, where the OAuth2 is enabled for a
Google account even if the both checkboxes in the summary page are
unchecked.

As it's currently basically impossible to change these settings in the
UI, I suggest to edit the .source files in
   ~/.config/evolution/sources/
and change the Method in the [Authentication] section from (I guess)
'plain/password' to 'Google', aka from
   [Authentication]
   
   Method=plain/password
   

to
   [Authentication]
   
   Method=Google
   

Similar .source files can be in 
   ~/.cache/evolution/sources/

In any case, it'll be better to move to the GNOME bugzilla with both problems.
Bye,
Milan
___
evolution-list mailing list
evolution-list@gnome.org
To change your list options or unsubscribe, visit ...
https://mail.gnome.org/mailman/listinfo/evolution-list


Re: [Evolution] More authentication headaches

2016-09-15 Thread Patrick O'Callaghan
On Thu, 2016-09-15 at 15:26 +0200, Milan Crha wrote:
> On Thu, 2016-09-15 at 12:45 +0100, Patrick O'Callaghan wrote:
> > 
> > < Daily Limit for Unauthenticated Use Exceeded. Continued use
> > requires signup.
> 
>   Hi,
> could it be the updated evolution-data-server finally broke things,
> instead of fixed them?

Possibly, I hadn't considered that.

> The calendar request has missing OAuth2 token, which resulted in the
> 403 Forbidden response, which makes sense, because that entry point
> requires OAuth2. The error of "Daily Limit for Unauthenticated Use
> Exceeded" I quoted above is just an indication that it had been tried
> too many times without the token. I do not know why this would break so
> much.
> 
> > 
> > Finally, why am I posting this via webmail? Because when I try to
> > post using my normal account (*not* the one which has been giving me
> > the problems mentioned above), the sending process simply hangs. 
> 
> A backtrace of the hung evolution would be nice to have. Debuginfo only
> for the evolution-data-server and evolution itself welcome. You can get
> the backtrace with command like this:
>    $ gdb --batch --ex "t a a bt" -pid=`pidof evolution` &>bt.txt
> Please check the bt.txt for any private information, like passwords,
> email address, server addresses,... I usually search for "pass" at
> least (quotes for clarity only).

I'll do that if and when it hangs again.

> Nonetheless, it feels like this should be dealt with in a GNOME
> bugzilla, as it looks like a bug to me.

Agreed.

> > 
> > I was asked to authenticate the Gmail one, but not this one. Possibly
> > because the address (p...@usb.ve) doesn't indicate Google directly so
> > the setup wizard treats it differently, but that's speculation. 
> 
> That's correct, as the address isn't @gmail.com/@googlemail.com, then
> the wizard doesn't know it's hosted by Google. You can try to start
> with a Google address, then return back in the wizard and change it to
> @usb.ve address. Or in the account properties after finishing the fake
> Gmail account. But I'm uncertain whether it'll work from the UI.
> 
> > 
> > However this had been working correctly before I tried to reset the
> > whole shebang. I speculate that enough had been left over from before
> > I switched from GOA to direct OAuth2 to keep it working, but now it
> > has lost the tokens and doesn't know how to get them back.
> 
> The main difference is that in GOA you start by specifying what account
> type you are creating, in this case "Google", while in the Evolution
> that cannot be done, everything is guessed and setup from the email
> address, if possible. The 3.20.x also doesn't setup OAuth2 for the mail
> account if you uncheck both Contacts and Calendar parts. This is
> changed in the development version, where the OAuth2 is enabled for a
> Google account even if the both checkboxes in the summary page are
> unchecked.
> 
> As it's currently basically impossible to change these settings in the
> UI, I suggest to edit the .source files in
>    ~/.config/evolution/sources/
> and change the Method in the [Authentication] section from (I guess)
> 'plain/password' to 'Google', aka from
>    [Authentication]
>    
>    Method=plain/password
>    
> 
> to
>    [Authentication]
>    
>    Method=Google
>    
> 
> Similar .source files can be in 
>    ~/.cache/evolution/sources/
> 
> In any case, it'll be better to move to the GNOME bugzilla with both problems.

I edited the above files and now the usb.ve address can send (I'm using
it to post this), so I'll provisionally consider that problem fixed.
Nevertheless there should be more flexibility on the UI to indicate
when a mail domain is hosted by one of the well-known services (Yahoo
is another one). I'll post that on BZ as an RFE.

However the chamges to the *.sources files didn't fix the calendar
problem, so I'll take that to BZ separately.

poc
___
evolution-list mailing list
evolution-list@gnome.org
To change your list options or unsubscribe, visit ...
https://mail.gnome.org/mailman/listinfo/evolution-list


Re: [Evolution] More authentication headaches

2016-09-15 Thread Pete Biggs

> 
> I then fired up Evo again and created new mail accounts. I noticed
> that after creating my Gmail account (using the Evo wizard with the
> default settings) I was not asked for the password, but the account
> loaded anyway. However after a while Evo started saying:
> 
> Failed to connect 'Gmail'
> HTTP Error: Unauthorized

Did you also clear out the keyring of all passwords and authentication
tokens related to Evo (and/or Google)?

P.

___
evolution-list mailing list
evolution-list@gnome.org
To change your list options or unsubscribe, visit ...
https://mail.gnome.org/mailman/listinfo/evolution-list


Re: [Evolution] More authentication headaches

2016-09-15 Thread Milan Crha
On Wed, 2016-09-14 at 18:46 +0100, Patrick O'Callaghan wrote:
> I then fired up Evo again and created new mail accounts. I noticed
> that after creating my Gmail account (using the Evo wizard with the
> default settings) I was not asked for the password, but the account
> loaded anyway.

Hi,
it found the token in the keyring from the earlier time. Seahorse helps
to find it and eventually delete it, but I do not know whether I would
do it, because your test as a new user does pretty much the same.

> However after a while Evo started saying:
> 
> Failed to connect 'Gmail'
> HTTP Error: Unauthorized

The 'after a while' is an important detail for me. Does it also mean
that the email works for say an hour, then it starts failing? By the
way, is this error returned from the mail part or the calendar part?
You can try to log something from the mail with:
   $ CAMEL_DEBUG=imapx:io evolution
Search for the LOGIN command failure, which may eventually show also a
reason given by the Gmail server.

> Furthermore, my Google calendar (which *did* ask for the password
> first time round) simply doesn't load. Sometimes the same error
> message as above, sometimes not, but no calendar entries in either
> case.

To debug the calendar part run:
   $ CALDAV_DEBUG=all /usr/libexec/evolution-calendar-factory -w
then wait a bit (few seconds), thus the service is known to D-Bus, and
then open the evolution/calendar. Apart of a raw communication between
the client and the server, it also shows how many items are in the
cache and other CalDAV related information (the lines are usually
prefixed or contain 'CalDAV' string).

Usual procedure after load is that the CalDAV calendar checks for ctag
and if it doesn't match the one stored in
~/.cache/evolution/calendar/...
then it checks for changes, otherwise it does nothing. Could you try to
create an event in your main Google calendar, then right-click the
calendar and pick 'Refresh' from the context menu? The log will show a
PUT request, immediately followed by a GET request, then (as a response
for the Refresh) it will show the ctag check, which should change, due
to added event.
Bye,
Milan
___
evolution-list mailing list
evolution-list@gnome.org
To change your list options or unsubscribe, visit ...
https://mail.gnome.org/mailman/listinfo/evolution-list


Re: [Evolution] Evolution 3.16.5 Calendar Problem

2016-09-15 Thread Matteo Limardo
Hello Milan,

thank you for your reply and help, i tried to connect my server with
standard protocol and seems working better although i'm not sure i will
keep this groupwise if evolution is not going to have the plugin.

Thanks again for your help!


--
Matteo Limardo
*Skype: matteo.limardo*
*Linkedin: matteolimardo*


On 2 September 2016 at 12:13, Milan Crha  wrote:

> On Thu, 2016-09-01 at 16:25 +0200, Matteo Limardo wrote:
> > thank you very much for adding me to this mailing list.
> > I would like to bring up a problem that i have with the calendar:
> > basically when i accept a recurring meeting, it creates an infinite
> > number of events starting from the actual event, my email's protocol
> > is GroupWise.
>
> Hi,
> I'm sorry to say, but the evolution-groupwise plugin is unmaintained
> for years. I do not recall doing with it anything serious myself, it
> was managed by Novell folks. If I recall correctly, the GroupWise
> doesn't have recurrences as such, thus they "unwind" the recurrence
> rules to individual events in the plugin. Nonetheless, I only think
> this, I do not know this for sure.
>
> Try to connect to your server by other means, because newer versions of
> the evolution do not have native GroupWise plugin (and to be honest,
> I'm surprised that you have any working with the 3.16). Or, do you
> connect to the server with a standard protocol, like CalDAV, instead?
> Bye,
> Milan
> ___
> evolution-list mailing list
> evolution-list@gnome.org
> To change your list options or unsubscribe, visit ...
> https://mail.gnome.org/mailman/listinfo/evolution-list
>
___
evolution-list mailing list
evolution-list@gnome.org
To change your list options or unsubscribe, visit ...
https://mail.gnome.org/mailman/listinfo/evolution-list


Re: [Evolution] More authentication headaches

2016-09-15 Thread Patrick O'Callaghan
(Sorry for the awkward quoting but I'm having to use Google webmail to post
this, see the end of the post for why this is so).

On 15 September 2016 at 11:20, Milan Crha  wrote:

> On Wed, 2016-09-14 at 18:46 +0100, Patrick O'Callaghan wrote:
> > I then fired up Evo again and created new mail accounts. I noticed
> > that after creating my Gmail account (using the Evo wizard with the
> > default settings) I was not asked for the password, but the account
> > loaded anyway.
>
> Hi,
> it found the token in the keyring from the earlier time. Seahorse helps
> to find it and eventually delete it, but I do not know whether I would
> do it, because your test as a new user does pretty much the same.
>
> > However after a while Evo started saying:
> >
> > Failed to connect 'Gmail'
> > HTTP Error: Unauthorized
>
> The 'after a while' is an important detail for me. Does it also mean
> that the email works for say an hour, then it starts failing?


This seems to be a moving target. When I reported it, the error appeared as
soon as I started Evo. Now, after I've reset everything for a second time
and followed Pete's advice about removing entries from the keyring, it's
not appearing for mail, but still appears for calendar.


> By the
> way, is this error returned from the mail part or the calendar part?
>

 Mail, but right now it has gone.

You can try to log something from the mail with:
>$ CAMEL_DEBUG=imapx:io evolution
> Search for the LOGIN command failure, which may eventually show also a
> reason given by the Gmail server.


Can't see anything in the log (captured for a whole session which had the
error). The text of the error isn't in the log and the IMAP authentication
appears to be working, despite the error message.


> > Furthermore, my Google calendar (which *did* ask for the password
> > first time round) simply doesn't load. Sometimes the same error
> > message as above, sometimes not, but no calendar entries in either
> > case.
>
> To debug the calendar part run:
>$ CALDAV_DEBUG=all /usr/libexec/evolution-calendar-factory -w
> then wait a bit (few seconds), thus the service is known to D-Bus, and
> then open the evolution/calendar. Apart of a raw communication between
> the client and the server, it also shows how many items are in the
> cache and other CalDAV related information (the lines are usually
> prefixed or contain 'CalDAV' string).
>
 I get a variety of errors:


The task list backend servicing "Personal" has quit unexpectedly.Some
of your tasks may not be available until Evolution is restarted.

Error creating view for the memo list 'Personal'Cannot invoke method;
proxy is for a well-known name without an owner and proxy was
constructed with the G_DBUS_PROXY_FLAGS_DO_NOT_AUTO_START flag

Usual procedure after load is that the CalDAV calendar checks for ctag
> and if it doesn't match the one stored in
> ~/.cache/evolution/calendar/...
> then it checks for changes, otherwise it does nothing. Could you try to
> create an event in your main Google calendar, then right-click the
> calendar and pick 'Refresh' from the context menu? The log will show a
> PUT request, immediately followed by a GET request, then (as a response
> for the Refresh) it will show the ctag check, which should change, due
> to added event.
>

Got this:
Event cannot be edited, because the selected calendar is read only

I then deleted the calendar and created a new one pointing at my Google
calendar. Same errors, calendar is not synced with the Google one, and I
wasn't asked for authentication. The log shows:

> OPTIONS /caldav/v2/pocallaghan%40gmail.com/events/ HTTP/1.1
> Soup-Debug-Timestamp: 1473937214
> Soup-Debug: SoupSessionSync 1 (0x55b1e1e41140), SoupMessage 1
(0x7fa2440088e0), SoupSocket 1 (0x7fa244001b90)
> Host: apidata.googleusercontent.com
> User-Agent: Evolution/3.20.5
> Connection: close
> Accept-Language: en-gb, en;q=0.9

< HTTP/1.1 403 Forbidden< Soup-Debug-Timestamp: 1473937214<
Soup-Debug: SoupMessage 1 (0x7fa2440088e0)< Vary: X-Origin<
Content-Type: text/html; charset=UTF-8< Date: Thu, 15 Sep 2016
11:00:14 GMT< Expires: Thu, 15 Sep 2016 11:00:14 GMT< Cache-Control:
private, max-age=0< X-Content-Type-Options: nosniff< X-Frame-Options:
SAMEORIGIN< X-XSS-Protection: 1; mode=block< Server: GSE< Alt-Svc:
quic=":443"; ma=2592000; v="36,35,34,33,32"< Accept-Ranges: none<
Vary: Origin,Accept-Encoding< Connection: close< < Daily Limit for
Unauthenticated Use Exceeded. Continued use requires signup.

Finally, why am I posting this via webmail? Because when I try to post
using my normal account (*not* the one which has been giving me the
problems mentioned above), the sending process simply hangs. Recall that I
deleted all my Evo config and keyring info. I then recreated my personal
account (on Gmail) and my work account (this one, which is on Google Apps).
I was asked to authenticate the Gmail one, but not this one. Possibly
because the address (p...@usb.ve) doesn't indicate Google