Thunderbird incorrectly reports that an NNTP message has been sent when servers respond to POST with an authentication request.
Categories
(MailNews Core :: Networking: NNTP, defect)
Tracking
(thunderbird_esr128 wontfix, thunderbird_esr140? affected, thunderbird141 wontfix, thunderbird142? fixed, thunderbird143 fixed)
People
(Reporter: welpy-cw, Assigned: welpy-cw)
References
(Regression)
Details
(Keywords: regression)
Attachments
(1 file)
|
48 bytes,
text/x-phabricator-request
|
corey
:
approval-comm-beta+
|
Details | Review |
When a cached NNTP client is reused and the underlying TCP connection must be re-established, the NNTP server may request authentication when the POST command is issued. This situation is not handled correctly, as NNTPClient._currentAction, which holds the action to be repeated after authentication, is still set to _actionGroup. The message send code then receives a report of that command's successful completion, giving the impression that the message had been sent when it actually had not.
| Assignee | ||
Comment 1•3 months ago
|
||
Updated•3 months ago
|
Comment 2•3 months ago
|
||
Do you have a way to reproduce? When I tried posting after severing the connection on a daily build, it did ask me to reauth.
Comment 3•3 months ago
|
||
Two conditions are necessary for the bug to occur:
- "Always request authentication when connecting to this server" must be switched off in the server settings.
- The connection timeout of 170 seconds introduced in Bug 1901338 must have expired for the reconnect to take place.
This results in the STR:
- Turn off that setting.
- Select an article in a newsgroup.
- Wait at least 170 seconds.
- Create and send a response without acting elsewhere in the group.
| Assignee | ||
Comment 4•3 months ago
|
||
Thank you, Alfred, for the concise instructions. Just some additional hints that may make reproducing easier:
- Set
mailnews.nntp.loglevelas well asmailnews.send.logleveltoAll. - You can reduce the connection timeout for the NNTP server to something like 30 sec to speed this up, for example
mail.server.server2.connection_timeoutto30. Whenever a connection is closed, this is logged with "Expected timeout".
The bug itself happens here with NttpClient._actionGroup instead of the appropriate action as defined in NttpClient.post() being called.
| Assignee | ||
Comment 5•3 months ago
|
||
Also you need a news server that requires authentication, so this won't reproduce with news.eternal-september.org for example.
| Assignee | ||
Updated•3 months ago
|
Pushed by brendan@thunderbird.net:
https://hg.mozilla.org/comm-central/rev/1cd9c4860ca1
Fix posting an NNTP message when news server requests auth. r=darktrojan
| Assignee | ||
Comment 7•2 months ago
|
||
Comment on attachment 9503259 [details]
Bug 1979618 - Fix posting an NNTP message when news server requests auth. r=#thunderbird-reviewers
Uplift Approval Request
- Please state case for uplift consideration and ensure bug severity is set: With the fix for Bug 1901338 included in 142, Thunderbird is expected to be much more often in a state where this old bug happens (that is reusing an existing NNTP client that has to reestablish the connection to the server).
- User impact if declined: Thunderbird gives the impression that a newsgroup posting was successfully sent when it actually failed.
- Is this code covered by automated tests?: Yes
- Has the fix been verified in Daily?: Yes
- Has the fix been verified in Beta?: No
- Needs manual test from QA?: No
- If yes, steps to reproduce:
- List of other uplifts needed: None
- Risk to taking this patch: Low
- Why is the change risky/not risky? (and alternatives if risky): Very straightforward fix mainly involving internal variables being properly reset, covered by an automated test.
- Does the fix cause any migrations to be skipped?: No
- String changes made/needed: None.
Comment 8•2 months ago
|
||
Comment on attachment 9503259 [details]
Bug 1979618 - Fix posting an NNTP message when news server requests auth. r=#thunderbird-reviewers
[Triage Comment]
Approved for beta
Comment 9•2 months ago
•
|
||
| bugherder uplift | ||
Thunderbird 142.0b3:
https://hg.mozilla.org/releases/comm-beta/rev/e7e087343dfc
| Assignee | ||
Updated•1 month ago
|
Description
•