Comment 5 for bug 1621642

Revision history for this message
Zygimantus (zygimantus) wrote :

Is it fixed? I am using 2.70.0 and I am getting this error:

[16/Oct/2016:11:40:22] HTTP
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/cherrypy/_cprequest.py", line 670, in respond
    response.body = self.handler()
  File "/usr/lib/python2.7/site-packages/cherrypy/lib/encoding.py", line 220, in __call__
    self.body = self.oldhandler(*args, **kwargs)
  File "/usr/lib/python2.7/site-packages/cherrypy/_cpdispatch.py", line 60, in __call__
    return self.callable(*self.args, **self.kwargs)
  File "/usr/lib/calibre/calibre/library/server/utils.py", line 55, in do
    ans = func(*args, **kwargs)
  File "/usr/lib/calibre/calibre/library/server/utils.py", line 110, in authenticate
    self.secret)
  File "/usr/lib/python2.7/site-packages/cherrypy/lib/auth_digest.py", line 363, in digest_auth
    ha1 = get_ha1(realm, auth.username)
  File "/usr/lib/python2.7/site-packages/cherrypy/lib/auth_digest.py", line 58, in get_ha1
    return md5_hex('%s:%s:%s' % (username, realm, password))
  File "/usr/lib/python2.7/site-packages/cherrypy/lib/auth_digest.py", line 31, in <lambda>
    md5_hex = lambda s: md5(ntob(s)).hexdigest()
  File "/usr/lib/python2.7/site-packages/cherrypy/_cpcompat.py", line 54, in ntob
    assert_native(n)
  File "/usr/lib/python2.7/site-packages/cherrypy/_cpcompat.py", line 89, in assert_native
    raise TypeError("n must be a native str (got %s)" % type(n).__name__)
TypeError: n must be a native str (got unicode)