notifications do not display content if not supported markup tags are used (aka <a href=... links)

Bug #331019 reported by Alexander Sack
30
This bug affects 2 people
Affects Status Importance Assigned to Milestone
notify-osd (Ubuntu)
Fix Released
High
Mirco Müller
Jaunty
Fix Released
High
Mirco Müller

Bug Description

1. notify-send "Test" 'before <a href="http://www.nothing.tld">link</a> after'

Result:
 Notification pops up only showing the title "Test"; the other content is not rendered at all.

Expected Result:
 Notification appears with title "Test", and body text "before link after".

Specification: <https://wiki.ubuntu.com/NotifyOSD#Sanitizing%20body%20text>

Revision history for this message
Alexander Sack (asac) wrote :

moving alsdorf bugs to new source package: notify-osd

Revision history for this message
Mirco Müller (macslow) wrote :

That is by design. A link implies being able to click on it, but the new jaunty notification spec does not allow notifications to be clickable. So the app doing that needs to be patched. A more indepth explanation of the rationale behind this ui-design decision is in spec. I'll post the link as soon as I have it handy.

Changed in notify-osd:
assignee: nobody → macslow
status: New → Invalid
Revision history for this message
Dominic Evans (oldmanuk) wrote :

not sure I agree with the reason for this bug being marked as invalid

it might be 'by design' to now not display clickable links, but surely it is not correct function to display a blank box if the message contained an <a href... link? you are then asking every single app that previously passed this markup to the notification daemon to add additional code to strip off the markup

surely the correct design would be for notify-osd to strip off the HTML markup and just display all plain text

Changed in notify-osd:
status: Invalid → New
Revision history for this message
Alexander Sack (asac) wrote :

i obviously agree that this is a bug. removing actions is one thing, but also saying that apps are wrong if they include an optional <a href markup is overly strict and notification daemon can do better.

Changed in notify-osd:
status: New → Triaged
Revision history for this message
Alexander Sack (asac) wrote :

general rule: be as strict as necessary, but be as polite as possible

Revision history for this message
Mat Tomaszewski (mat.t.) wrote :

Alexander, I strongly disagree - once we make one exception to "You cannot interact with notification bubbles" rule it will cause a whole bunch of other exceptions to follow, and the whole concept of non-intrusive notifications will be completely dissolved.
It is a tough compromise, but I feel it's the right way to go. Time and life will tell :)

Revision history for this message
Dominic Evans (oldmanuk) wrote :

Nobody is asking for an exception though.

But notify-osd should 'do the right thing' by displaying notifications exactly how they displayed before, but instead of processing and applying markup that allows interactions, they should simply throw that markup away.

What we should not have is 'if text.contains(markup): return', as an empty notification is worse than no notification at all.

Revision history for this message
Mat Tomaszewski (mat.t.) wrote :

Dominic, Alexander, yes of course it should display plain text instead of an empty box.

Revision history for this message
Alexander Sack (asac) wrote :

bumping importance. This is really loss of displayed content without any fallback available.

Changed in notify-osd:
importance: Undecided → High
Revision history for this message
Alexander Sack (asac) wrote :

Suggesting to get this fixed till beta.

Changed in notify-osd:
milestone: none → ubuntu-9.04-beta
Revision history for this message
Alex Rybicki (alex-rybicki) wrote :

Dominic's temporary fix works for me.
http://bazaar.launchpad.net/~gwibber-committers/gwibber/trunk/revision/247

displays plain text instead of a blank box.

Revision history for this message
David Barth (dbarth) wrote :

Assigned to the upstream project. This is really not a packaging bug.

I don't think we should remove the text of the link. We should render it as plain text.

Changed in notify-osd:
assignee: nobody → macslow
importance: Undecided → Medium
status: New → Triaged
description: updated
Revision history for this message
Alexander Sack (asac) wrote : Re: [Bug 331019] Re: notifications do not display content if not supported markup tags are used (aka <a href=... links)

On Wed, Feb 25, 2009 at 12:37:49PM -0000, David Barth wrote:
> Assigned to the upstream project. This is really not a packaging bug.
>
> I don't think we should remove the text of the link. We should render it
> as plain text.

my suggestion was to render it as plain text with _underscore_ attribute.

Not sure if that was understood when i said: "before _link_ after"

 - Alexander

Revision history for this message
Alexander Sack (asac) wrote :

On Thu, Feb 19, 2009 at 06:30:33PM -0000, Mat Tomaszewski wrote:
> Alexander, I strongly disagree - once we make one exception to "You cannot interact with notification bubbles" rule it will cause a whole bunch of other exceptions to follow, and the whole concept of non-intrusive notifications will be completely dissolved.
> It is a tough compromise, but I feel it's the right way to go. Time and life will tell :)
>

you replied here on my line "general rule: be as strict as necessary,
but be as polite as possible"

Which i posted because mirco set this bug to invalid.

Anyway, now you stated that you agree that displaying plain text
(read: being polite) is the right thing here, I now wonder why you
strongly disagreed :).

Anyway, good that we agree ...

 - Alexander

Revision history for this message
Matthew Paul Thomas (mpt) wrote :

I think underlining links would suggest that they are clickable when they are not.

Revision history for this message
Mat Tomaszewski (mat.t.) wrote :

I don't think displaying the hyperlink with the underscore is a good idea. It will suggest that it's clickable, and that's misleading.

Revision history for this message
Mat Tomaszewski (mat.t.) wrote :

MPT, you got there first, *again*.
:)

Revision history for this message
Mat Tomaszewski (mat.t.) wrote :

Alexander, it seems like I was very sleepy/partly unconscious and clearly misread your comment. You're 100% right, what I wrote there doesn't actually make much sense :)

Revision history for this message
Mirco Müller (macslow) wrote :

I've commited a fix, that will pass any text as is, if the markup-filter fails.

Revision history for this message
Mirco Müller (macslow) wrote :

I commited a fix that will pass such text as-is, thus the bubble will not be empty.

Changed in notify-osd:
status: Triaged → Fix Committed
status: Triaged → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package notify-osd - 0.9ubuntu2

---------------
notify-osd (0.9ubuntu2) jaunty; urgency=low

  * Merge bug fixes from trunk (r219):
    - Added max. limit of 10 lines for message-body text.
    - 3-line wrapping for summary text.
    - capability "truncation" now advertised to clients (LP: #337389)
    - non-composite mouse-hover effect now fully blanks (LP: #336108)
    - disable markup-filter if parsing fails (LP: #331019)

 -- Martin Pitt <email address hidden> Wed, 04 Mar 2009 19:47:24 +0100

Changed in notify-osd:
status: Fix Committed → Fix Released
David Barth (dbarth)
Changed in notify-osd:
status: Fix Committed → Fix Released
no longer affects: notify-osd
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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