Remove unnecessary informational console log messages from OpenPGP code
Categories
(MailNews Core :: Security: OpenPGP, defect)
Tracking
(thunderbird_esr115 wontfix, thunderbird126 verified)
People
(Reporter: KaiE, Assigned: mkmelin)
References
(Blocks 1 open bug)
Details
Attachments
(29 files)
|
48 bytes,
text/x-phabricator-request
|
Details | Review | |
|
48 bytes,
text/x-phabricator-request
|
Details | Review | |
|
48 bytes,
text/x-phabricator-request
|
Details | Review | |
|
48 bytes,
text/x-phabricator-request
|
Details | Review | |
|
48 bytes,
text/x-phabricator-request
|
Details | Review | |
|
48 bytes,
text/x-phabricator-request
|
Details | Review | |
|
48 bytes,
text/x-phabricator-request
|
Details | Review | |
|
48 bytes,
text/x-phabricator-request
|
Details | Review | |
|
48 bytes,
text/x-phabricator-request
|
Details | Review | |
|
48 bytes,
text/x-phabricator-request
|
Details | Review | |
|
48 bytes,
text/x-phabricator-request
|
Details | Review | |
|
48 bytes,
text/x-phabricator-request
|
Details | Review | |
|
48 bytes,
text/x-phabricator-request
|
Details | Review | |
|
48 bytes,
text/x-phabricator-request
|
Details | Review | |
|
48 bytes,
text/x-phabricator-request
|
Details | Review | |
|
48 bytes,
text/x-phabricator-request
|
Details | Review | |
|
48 bytes,
text/x-phabricator-request
|
Details | Review | |
|
48 bytes,
text/x-phabricator-request
|
Details | Review | |
|
48 bytes,
text/x-phabricator-request
|
Details | Review | |
|
48 bytes,
text/x-phabricator-request
|
Details | Review | |
|
48 bytes,
text/x-phabricator-request
|
Details | Review | |
|
48 bytes,
text/x-phabricator-request
|
wsmwk
:
approval-comm-beta+
|
Details | Review |
|
48 bytes,
text/x-phabricator-request
|
Details | Review | |
|
48 bytes,
text/x-phabricator-request
|
Details | Review | |
|
48 bytes,
text/x-phabricator-request
|
Details | Review | |
|
48 bytes,
text/x-phabricator-request
|
Details | Review | |
|
48 bytes,
text/x-phabricator-request
|
Details | Review | |
|
48 bytes,
text/x-phabricator-request
|
Details | Review | |
|
48 bytes,
text/x-phabricator-request
|
Details | Review |
We have a few leftover console log/debug statements from OpenPGP development, we should remove everything that isn't related to reporting a failure.
| Reporter | ||
Comment 1•3 years ago
|
||
In order to remove statements that are purely informational, but keep statements that are useful when diagnosing failures, I suggest:
Use Thunderbird OpenPGP feature, look at the console, and use the logged messages to identify code that can be removed.
Please keep log/debug statements that aren't reached during normal OpenPGP usage.
| Reporter | ||
Comment 2•3 years ago
|
||
I suggest to keep the following, and move them to debug:
- the otr and rnp and gpgme shared libraries that are loaded. Because we are loading them dynamically, and because they could be loaded from the wrong location, I consider it very very useful to be able to ask users to provide this information to developers in failure scenarios.
- when loading the openpgp secret keyring, we currently print information about how many keys were loaded. We don't need to log that. However, we should continue to log information if any non-encrypted secret keys were found (that's a bad inconsistent state, and users should be able to discover that)
Updated•3 years ago
|
| Assignee | ||
Comment 3•3 years ago
|
||
Related to this we should rework EnigmailLog to just use logging like other modules does, so that logging is prefixed and can be set to higher level when needed.
| Assignee | ||
Updated•2 years ago
|
Updated•2 years ago
|
| Assignee | ||
Comment 4•2 years ago
|
||
Will have to go through this file by file and clean up.
Much can simply be dropped. The "where am I" statements are not generally useful, but statements on some statuses are.
Production code should not have console.debug. For modules, where debug info is warranted we can add a logger where necessary.
| Assignee | ||
Comment 5•2 years ago
|
||
| Assignee | ||
Comment 6•2 years ago
|
||
| Assignee | ||
Comment 7•2 years ago
|
||
| Assignee | ||
Comment 8•2 years ago
|
||
| Assignee | ||
Comment 9•2 years ago
|
||
| Assignee | ||
Comment 10•2 years ago
|
||
Comment 11•2 years ago
|
||
Pushed by mkmelin@iki.fi:
https://hg.mozilla.org/comm-central/rev/8fe166095d3c
Clean up PgpMimeHandler.sys.mjs. r=kaie
https://hg.mozilla.org/comm-central/rev/750d169f67ed
clean up MimeTree.sys.mjs. r=kaie
https://hg.mozilla.org/comm-central/rev/1b3bdef8542a
clean up enigmailKeyManager.js. r=kaie
| Assignee | ||
Comment 12•2 years ago
|
||
Much more to be done here.
| Assignee | ||
Updated•2 years ago
|
| Assignee | ||
Comment 13•2 years ago
|
||
| Assignee | ||
Comment 14•2 years ago
|
||
| Assignee | ||
Comment 15•2 years ago
|
||
| Assignee | ||
Comment 16•2 years ago
|
||
| Assignee | ||
Comment 17•2 years ago
|
||
| Assignee | ||
Comment 18•2 years ago
|
||
| Assignee | ||
Comment 19•2 years ago
|
||
| Assignee | ||
Comment 20•2 years ago
|
||
| Assignee | ||
Comment 21•2 years ago
|
||
| Assignee | ||
Comment 22•2 years ago
|
||
| Assignee | ||
Comment 23•2 years ago
|
||
| Assignee | ||
Comment 24•2 years ago
|
||
| Assignee | ||
Comment 25•2 years ago
|
||
| Assignee | ||
Comment 26•2 years ago
|
||
| Assignee | ||
Comment 27•2 years ago
|
||
| Assignee | ||
Comment 28•2 years ago
|
||
| Assignee | ||
Comment 29•2 years ago
|
||
| Assignee | ||
Comment 30•2 years ago
|
||
| Assignee | ||
Comment 31•2 years ago
|
||
| Assignee | ||
Comment 32•2 years ago
|
||
| Assignee | ||
Comment 33•2 years ago
|
||
| Assignee | ||
Comment 34•2 years ago
|
||
This contained mostly junk that was not used.
| Assignee | ||
Comment 35•2 years ago
|
||
Comment 36•2 years ago
|
||
| Reporter | ||
Comment 37•2 years ago
|
||
When changing the way logging works, it's necessary to update the documentation at https://wiki.mozilla.org/Thunderbird:OpenPGP
It should say which versions use the old style logging, it should explain how to use the new style logging and in which version the new style logging works.
Comment 38•2 years ago
|
||
| Assignee | ||
Updated•2 years ago
|
Comment 39•2 years ago
|
||
Pushed by mkmelin@iki.fi:
https://hg.mozilla.org/comm-central/rev/1a49b59f74d2
Clean up uris.sys.mjs. r=kaie
https://hg.mozilla.org/comm-central/rev/fe465edf66f1
Clean up funcs.sys.mjs. r=kaie
https://hg.mozilla.org/comm-central/rev/bd04b3e29b10
Clean up keyObj.sys.mjs. r=kaie
https://hg.mozilla.org/comm-central/rev/b620b01cef24
Clean up mimeDecrypt.sys.mjs. r=kaie
https://hg.mozilla.org/comm-central/rev/56cba65c08ef
Clean up key.sys.mjs. r=kaie
https://hg.mozilla.org/comm-central/rev/284322e2cdae
Clean up keyRing.sys.mjs. r=kaie
https://hg.mozilla.org/comm-central/rev/89298dbdd5d9
Clean up windows.sys.mjs. r=kaie
https://hg.mozilla.org/comm-central/rev/6bb711e3fc88
Remove EnigmailLog - log.sys.mjs. r=kaie
| Assignee | ||
Comment 40•2 years ago
|
||
I updated https://wiki.mozilla.org/Thunderbird:OpenPGP#OpenPGP_log "Thunderbird version 126 and up".
Heather, please check if you want to clarify anything there.
We should land the patches from comment 39 on beta as well. After that I can post a message about this change to the e2ee list.
| Assignee | ||
Comment 41•2 years ago
|
||
Comment on attachment 9394959 [details]
Bug 1814893 - Clean up uris.sys.mjs. r=kaie
[Approval Request Comment]
User impact if declined: The patches from https://bugzilla.mozilla.org/show_bug.cgi?id=1814893#c39 should land on beta to get a consistent beta logging story.
Testing completed (on c-c, etc.): c-c
Risk to taking this patch (and alternatives if risky): without uplift, there's a mix of old style and new style logging which would be slightly messy.
Comment 42•2 years ago
|
||
Comment on attachment 9394959 [details]
Bug 1814893 - Clean up uris.sys.mjs. r=kaie
[Triage Comment]
Approve for beta
User impact if declined: The patches from https://bugzilla.mozilla.org/show_bug.cgi?id=1814893#c39 should land on beta to get a consistent beta logging story.
Comment 43•2 years ago
|
||
| bugherder uplift | ||
Thunderbird 126.0b2:
https://hg.mozilla.org/releases/comm-beta/rev/e95dc5101ff2
https://hg.mozilla.org/releases/comm-beta/rev/ef64f573b15e
https://hg.mozilla.org/releases/comm-beta/rev/9a31298a7052
https://hg.mozilla.org/releases/comm-beta/rev/b5ecb56c7bf1
https://hg.mozilla.org/releases/comm-beta/rev/5cf6685f08ac
https://hg.mozilla.org/releases/comm-beta/rev/5e883cd9b932
https://hg.mozilla.org/releases/comm-beta/rev/be69efa9305a
https://hg.mozilla.org/releases/comm-beta/rev/b73ec06c98f9
Comment 44•2 years ago
|
||
Hello!
Is there anything QA can do here to verify that this issue is resolved?
If yes, could you please provide us with STR of what to verify?
Thank you in advance!
| Assignee | ||
Comment 45•2 years ago
|
||
Not sure this requires verification, but to do it, see the instructions at https://wiki.mozilla.org/Thunderbird:OpenPGP#OpenPGP_log
Then interact with an OpenPGP message and see that logs are logged in the error console.
Comment 46•2 years ago
|
||
Thank you for leading me to the OpenPGP_log instructions.
Confirming this issue as verified fixed on macOS 14, Ubuntu 22 and Windows 11 with 126.0b2(20240429201016).
Updated•2 years ago
|
Updated•2 years ago
|
Description
•