Closed Bug 1919469 Opened 2 years ago Closed 2 years ago

When setting up an account, failure to connect to a port because of a certificate error is not reported to the console

Categories

(Thunderbird :: Account Manager, defect)

defect

Tracking

(Not tracked)

RESOLVED FIXED
132 Branch

People

(Reporter: darktrojan, Assigned: darktrojan)

Details

Attachments

(1 file)

During account set up, each failed attempt to connect to a port is reported on the console, e.g.:

test.test:110 socketType=0 pop3: [Exception... "Connection to test.test:110 failed" nsresult: "0x804b000d (NS_ERROR_CONNECTION_REFUSED)" location: "JS frame :: resource:///modules/accountcreation/GuessConfig.sys.mjs :: onStopRequest :: line 1247" data: no]

but this isn't true where an attempt fails because of a TLS certificate error. In that case, we do suggest the user can change a pref and ignore the bad certificate but that's only an info-level message and not shown with the default log level setting. There should be an exception thrown at this point so that the error handler reports the failure.

There's an exception thrown here for other types of connection errors. The error handler logs a
message to the console which can be useful for debugging setup errors.

Target Milestone: --- → 132 Branch

Pushed by kaie@kuix.de:
https://hg.mozilla.org/comm-central/rev/d984fc1328b2
Throw an exception when a certificate error is encountered during account set-up. r=#thunderbird-reviewers

Status: ASSIGNED → RESOLVED
Closed: 2 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: