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 664062 - Profile name not saved in transport URL
Profile name not saved in transport URL
Status: RESOLVED FIXED
Product: evolution-mapi
Classification: Applications
Component: Mail
3.2.x
Other Linux
: Normal normal
: ---
Assigned To: evolution-mapi-maint
evolution-mapi-maint
: 664265 665718 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2011-11-14 18:30 UTC by Adam Plumb
Modified: 2011-12-16 10:07 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
ema patch (1.33 KB, patch)
2011-11-24 13:53 UTC, Milan Crha
committed Details | Review

Description Adam Plumb 2011-11-14 18:30:54 UTC
I'm running Evolution 3.2 with the evolution-mapi extension on Fedora 16.  My "Server Type" is Exchange MAPI.  I've entered the correct authentication info, which I can confirm by clicking the "Authenticate" button in the Receiving Email tab.  I also can retrieve email and calendar information from the MAPI server.  However, any time I try to send an email, I get the following error in the console.  FYI, I'm pretty sure the exchange server is 2010.

(evolution:4520): libexchangemapi-CRITICAL **: exchange_mapi_connection_find: assertion `profile != NULL' failed

Any other info I can provide?
Comment 1 Adam Plumb 2011-11-14 18:33:17 UTC
Just as a clarification, I'm running Evolution 3.2.1.  Also, it doesn't matter if I try to send an email to others in my company (using the same email server) or if I send to foreign emails (gmail, etc).  And finally, if I set up my account with the IMAP extension, then sending mail works fine.
Comment 2 Adam Plumb 2011-11-14 18:34:47 UTC
evolution-3.2.1-2.fc16.i686
evolution-data-server-3.2.1-1.fc16.i686
evolution-mapi-3.2.1-1.fc16.i686
evolution-data-server-devel-3.2.1-1.fc16.i686
Comment 3 Milan Crha 2011-11-21 16:41:54 UTC
Thanks for a bug report. Was the account created as a fresh one or as a migrated from Fedora 15 of Fedora 14? It seems the transport part of the account is missing the information about the profile being used, which does this runtime critical warning. Usually recreating the account fixes the issue. Another option would be disabling the account, closing evolution, then run evolution, edit the account, authenticate with it, press OK and then enable the account again.
Comment 4 Adam Plumb 2011-11-21 17:02:53 UTC
This was a freshly created account on Fedora 16 GNOME 3 using the above evolution versions (from comment #2).  I tried removing the account and re-adding it, I tried authenticating it (which always worked), I tried the IMAP account (which works), but nothing I tried would get MAPI send to work.
Comment 5 Milan Crha 2011-11-24 13:21:39 UTC
Nice. I couldn't reproduce it the first time I created the account, the message was sent, but when I closed evolution and run it again, and did almost the same steps (instead of replying I created a new message), then the message sending failed. Looking into GConf key /apps/evolution/mail/accounts the corresponding one for the MAPI account has its <url /> for <source /> with a 'profile' parameter, but the <transport><url /></transport> is without that 'profile' parameter, which makes it fail. A workaround is to add the parameter into the XML blob into the GConf key (it can be tricky).

I'll try to workaround this in evo-mapi sources. I'm confirming the bug.
Comment 6 Milan Crha 2011-11-24 13:53:39 UTC
Created attachment 202056 [details] [review]
ema patch

for evolution-mapi;

This is searching active stores for the corresponding one to the transport service and uses its settings to obtain profile name to be used. I suppose this will not be needed once the account management changes will land into git master of evolution-data-server and friends.

I also built a package for F16 for you.
http://koji.fedoraproject.org/koji/taskinfo?taskID=3537507
Comment 7 Milan Crha 2011-11-24 13:55:57 UTC
Created commit bb43c9f in ema master (3.3.3+)
Created commit 68c1667 in ema gnome-3-2 (3.2.3+)
Comment 8 Adam Plumb 2011-11-25 17:24:18 UTC
Thanks I appreciate your dilligence!
Comment 9 Milan Crha 2011-12-16 10:04:59 UTC
*** Bug 665718 has been marked as a duplicate of this bug. ***
Comment 10 Milan Crha 2011-12-16 10:07:48 UTC
*** Bug 664265 has been marked as a duplicate of this bug. ***