Last modified: 2014-07-04 16:20:15 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 T69166, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 67166 - test_add_new_tag_utf8 fails
test_add_new_tag_utf8 fails
Status: RESOLVED INVALID
Product: Analytics
Classification: Unclassified
Wikimetrics (Other open bugs)
unspecified
All All
: Unprioritized normal
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-06-26 20:48 UTC by Teresa Cho
Modified: 2014-07-04 16:20 UTC (History)
7 users (show)

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


Attachments

Description Teresa Cho 2014-06-26 20:48:26 UTC
When running tests, test_add_new_tag_utf8 returns an error:

OperationalError: (OperationalError) (1267, "Illegal mix of collations (latin1_swedish_ci,IMPLICIT) and (utf8_general_ci,COERCIBLE) for operation '='") 'SELECT tag.id AS tag_id, tag.name AS tag_name \nFROM tag \nWHERE tag.name = %s \n LIMIT %s' (u'18\u043d\u0430\u0442\u0430\u043b\u044c', 1)
Comment 1 nuria 2014-06-27 07:27:27 UTC
What might be happening is that you need to rebuild your database.

Try:

mysql> drop wikimetrics_testing; drop wikimetrics

and outside vagrant just run 

> vagrant provision 

That should start the database fresh.
Comment 2 Dan Andreescu 2014-07-04 16:20:15 UTC
I couldn't replicate this, and I may have been a bit confused when it was first reported, because of another bug: https://bugzilla.wikimedia.org/show_bug.cgi?id=66671.  Either way, I think this can be solved with nuria's instructions.  The other bug has a patch for review now.

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


Navigation
Links