Last modified: 2014-04-23 14:33:45 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 T66261, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 64261 - Unicode being saved to database from a cohort upload
Unicode being saved to database from a cohort upload
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-22 20:49 UTC by Kevin Leduc
Modified: 2014-04-23 14:33 UTC (History)
5 users (show)

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


Attachments
Cohort with bad char (3.75 KB, text/plain)
2014-04-22 20:49 UTC, Kevin Leduc
Details

Description Kevin Leduc 2014-04-22 20:49:39 UTC
Created attachment 15167 [details]
Cohort with bad char

Create & Upload a new cohort (see attached)

Fails to validate.
Comment 1 Dan Andreescu 2014-04-22 20:50:32 UTC
Trace that confirms this looks super weird (check out that 18 in the u'18...' below)

    return self.run(*args, **kwargs)
  File "/srv/wikimetrics/wikimetrics/models/validate_cohort.py", line 20, in async_validate
    validate_cohort.run()
  File "/srv/wikimetrics/wikimetrics/models/validate_cohort.py", line 108, in run
    self.validate_records(session, cohort)
  File "/srv/wikimetrics/wikimetrics/models/validate_cohort.py", line 176, in validate_records
    validate_users(wikiusers, project, self.validate_as_user_ids)
  File "/srv/wikimetrics/wikimetrics/models/validate_cohort.py", line 271, in validate_users
    raise e
KeyError: u'18\u041d\u0430\u0442\u0430\u043b\u044c'
Comment 2 Toby Negrin 2014-04-22 22:51:26 UTC
This is hard to prioritize without understanding how common it is -- does the bug impact all users/cohorts?
Comment 3 Dan Andreescu 2014-04-23 14:33:45 UTC
Turned out to be an inconsistent database setup in staging.

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


Navigation
Links