[autoconfig] Pass Exchange URL from account creation dialog to addon
Categories
(Thunderbird :: Account Manager, enhancement, P3)
Tracking
(thunderbird_esr6065+ fixed, thunderbird65 fixed, thunderbird66 fixed)
People
(Reporter: BenB, Assigned: BenB)
References
Details
Attachments
(1 file, 2 obsolete files)
4.94 KB,
patch
|
neil
:
review+
jorgk-bmo
:
approval-comm-beta+
jorgk-bmo
:
approval-comm-esr60+
|
Details | Diff | Splinter Review |
The account creation dialog runs the Exchange AutoDiscover methods and finds the Exhange protocol URLs (OWA and EWS URL). It then extracts the hostname from it, creates a normal nsIMsgIncomingServer and throws away the URLs. Owl the synthezises the URL from the hostname again. Obviously, that's information loss. Even though it happens to work in all cases we know, it's still not smart.
The account creation wizard, when creating the account, should set the preferences <server>.owa_url, <server>.ews_url and <server>.eas_url , if these URLs have been found during AutoDiscover. The Exchange addon can then use these URLs to contact the server.
Assignee | ||
Comment 1•6 years ago
|
||
This also fixes up the existing POP3 code which was ...unnecessarily long (even when not considering the nsIMsgIncomingServer.set*Pref() API).
Assignee | ||
Comment 2•6 years ago
|
||
Caught a leftover during self-review.
Comment 3•6 years ago
|
||
Comment on attachment 9035420 [details] [diff] [review]
Fix, v3
+ if (config.incoming.owaURL) { + inServer.setCharValue("owa_url", config.incoming.owaURL); + } + if (config.incoming.ewsURL) { + inServer.setCharValue("ews_url", config.incoming.ewsURL); + } + if (config.incoming.easURL) { + inServer.setCharValue("eas_url", config.incoming.easURL); }
Please use setUnicharValue
in case the URL contains Unicode. r=me with that fixed.
Assignee | ||
Comment 4•6 years ago
|
||
- Use setUnicharValue()
Updated•6 years ago
|
Assignee | ||
Comment 5•6 years ago
|
||
User impact if declined:
Minimal. This affects only users where the OWA URL is not https://host/owa/, but e.g. https://host/OWA/. Even in these cases, /owa/ might be redirected to /OWA/ and work anyway, just a tiny little slower due to the redirect. So, this is mostly a correctness fix.
Developer impact if declined:
Other autoconfig patches might be harder to backport later.
Risk:
Affects Owl and some advanced POP3 settings. Behavior for the POP3 should not change, just the code is streamlined.
Assignee | ||
Updated•6 years ago
|
Comment 6•6 years ago
|
||
Why the need for tracking? Request beta uplift on the patch.
Pushed by mozilla@jorgk.com:
https://hg.mozilla.org/comm-central/rev/1ff4cbc59aae
[autoconfig] Pass Exchange URL from account creation dialog to addon. r=Neil
Comment 8•6 years ago
|
||
Ben, can you please request uplifts as required. I am constantly monitoring potential uplifts and the sooner you request, the better, avoids missing the next uplift I'm doing. Currently I have like five bugs, so it's going to happen soon.
Assignee | ||
Comment 9•6 years ago
|
||
Comment on attachment 9035652 [details] [diff] [review]
Fix, v4
[Beta/Release Uplift Approval Request]
Feature/Bug causing the regression: None
User impact if declined: Minimal. This affects only users where the OWA URL is not https://host/owa/, but e.g. https://host/OWA/. Even in these cases, /owa/ might be redirected to /OWA/ and work anyway, just a tiny little slower due to the redirect. So, this is mostly a correctness fix.
Developer impact if declined:
Other autoconfig patches might be harder to backport later.
Is this code covered by automated tests?: Yes
Has the fix been verified in Nightly?: Yes
Needs manual test from QE?: Yes
If yes, steps to reproduce:
List of other uplifts needed: None
Risk to taking this patch: Low
Why is the change risky/not risky? (and alternatives if risky): Affects Owl and some advanced POP3 settings. Behavior for the POP3 should not change, just the code is streamlined.
String changes made/needed:
Assignee | ||
Comment 10•6 years ago
|
||
oops, some of the fields defaulted to wrong values.
Assignee | ||
Comment 11•6 years ago
|
||
Comment on attachment 9035652 [details] [diff] [review]
Fix, v4
Sorry, I'm totally confused about all these flags in different places. (I do understand the differences, I was just confused.) Sorry for the noise. This should be the right one.
[Approval Request Comment]
See comment 5
Updated•6 years ago
|
Comment 12•6 years ago
|
||
TB 65 beta 3:
https://hg.mozilla.org/releases/comm-beta/rev/492bea4ded8961c2171ba05a185555c5e6deb7af
Comment 13•6 years ago
|
||
Comment 14•6 years ago
|
||
TB 60.5.0 ESR:
https://hg.mozilla.org/releases/comm-esr60/rev/794569c5127d5eb3d7cbdcc0a2c7c2a71a8557fd
Description
•