Closed Bug 1787955 Opened 2 years ago Closed 2 years ago

Dot stuffing doesn't work in NNTP-JS, article cut off at line only containing a dot

Categories

(MailNews Core :: Networking: NNTP, defect)

Thunderbird 102
defect

Tracking

(thunderbird_esr102+ fixed, thunderbird105 fixed)

RESOLVED FIXED
106 Branch
Tracking Status
thunderbird_esr102 + fixed
thunderbird105 --- fixed

People

(Reporter: newsfan, Assigned: rnons)

References

(Blocks 1 open bug, Regression)

Details

(Keywords: regression)

Attachments

(1 file)

User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/104.0.0.0 Safari/537.36

Steps to reproduce:

Post a news article with a leading dot, so something like:

.1 dot
..2 dots
... 3 dots

Actual results:

The first dot of each line is removed upon receipt.

Expected results:

https://datatracker.ietf.org/doc/html/rfc3977 calls for "dot stuffing":

  1. If any line of the data block begins with the "termination octet"
    ("." or %x2E), that line MUST be "dot-stuffed" by prepending an
    additional termination octet to that line of the block.

  2. When a multi-line block is interpreted, the "dot-stuffing" MUST
    be undone; i.e., the recipient MUST ensure that, in any line
    beginning with the termination octet followed by octets other
    than a CRLF pair, that initial termination octet is disregarded.

(Seems similar to space-stuffing for format=flowed messages.)

It is worse. A message is cut off if a line in the composition only consists of a dot. This is still working in the old C++ module.

Blocks: tb102found
Flags: needinfo?(remotenonsense)
Keywords: regression
Summary: Dot stuffing doesn't work in NNTP → Dot stuffing doesn't work in NNTP-JS, article cut off at line only containing a dot

Thanks, on it.

Assignee: nobody → remotenonsense
Status: UNCONFIRMED → ASSIGNED
Ever confirmed: true
Flags: needinfo?(remotenonsense)
Regressed by: nntp-js
Target Milestone: --- → 106 Branch

Pushed by mkmelin@iki.fi:
https://hg.mozilla.org/comm-central/rev/9786cf9408c3
Fix dot-stuffing when posting NNTP article. r=mkmelin

Status: ASSIGNED → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED

Comment on attachment 9292183 [details]
Bug 1787955 - Fix dot-stuffing when posting NNTP article. r=mkmelin

[Approval Request Comment]
Regression caused by (bug #): bug 1707550
User impact if declined: Sending news article that has lines starting with dot may be clipped
Testing completed (on c-c, etc.): c-c
Risk to taking this patch (and alternatives if risky): low

Attachment #9292183 - Flags: approval-comm-beta?

Comment on attachment 9292183 [details]
Bug 1787955 - Fix dot-stuffing when posting NNTP article. r=mkmelin

[Triage Comment]
Approved for beta

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

Comment on attachment 9292183 [details]
Bug 1787955 - Fix dot-stuffing when posting NNTP article. r=mkmelin

[Approval Request Comment]
Regression caused by (bug #): bug 1707550
User impact if declined: Sending news article that has lines starting with dot may be clipped
Testing completed (on c-c, etc.): beta
Risk to taking this patch (and alternatives if risky): low

Attachment #9292183 - Flags: approval-comm-esr102?

Comment on attachment 9292183 [details]
Bug 1787955 - Fix dot-stuffing when posting NNTP article. r=mkmelin

[Triage Comment]
approved for esr102

Attachment #9292183 - Flags: approval-comm-esr102? → approval-comm-esr102+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: