openmicroscopy/openmicroscopy — pull request #2994 by chris-allan (2014-09-01 09:43:35+00:00)
Title: Ensure that identity request variables are UTF-8 encoded

It is critical that the server recieves UTF-8 encoded strings and not
`unicode` instances. Passing such instances blindly to the `str()`
constructor will result in a `UnicodeDecodeError` being raised.

To test (before):

* Have a user with extended (non Latin-1 characters in username and/or password)
* Using the `BlitzGateway` attempt to login; will fail silently
* If logging at `DEBUG` should log a `UnicodeDecodeError`

To test (after):

* Have a user with extended (non Latin-1 characters in username and/or password)
* Using the `BlitzGateway` attempt to login; should succeed