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 564897 - [MAPI] crashes when didn't fill a domain and asked to authenticate
[MAPI] crashes when didn't fill a domain and asked to authenticate
Status: RESOLVED FIXED
Product: evolution-mapi
Classification: Applications
Component: Account Setup Plugin
unspecified
Other Linux
: Normal normal
: ---
Assigned To: Milan Crha
evolution-mapi-maint
: 560751 561665 568285 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2008-12-17 19:06 UTC by Milan Crha
Modified: 2009-02-11 04:43 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Asserts and NULL chedk (2.61 KB, patch)
2008-12-18 09:54 UTC, Johnny Jacob
committed Details | Review
proposed ema patch (1.87 KB, patch)
2009-01-07 17:30 UTC, Milan Crha
accepted-commit_now Details | Review
proposed ema patch ][ (7.26 KB, patch)
2009-01-12 14:14 UTC, Milan Crha
none Details | Review
proposed ema patch ]I[ (16.50 KB, patch)
2009-01-23 19:00 UTC, Milan Crha
committed Details | Review

Description Milan Crha 2008-12-17 19:06:09 UTC
crashes when didn't fill a domain and asked to authenticate

  • #6 <signal handler called>
  • #7 ldb_delete_profile
  • #8 DeleteProfile
  • #9 exchange_mapi_create_profile
    at exchange-mapi-account-setup.c line 170
  • #10 validate_credentials
    at exchange-mapi-account-setup.c line 257

Comment 1 Johnny Jacob 2008-12-18 09:54:22 UTC
Created attachment 124918 [details] [review]
Asserts and NULL chedk
Comment 2 Milan Crha 2008-12-18 13:59:44 UTC
OK, it doesn't crash, but:
- it asks for a password anyway
- it doesn't tell me what's going wrong (and I'm quite stupid user for sure) :)
Comment 3 Johnny Jacob 2009-01-06 04:44:37 UTC
Patch pushed to SVN r55.
Comment 4 Milan Crha 2009-01-07 17:30:11 UTC
Created attachment 125946 [details] [review]
proposed ema patch

for evolution-mapi;

I thought about something like this, very simple check before validation.
Comment 5 Johnny Jacob 2009-01-12 08:09:15 UTC
Looks good. Please commit with translator comments.. 

We need to display error messages on failure to authenticate too. 
Comment 6 Milan Crha 2009-01-12 14:14:12 UTC
Created attachment 126279 [details] [review]
proposed ema patch ][

for evolution-mapi;

improved version, with a message to the user with the result of the authentication process.

What kind of translator comment are you thinking of?
Comment 7 Suman Manjunath 2009-01-15 05:02:55 UTC
guys.. we need to move the create/delete profile stuff to libexchangemapi :-)
Comment 8 Milan Crha 2009-01-23 19:00:53 UTC
Created attachment 127119 [details] [review]
proposed ema patch ]I[

for evolution-mapi;

OK, I was unable to enable my exchange setup properly, thus I tried to follow Suman's advice, and it works as expected now. My kudos to you, Suman.
Comment 9 Suman Manjunath 2009-01-28 07:10:03 UTC
In src/libexchangemapi/exchange-mapi-connection.c

> +	/* Initialize a global connection */
> +	if (exchange_mapi_connection_new (profname, password)) {
> +		result = TRUE;
> +		exchange_mapi_account_listener_get_folder_list ();
> +	}

exchange_mapi_account_listener_get_folder_list() call is implicit. Please change that to exchange_mapi_peek_folder_list() 

Approved.
Comment 10 Suman Manjunath 2009-01-28 07:39:16 UTC
*** Bug 560751 has been marked as a duplicate of this bug. ***
Comment 11 Suman Manjunath 2009-01-28 07:43:21 UTC
*** Bug 561665 has been marked as a duplicate of this bug. ***
Comment 12 Milan Crha 2009-01-28 16:27:17 UTC
Committed to trunk. Committed revision 83.

It was just copy&paste of the old code, but I changed it as you said, even I do not see any difference (in runtime) at the moment.
Comment 13 Suman Manjunath 2009-02-11 04:43:32 UTC
*** Bug 568285 has been marked as a duplicate of this bug. ***