After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 649277 - Banshee's notifications use non-standard tags
Banshee's notifications use non-standard tags
Status: RESOLVED FIXED
Product: banshee
Classification: Other
Component: User Interface
2.0.0
Other Linux
: Normal normal
: 1.x
Assigned To: Banshee Maintainers
Banshee Maintainers
: 650314 655747 661675 661771 663005 663201 664135 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2011-05-03 13:13 UTC by Laurent Pointecouteau
Modified: 2011-11-15 19:02 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Sample notification (26.61 KB, image/png)
2011-05-03 13:13 UTC, Laurent Pointecouteau
  Details
notification in gnome 3.2 (21.32 KB, image/png)
2011-10-16 15:29 UTC, Quentin van der Brempt
  Details
patch (852 bytes, patch)
2011-10-16 15:38 UTC, Quentin van der Brempt
none Details | Review
gnome3-notification.patch (1.03 KB, patch)
2011-10-19 06:13 UTC, Travis Glenn Hansen
none Details | Review
gnome3-notification.patch (1.01 KB, patch)
2011-10-19 06:16 UTC, Travis Glenn Hansen
committed Details | Review

Description Laurent Pointecouteau 2011-05-03 13:13:56 UTC
Created attachment 187123 [details]
Sample notification

According to this downstream report : 

http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=588999

, this is related to Banshee using non-standard markup for notifications. As a result, markup such as <span> show up in the notification bubble, making it unpleasant to see and difficult to read.
Comment 1 Michael Martin-Smucker 2011-06-24 19:18:23 UTC
Based on a similar report, it looks like this is an issue with the notification system, not Banshee, so I'm closing this report.

*** This bug has been marked as a duplicate of bug 650314 ***
Comment 2 Bert Vermeulen 2011-06-24 22:47:54 UTC
I'm afraid the conclusion in bug 650314 is wrong. This is not about a typo, or a problem with xfce4-notifyd. Banshee is generating <span> tags, and those are simply not allowed according to the standard:

http://www.galago-project.org/specs/notification/0.9/x161.html

In other words, it's not actually HTML -- it's a very limited number of tags, and <span> isn't one of them. I assume some notification daemons support more tags, and that's what the banshee developers use, but those are not standard.

If applications generate non-standard tags it's no surprise that those applications are going to break on systems that are merely standards compliant.
Comment 3 Michael Martin-Smucker 2011-06-27 12:45:02 UTC
Thanks for the clarification (and the link to the spec).  While it's less than ideal that Xfce mangles tags it doesn't recognize, it's true that Banshee should avoid using the <span> tag altogether, so I'm reopening and confirming this.

Next up, trying to think of the best fix for this...  It looks like Banshee is currently trying to change font size and color like this: <span color="value" size="value"></span>.  In normal html, spans don't have color or size attributes -- do any notification daemons support this? Is this actually accomplishing anything?

If so, could we instead do something like <i color="value" size="value"> ?  Since <i> is a recognized tag, hopefully this wouldn't break Xfce's notifications, but it could still change color and size as needed with notification systems that support that sort of thing.

Anyway, just speculating -- I'll have to play around with this when I get home.
Comment 4 Michael Martin-Smucker 2011-06-27 12:48:33 UTC
*** Bug 650314 has been marked as a duplicate of this bug. ***
Comment 5 finswimmer77 2011-06-28 09:24:29 UTC
If my tests are correct and I understand the sourcecode of xfce's notification daemon, the only markups they support yet are. <b>,<i>,<u>,<a href="">,<img href="" alt="">, all others were printed as normal text (with a typo in the closing tag)

As long as there is no span-tag supported or unsupported tags were just ignored, I see no other solution than banshee restricts his notification on these markups.
Comment 6 Michael Martin-Smucker 2011-08-01 19:18:36 UTC
*** Bug 655747 has been marked as a duplicate of this bug. ***
Comment 7 Michael Martin-Smucker 2011-10-13 17:18:56 UTC
*** Bug 661675 has been marked as a duplicate of this bug. ***
Comment 8 André Klapper 2011-10-14 15:20:14 UTC
*** Bug 661771 has been marked as a duplicate of this bug. ***
Comment 9 André Klapper 2011-10-14 15:23:51 UTC
(In reply to comment #2)
> simply not allowed according to the standard:
> 
> http://www.galago-project.org/specs/notification/0.9/x161.html

GNOME's standard is actually defined here:
http://developer.gnome.org/notification-spec/
Comment 10 Quentin van der Brempt 2011-10-16 15:29:19 UTC
Created attachment 199127 [details]
notification in gnome 3.2
Comment 11 Quentin van der Brempt 2011-10-16 15:38:08 UTC
Created attachment 199128 [details] [review]
patch

Solved the problem by using <i> tags instead of spans.
Comment 12 Travis Glenn Hansen 2011-10-19 06:13:02 UTC
Created attachment 199398 [details] [review]
gnome3-notification.patch

Remove unused code.
Comment 13 Travis Glenn Hansen 2011-10-19 06:16:46 UTC
Created attachment 199399 [details] [review]
gnome3-notification.patch

Just realized also don't need String.Format either.
Comment 14 Bertrand Lorentz 2011-10-23 15:33:16 UTC
Review of attachment 199399 [details] [review]:

Thanks for the patch Travis, I committed it in git master :
http://git.gnome.org/browse/banshee/commit/?id=6c9a3fde

In the future, it'd be helpful if you could use "git format-patch" to produce the patch. See this page for more info :
http://banshee.fm/contribute/write-code/
Comment 15 Bertrand Lorentz 2011-10-23 15:33:36 UTC
This problem has been fixed in the development version. The fix will be available in the next major software release. Thank you for your bug report.
Comment 16 Bertrand Lorentz 2011-10-31 17:36:04 UTC
*** Bug 663005 has been marked as a duplicate of this bug. ***
Comment 17 Bertrand Lorentz 2011-11-01 22:11:23 UTC
*** Bug 663201 has been marked as a duplicate of this bug. ***
Comment 18 Michael Martin-Smucker 2011-11-15 19:02:26 UTC
*** Bug 664135 has been marked as a duplicate of this bug. ***