[autoconfig] Shorten console output for invalid HTML server responses
Categories
(Thunderbird :: Account Manager, enhancement)
Tracking
(thunderbird_esr6871+ fixed, thunderbird71 fixed, thunderbird72 fixed)
People
(Reporter: BenB, Assigned: BenB)
Details
Attachments
(1 file, 1 obsolete file)
|
1.21 KB,
patch
|
jorgk-bmo
:
review+
jorgk-bmo
:
approval-comm-beta+
jorgk-bmo
:
approval-comm-esr68+
|
Details | Diff | Splinter Review |
If we request our autoconfig format and the server responds to "not founds" with an HTML page and a HTTP 200 success code (violating the HTTP spec) instead of a proper HTTP 404, we dump the HTML doc on the console to help diagnose what happened. We're outputting the data, because developers cannot always reproduce situations due to server access and need the console output from users to diagnose.
Instead of dumping the whole doc, just output the first few characters. Maybe 50 chars, less than 1 line. This still allows to analyze what happened and see what happened (invalid HTML server response), but avoids the useless scatter.
| Assignee | ||
Comment 1•6 years ago
|
||
As requested
| Assignee | ||
Updated•6 years ago
|
Comment 2•6 years ago
|
||
Updated•6 years ago
|
Comment 3•6 years ago
|
||
Added a proper HG header, fixed linting issue and while I was there, also switched to a template string to make it more readable. It still works. Setting up jk@office365.com now shows:
client config xml = "\r\n\r\n\r\n<!DOCTYPE html>\r\n<html lang="de-de
Pushed by mozilla@jorgk.com:
https://hg.mozilla.org/comm-central/rev/716cec9c6ca5
[autoconfig] Shorten console output for HTML responses. a=jorgk DONTBUILD
Updated•6 years ago
|
Comment 5•6 years ago
|
||
TB 71 beta 3:
https://hg.mozilla.org/releases/comm-beta/rev/89c74493e695121bf9c83bb29252328bdbedf633
Note: The commit message in comment #4 should have been r=jorgk.
Comment 6•6 years ago
|
||
TB 68.3 ESR:
https://hg.mozilla.org/releases/comm-esr68/rev/387890dcbbd70bad6eb9e87b3f928b6af7613bb2
Description
•