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 562228 - Login to exchange fails if "mailbox" is filled manually in the config wizard
Login to exchange fails if "mailbox" is filled manually in the config wizard
Status: RESOLVED FIXED
Product: Evolution Exchange
Classification: Deprecated
Component: Connector
2.22.x
Other All
: Normal minor
: ---
Assigned To: Milan Crha
Ximian Connector QA
Depends on:
Blocks:
 
 
Reported: 2008-11-25 13:10 UTC by Miguel Maia
Modified: 2008-12-02 12:24 UTC
See Also:
GNOME target: ---
GNOME version: 2.21/2.22


Attachments
proposed eds patch (1.70 KB, patch)
2008-11-27 16:12 UTC, Milan Crha
committed Details | Review
proposed evo patch (4.20 KB, patch)
2008-12-01 12:12 UTC, Milan Crha
committed Details | Review

Description Miguel Maia 2008-11-25 13:10:27 UTC
Please describe the problem:
I'm using the PT language, I'm sorry if I name something wrong.

When configuring a new account using the wizard, if you fill in your username, OWA URL and mailbox before hitting authenticate, the resulting configuration will not work. Evolution will say that the login to the exchange server failed "(wrong password?)".

The only way to fix this is by erasing the mailbox field, hitting authenticate and let it fill it automatically. You'll also need to restart Evolution, which isn't requested, but that's another bug report I guess.

Note that it doesn't matter if you fill the mailbox field correctly, something will not get done if you hit authenticate when the mailbox field is already filled and the resulting configuration won't work.

Steps to reproduce:
1. Launch evolution without any configured accounts
2. Fill the configuration wizard with correct values regarding a working account, including username, OWA URL and mailbox, without hitting the "authenticate" button.
4. After everything is filled, hit "authenticate", no error will be given and the advance button will enable
5. Finish the wizard as usual with default values

Actual results:
Your password will be requested multiple times because they all fail. The error will report an unsuccessful login and you won't be able to access your exchange account.

Expected results:
Having access to the exchange server account.

Does this happen every time?
I've tested this settings multiple times, the results were all consistent while following these steps.

Other information:
Comment 1 Akhil Laddha 2008-11-26 05:03:37 UTC
Afaik, there is no need to enter mailbox manually. Evolution will fetch mailbox automatically based on user and server url. This fields was added to make authentication possible for evolution when username!=mailbox. I would suggest to close bug as NOTABUG.
Comment 2 Miguel Maia 2008-11-26 11:00:33 UTC
I currently can't test a scenario where username!=mailbox, but I'll update this soon, I would guess that it wouldn't work either though. In any case, there are 2 problems here.

1. If username==mailbox and if I fill it correctly, I would expect that configuration to work. 

2. It seems to me that it is assumed the authenticate button is hit before you get to the mailbox field, but apart from the relative position of both objects, that isn't clear at all. It might be more logical for the user (as it was for me) to fill all the data on all text fields and then press any buttons that will use that data.

I lost a few hours troubleshooting this and I don't feel that I was expecting some behaviour that I shouldn't.

I can only guess that some necessary algorithm isn't triggered if that field is filled, correctly or not.
Comment 3 Milan Crha 2008-11-26 11:41:11 UTC
I cannot reproduce this. I tried both correct mail box name and incorrect mailbox name a both works with respect to authenticate process (the Forward button is enabled after hit of the Authenticate). I guess your server doesn't support authentication type you've selected in Evolution, for example you've there "plain text", but it should be "secure" password authentication. Can you check, please?
Comment 4 Milan Crha 2008-11-27 16:09:27 UTC
Never mind, my fault. I caused that with my initial patch to bug #273627. The problem is that the owa_path contains trailing slash (that at the end) and it also contains the mailbox name, which is wrong.
Comment 5 Milan Crha 2008-11-27 16:12:13 UTC
Created attachment 123557 [details] [review]
proposed eds patch

for evolution-data-server;

It seems noone was using this feature yet. To let this fixed, re-authenticate in the account editor. You can workaround it when re-authenticating with empty mailbox name, even the change will be shown next start of evolution.
Comment 6 Milan Crha 2008-12-01 12:12:11 UTC
Created attachment 123733 [details] [review]
proposed evo patch

for evolution;

Just a little extension. I was told that that's not clear the mailbox name is not usually supposed to be filled, thus this is to make it a bit clearer.
Comment 7 Bharath Acharya 2008-12-02 09:54:50 UTC
Works good and neat. Fine to commit to trunk. The label could be "Specify the mailbox name" instead.
Comment 8 Milan Crha 2008-12-02 12:24:31 UTC
eds part committed to trunk. Committed revision 9787.
eds part committed to gnome-2-24. Committed revision 9788.
evo part committed to trunk. Committed revision 36825.

The caption of the check has been changed, no commit of evo part to gnome-2-24 because of the UI change.