Last modified: 2014-10-22 20:39:05 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 T66555, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 64555 - JSON reports printing user names incorrectly if they have non ascii chars
JSON reports printing user names incorrectly if they have non ascii chars
Status: RESOLVED FIXED
Product: Analytics
Classification: Unclassified
Wikimetrics (Other open bugs)
unspecified
All All
: Normal normal
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-04-28 15:43 UTC by nuria
Modified: 2014-10-22 20:39 UTC (History)
6 users (show)

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


Attachments

Description nuria 2014-04-28 15:43:19 UTC
When displaying 'non valid' usernames after a cohort validation we are displaying a stream of bytes rather than the user name. See below:


{
            "mediawiki_username": "\u062e\u0644\u0648\u062f \u0637\u0627\u0631\u0642 \u0639\u0628\u062f \u0627\u0644\u062d\u0643\u064a\u0645 \u0645\u062d\u0645\u062f", 
            "reason_invalid": "invalid user_name"
        },
Comment 1 christian 2014-04-29 13:41:53 UTC
Since your example looks like perfectly fine JSON for an arabic username
to me (ignoring the spaces, which I attribute to copy/paste), I assume you
are referring to that you'd prefer to see the unicode characters unescaped?
Comment 2 nuria 2014-04-29 17:02:19 UTC
Right, cause this is a report that we give to our users so names have to be "legible".
Comment 3 Marcel Ruiz Forns 2014-10-14 13:42:40 UTC
This issue has been solved together with 60628.
Adding an HTML page (instead of JSON) for invalid user lists renders non-ascii characters as unescaped unicode.

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


Navigation
Links