Quassel displays blank notifications if < > or & is in text

Bug #373804 reported by Mackenzie Morgan
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
quassel (Ubuntu)
Fix Released
Low
Mackenzie Morgan
Jaunty
Won't Fix
Undecided
Unassigned

Bug Description

Impact:
Notifications fsent from Quassel to KNotify which contain "<" ">" or "&" are parsed as broken HTML so the notifications do not display any message at all, just the sender's name.

Explanation:
The upstream patch catches characters that could be present in HTML tags and escapes them.

TEST CASE:
Open Quassel on one computer and put it on an inactive desktop. From another computer, send a message highlighting the user that is logged on in Quassel with text containing problematic characters, like "<3 Quassel". Only the sender's nick will be displayed in the notification. The text "<3 Quassel" will not.

I do not see any regression potential as the patch is very simple and straightforward.

Changed in quassel (Ubuntu):
assignee: nobody → Mackenzie Morgan (maco.m)
importance: Undecided → Low
status: New → Triaged
Revision history for this message
Scott Kitterman (kitterman) wrote : Re: [Bug 373804] Re: Quassel displays blank notifications if < > or & is in text

Is this in their 0.4.2 branch.

Revision history for this message
Mackenzie Morgan (maco.m) wrote :
description: updated
Changed in quassel (Ubuntu Jaunty):
status: New → In Progress
Revision history for this message
Martin Pitt (pitti) wrote :

The uploaded fix looks weird: it changes the existing debian/patches/notification-fix.patch to do

- QString message = QString("<b>&lt;%1&gt;</b> %2").arg(n.sender, n.message);
+ QString message = QString("<b>&lt;%1&gt;</b> %2").arg(n.sender, Qt::escape(n.message));

and then adds a new patch debian/patches/unblank_notifications.patch which _also_ does above change (plus some others). Also, the changelog does not document the change in notification-fix.patch

Please check this again.

Revision history for this message
Scott Kitterman (kitterman) wrote :

I think I know what happened. I'll redo it.

Revision history for this message
Jonathan Thomas (echidnaman) wrote :

Fixed in karmic/trunk.

Changed in quassel (Ubuntu):
status: Triaged → Fix Released
Revision history for this message
Alex Valavanis (valavanisalex) wrote :

Jaunty reached end-of-life on 23 October 2010, so this bug will not be fixed in that version of Ubuntu. It has been fixed in newer versions.

Changed in quassel (Ubuntu Jaunty):
status: In Progress → Won't Fix
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.