ome / omero-py

Python project containing Ice remoting code for OMERO
https://www.openmicroscopy.org/omero
GNU General Public License v2.0
22 stars 32 forks source link

Bug: Python Login with unicode username #101

Open pwalczysko opened 5 years ago

pwalczysko commented 5 years ago

"Python Login with unicode username doesn't work (web login works) - see report in line 7 of https://docs.google.com/spreadsheets/d/1ry6vS0dmsylFQDAiIZDrPC3kXNpnHSMtK-2yj5X8jaU/edit#gid=420881033

OMERO.server-5.5.1-305-57bcbd0-dirty-ice36-b90$ ./bin/omero shell
Python 3.6.9 |Anaconda, Inc.| (default, Jul 30 2019, 13:42:17)
Type 'copyright', 'credits' or 'license' for more information
IPython 7.8.0 -- An enhanced Interactive Python. Type '?' for help.

In [1]: import omero.clients

In [2]: client=omero.client('py3-ci-devspace.openmicroscopy.org')

In [3]: s=client.createSession('test-£','ome')
---------------------------------------------------------------------------
PermissionDeniedException                 Traceback (most recent call last)
<ipython-input-3-3aa5b6f7dbbf> in <module>
----> 1 s=client.createSession('test-£','ome')

~/tmp/OMERO.server-5.5.1-305-57bcbd0-dirty-ice36-b90/lib/python/omero/clients.py in createSession(self, username, password)
    651                         ctx[omero.constants.IP] = self.__ip
    652                     rtr = self.getRouter(self.__ic)
--> 653                     prx = rtr.createSession(username, password, ctx)
    654
    655                     # Create the adapter

~/anaconda3/envs/tmp/lib/python3.6/site-packages/Glacier2_Router_ice.py in createSession(self, userId, password, _ctx)
    256         """"""
    257         def createSession(self, userId, password, _ctx=None):
--> 258             return _M_Glacier2.Router._op_createSession.invoke(self, ((userId, password), _ctx))
    259
    260         """"""

PermissionDeniedException: exception ::Glacier2::PermissionDeniedException
{
    reason = Password check failed for 'test-£': []
}
"
pwalczysko commented 5 years ago

cc @manics