Last modified: 2013-07-31 23:37:06 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T54313, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 52313 - HTML Email Notifications - Text snippets have weird characters
HTML Email Notifications - Text snippets have weird characters
Status: RESOLVED FIXED
Product: MediaWiki extensions
Classification: Unclassified
Echo (Other open bugs)
unspecified
All All
: High normal (vote)
: ---
Assigned To: bsitu
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-07-31 07:16 UTC by Fabrice Florin
Modified: 2013-07-31 23:37 UTC (History)
5 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments
HTML-Email-Notification-Weird-Characters-Bug.png (29.15 KB, image/png)
2013-07-31 07:16 UTC, Fabrice Florin
Details

Description Fabrice Florin 2013-07-31 07:16:31 UTC
Created attachment 13024 [details]
HTML-Email-Notification-Weird-Characters-Bug.png

Some HTML Email notifications show weird characters in text snippets for talk page messages. 

Here are two examples from recent emails: 

• 

—

This seems to happen when the original message includes special HTML codes. For example, here is the wiki markup for the first example (&#8226, see attached):

'Testing HTML email notifications. Yay, <font style="font-family:Georgia, serif;">[[User:Steven Walling|Steven Walling]]&nbsp;&bull;&nbsp;[[User talk:Steven Walling|<span style="color: #8080b0">talk</span>]]</font>  20:15, 30 July 2013 (UTC)'

... which caused the HTML Email to display:

'Testing HTML email notifications. Yay, &#8226; ['

So in this case, the weird characters were triggered by this the offending HTML code:

'<font style="font-family:Georgia, serif;">'

My proposed resolution for this issue is to not display in the notification any sentence that includes any such HTML characters -- and just show three dots instead ('...').

This text snippet is only provided as a convenience, as the preceding notification sentence carries all the essential information and links. Most notifications will not have any text snippets, so this is more of an edge case. Therefore, it seems more effective to omit non-essential information that could confuse the user for no good reason.
Comment 1 Gerrit Notification Bot 2013-07-31 21:45:15 UTC
Change 77055 had a related patch set uploaded by Bsitu:
(bug 52313) Do not show text snippet with undecoded chars

https://gerrit.wikimedia.org/r/77055
Comment 2 Gerrit Notification Bot 2013-07-31 22:17:40 UTC
Change 77055 merged by jenkins-bot:
(bug 52313) Do not show text snippet with undecoded chars

https://gerrit.wikimedia.org/r/77055
Comment 3 Fabrice Florin 2013-07-31 23:37:06 UTC
I tested this on English Wikipedia and it works as intended. If a text snippet has any weird characters, we do not show it at all, as proposed above. We think this is a reasonable solution for now. If needed, we can tweak this some more when we return from Wikimania in mid-August. Thanks, Benny!

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links