Hi all,

I've seen several unicode issues reported recently, so here is
another one: I just tried to log in and naively copy and pasted
my password from one browser to another: ••••••••

This upset Galaxy,

143.234.100.162 - - [21/Aug/2013:15:47:55 +0100] "POST
/galaxy/user/login?use_panels=False HTTP/1.1" 500 -
"http://xxx/galaxy/user/login"; "Mozilla/4.0 (compatible; MSIE 7.0;
Windows NT 5.1; Trident/4.0; .NET CLR 1.1.4322; .NET CLR 2.0.50727;
.NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; .NET4.0C; .NET4.0E)"
Error - <type 'exceptions.UnicodeEncodeError'>: 'ascii' codec can't
encode characters in position 0-7: ordinal not in range(128)
URL: http://ppserver/galaxy/user/login?use_panels=False
File '/mnt/galaxy/galaxy-dist/lib/galaxy/web/framework/middleware/error.py',
line 149 in __call__
  app_iter = self.application(environ, sr_checker)
File '/mnt/galaxy/galaxy-dist/eggs/Paste-1.7.5.1-py2.6.egg/paste/recursive.py',
line 84 in __call__
  return self.application(environ, start_response)
File 
'/mnt/galaxy/galaxy-dist/eggs/Paste-1.7.5.1-py2.6.egg/paste/httpexceptions.py',
line 633 in __call__
  return self.application(environ, start_response)
File '/mnt/galaxy/galaxy-dist/lib/galaxy/web/framework/base.py', line
132 in __call__
  return self.handle_request( environ, start_response )
File '/mnt/galaxy/galaxy-dist/lib/galaxy/web/framework/base.py', line
190 in handle_request
  body = method( trans, **kwargs )
File '/mnt/galaxy/galaxy-dist/lib/galaxy/webapps/galaxy/controllers/user.py',
line 438 in login
  message, status, user, success = self.__validate_login( trans, **kwd )
File '/mnt/galaxy/galaxy-dist/lib/galaxy/webapps/galaxy/controllers/user.py',
line 485 in __validate_login
  elif not user.check_password( password ):
File '/mnt/galaxy/galaxy-dist/lib/galaxy/model/__init__.py', line 100
in check_password
  return galaxy.security.passwords.check_password( cleartext, self.password )
File '/mnt/galaxy/galaxy-dist/lib/galaxy/security/passwords.py', line
30 in check_password
  if hashlib.sha1( guess ).hexdigest() == hashed:
UnicodeEncodeError: 'ascii' codec can't encode characters in position
0-7: ordinal not in range(128)


Peter

___________________________________________________________
Please keep all replies on the list by using "reply all"
in your mail client.  To manage your subscriptions to this
and other Galaxy lists, please use the interface at:
  http://lists.bx.psu.edu/

To search Galaxy mailing lists use the unified search at:
  http://galaxyproject.org/search/mailinglists/

Reply via email to