Closed Bug 1726767 Opened 3 years ago Closed 3 years ago

Several autodiscover/autoconfig console errors after testing gmail credentials in account setup

Categories

(Thunderbird :: Account Manager, defect)

Thunderbird 91
defect

Tracking

(thunderbird_esr91+ fixed, thunderbird92 fixed)

RESOLVED FIXED
93 Branch
Tracking Status
thunderbird_esr91 + fixed
thunderbird92 --- fixed

People

(Reporter: thomas8, Assigned: mkmelin)

References

Details

Attachments

(2 files)

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

Expected

  • no errors in console
  • avoid plain password in URI and error messages if possible

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.

Blocks: tb91found

But, I there are some related console spew we could remove so I'm using this bug for that.

These are handled errors so we should not spwe them onto the console.

Assignee: nobody → mkmelin+mozilla
Status: NEW → ASSIGNED

Pushed by mkmelin@iki.fi:
https://hg.mozilla.org/comm-central/rev/9cf5ac27abe5
remove unwarranted console errors related to account setup. r=aleca

Status: ASSIGNED → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 93 Branch

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

Attachment #9237812 - Flags: approval-comm-esr91?
Attachment #9237812 - Flags: approval-comm-beta?

Comment on attachment 9237812 [details]
Bug 1726767 - remove unwarranted console errors related to account setup. r=aleca

[Triage Comment]
Approved for beta

Attachment #9237812 - Flags: approval-comm-beta? → approval-comm-beta+

Comment on attachment 9237812 [details]
Bug 1726767 - remove unwarranted console errors related to account setup. r=aleca

[Triage Comment]
Approved for esr91

Attachment #9237812 - Flags: approval-comm-esr91? → approval-comm-esr91+

(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,

Why is this not found?

Can someone enlighten me why we're sending a request with an invalid domain: https://doejohn@gmail.com:password@gmail.com/... ?

Flags: needinfo?(geoff)

(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.

Flags: needinfo?(geoff)
Summary: Autodiscover console errors after testing gmail credentials in account setup → Several autodiscover/autoconfig console errors after testing gmail credentials in account setup

(In reply to Thomas D. (:thomas8) from comment #10)

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.

You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: