Several autodiscover/autoconfig console errors after testing gmail credentials in account setup
Categories
(Thunderbird :: Account Manager, defect)
Tracking
(thunderbird_esr91+ fixed, thunderbird92 fixed)
People
(Reporter: thomas8, Assigned: mkmelin)
References
Details
Attachments
(2 files)
(deleted),
image/png
|
Details | |
(deleted),
text/x-phabricator-request
|
wsmwk
:
approval-comm-beta+
wsmwk
:
approval-comm-esr91+
|
Details |
I have no idea how autoconfig / autodiscover works, but some of the URIs we're checking for look strange, and they all cause console errors as they are not found.
STR
- set up existing email address
- enter gmail credentials (email, pw)
- proceed to test the credentials
- monitor error console
Actual result
- autoconfig / autodiscover tests for weird URIs, in turn causing HTTP 404 Not Found errors in console
- one URI and its error message even contain my password in plaintext, is that safe?
- GET https://gmail.com/.well-known/autoconfig/mail/config-v1.1.xml?emailaddress=doejohn@gmail.com
[HTTP/2 404 Not Found 382ms] - POST https://doejohn@gmail.com:*password*@gmail.com/autodiscover/autodiscover.xml [HTTP/2 404 Not Found 434ms]
- GET https://gmail.com/.well-known/autoconfig/mail/config-v1.1.xml?emailaddress=doejohn@gmail.com
Expected
- no errors in console
- avoid plain password in URI and error messages if possible
Assignee | ||
Comment 1•3 years ago
|
||
These errors are not really console errors: only "logged" if you have the console open.
Which makes the second point somewhat moot: if you're debugging, you need to see what's going on and why it failed. Anyway, toolkit code.
Assignee | ||
Comment 2•3 years ago
|
||
But, I there are some related console spew we could remove so I'm using this bug for that.
Assignee | ||
Comment 3•3 years ago
|
||
These are handled errors so we should not spwe them onto the console.
Updated•3 years ago
|
Pushed by mkmelin@iki.fi:
https://hg.mozilla.org/comm-central/rev/9cf5ac27abe5
remove unwarranted console errors related to account setup. r=aleca
Assignee | ||
Updated•3 years ago
|
Assignee | ||
Comment 5•3 years ago
|
||
Comment on attachment 9237812 [details]
Bug 1726767 - remove unwarranted console errors related to account setup. r=aleca
[Approval Request Comment]
User impact if declined: for some cases, unwarranted error spew in the console
Testing completed (on c-c, etc.): yes
Risk to taking this patch (and alternatives if risky): as safe as it gets
Comment 6•3 years ago
|
||
Comment on attachment 9237812 [details]
Bug 1726767 - remove unwarranted console errors related to account setup. r=aleca
[Triage Comment]
Approved for beta
Comment 7•3 years ago
|
||
bugherder uplift |
Thunderbird 92.0b5:
https://hg.mozilla.org/releases/comm-beta/rev/6ab86369c522
Assignee | ||
Updated•3 years ago
|
Comment 8•3 years ago
|
||
Comment on attachment 9237812 [details]
Bug 1726767 - remove unwarranted console errors related to account setup. r=aleca
[Triage Comment]
Approved for esr91
Comment 9•3 years ago
|
||
bugherder uplift |
Thunderbird 91.1.1:
https://hg.mozilla.org/releases/comm-esr91/rev/a9d21a0ca952
Reporter | ||
Comment 10•3 years ago
|
||
(In reply to Thomas D. (:thomas8) from comment #0)
I'm not sure if my bug report has been understood.
I was trying to get some feedback if the URLs listed in comment 0 are correct URLs which we should check for. It seems surprising that for a standard case like setting up a gmail account, so many of the URLs we are using should fail to be found.
Created attachment 9237203 [details]
I have no idea how autoconfig / autodiscover works, but some of the URIs we're checking for look strange,
- GET https://gmail.com/.well-known/autoconfig/mail/config-v1.1.xml?emailaddress=doejohn@gmail.com
[HTTP/2 404 Not Found 382ms]
Why is this not found?
- POST https://doejohn@gmail.com:*password*@gmail.com/autodiscover/autodiscover.xml [HTTP/2 404 Not Found 434ms]
Can someone enlighten me why we're sending a request with an invalid domain: https://doejohn@gmail.com:password@gmail.com/...
?
Assignee | ||
Comment 11•3 years ago
|
||
(In reply to Thomas D. (:thomas8) from comment #10)
Why is this not found?
Because google doesn't support .well-known.
Can someone enlighten me why we're sending a request with an invalid domain:
https://doejohn@gmail.com:password@gmail.com/...
?
gmail.com is a valid domain.
Reporter | ||
Updated•3 years ago
|
Comment 12•3 years ago
|
||
(In reply to Thomas D. (:thomas8) from comment #10)
- POST https://doejohn@gmail.com:*password*@gmail.com/autodiscover/autodiscover.xml [HTTP/2 404 Not Found 434ms]
Can someone enlighten me why we're sending a request with an invalid domain:
https://doejohn@gmail.com:password@gmail.com/...
?
I don't have too much light to shed upon this but my reading is that the '@' sign in the <username> part of that url is a reserved character and requires escaping: https://doejohn%40gmail.com:password@gmail.com/...
I was initially concerned about the plain-text password thing, but then I remembered that https sets up the encryption before the request is sent. Just as long as it doesn't ever do the same with http :-)
I agree that dumping the url to the console, password and all, doesn't inspire confidence. Even if it's never sent over the wire in plain text, it's a little nerve-jangling initially.
Description
•