omero-py icon indicating copy to clipboard operation
omero-py copied to clipboard

Bug: Python Login with unicode username

Open pwalczysko opened this issue 4 years ago • 1 comments

"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 avatar Nov 04 '19 15:11 pwalczysko