Closed Bug 557491 Opened 14 years ago Closed 14 years ago

[autoconfig] emailAddress param not sent to autoconfig server

Categories

(Thunderbird :: Account Manager, defect, P1)

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: BenB, Assigned: BenB)

Details

Attachments

(1 file)

<https://developer.mozilla.org/en/Thunderbird/Autoconfiguration#Configuration_server_at_ISP>

We query <http://autoconfig.example.com/mail/config-v1.xml> instead of <http://autoconfig.example.com/mail/config-v1.1.xml?emailAddress=user@example.com>. The lack of email address prevents the ISP to adjust the config, esp. the username, to the user, which is part of the point of the autoconfig server at the ISP.
Priority: -- → P1
Attached patch Fix, v1Splinter Review
Attachment #437281 - Flags: review?(bwinton)
The emailAddress parameter is critical for a situation where the username has no direct link to the email address.

e.g. email address is juho-pekka.kuitunen@example.org but username could be 'juhokuit'.

If the parameter is given we can make a simple lookup to get the username from e.g. DB or LDAP.
Comment on attachment 437281 [details] [diff] [review]
Fix, v1

I would love it if you could add a test, but it seems like a win to me even without the test.

(Also, are you _sure_ you don't need parentheses around the "url.indexOf("?") == -1" part?  Would you mind adding them, just to make me feel better?  ;)

Thanks,
Blake.
Attachment #437281 - Flags: review?(bwinton) → review+
> (Also, are you _sure_ you don't need parentheses around the "url.indexOf("?")
> == -1" part?

Yes.
<https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Operators/Operator_Precedence>
== has higher precedence than ?:
?: has one of the lowest precedences of all, only higher than = assignment and comma
(Psst, you've got an r+, you can just check it in, instead of doing a try-server build.  ;)

Later,
Blake.
*snicker*, yeah, noticed when I made the comment...
I'm about to check in once the tree goes green.
Commited as <http://hg.mozilla.org/comm-central/rev/2f484966ab84>

FIXED
Status: ASSIGNED → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: