Closed Bug 1929011 Opened 4 months ago Closed 4 months ago

XMPP chat can't handle messages inside CDATA XML

Categories

(Chat Core :: XMPP, defect)

Thunderbird 128
defect

Tracking

(thunderbird_esr128 fixed, thunderbird134 fixed)

RESOLVED FIXED
134 Branch
Tracking Status
thunderbird_esr128 --- fixed
thunderbird134 --- fixed

People

(Reporter: lukas.buchs, Assigned: clokep)

Details

Attachments

(1 file)

Steps to reproduce:

Some XMPP clients (for example eM Client) send XMPP chat messages inside a CDATA element. They are not shown in Thunderbird.

The XMPP XML looks like this:

<body><![CDATA[this is my chat message text]]></body>

thunderbird only accept messages like this:

<body>this is my chat message text</body>

Actual results:

Thunderbird does not show the message

Expected results:

Thunderbird should show the message

Assignee: nobody → clokep
Status: UNCONFIRMED → ASSIGNED
Ever confirmed: true

Looks like we don't handle CDATA at all...

Pushed by john@thunderbird.net:
https://hg.mozilla.org/comm-central/rev/71ce935d70a6
Fix handling of CDATA in XMPP streams. r=mkmelin

Status: ASSIGNED → RESOLVED
Closed: 4 months ago
Resolution: --- → FIXED
Target Milestone: --- → 134 Branch

Comment on attachment 9435203 [details]
Bug 1929011 - Fix handling of CDATA in XMPP streams. r=#thunderbird-reviewers

[Approval Request Comment]
Regression caused by (bug #): N/A (always a bug)
User impact if declined: Users may miss XMPP messages sent by other clients.
Testing completed (on c-c, etc.): Been on comm-central for ~1 month with no further bug reports.
Risk to taking this patch (and alternatives if risky): Messages could be corrupted if the parsing is incorrect.

Attachment #9435203 - Flags: approval-comm-esr128?

Comment on attachment 9435203 [details]
Bug 1929011 - Fix handling of CDATA in XMPP streams. r=#thunderbird-reviewers

[Triage Comment]
Approved for esr128

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

Attachment

General

Created:
Updated:
Size: