Package: calibre Version: 2.5.0+dfsg-1 Severity: normal Dear Maintainer, I was trying to use my e-reader's (FBReader on Android) opds facility to retreive the list of books available from calibre so I could download a new one. It reported a 500 error each time I tried. I was expecting it to present me with a list of headings that would allow me to locate an e-book for download. This is a procedure that worked fine when the server was wheezy rather than jessie. I checked the server logs and found the following: 192.168.2.145 - - [26/May/2015:14:59:25] "GET /calibre/opds HTTP/1.1" 401 757 "" "FBReader/2.0.6-ics(java)" 192.168.2.145 - - [26/May/2015:14:59:25] "GET /calibre/opds HTTP/1.1" 500 823 "" "FBReader/2.0.6-ics(java)" 192.168.2.145 - - [26/May/2015:15:00:30] "GET /calibre/opds HTTP/1.1" 401 757 "" "FBReader/2.0.6-ics(java)" 192.168.2.145 - - [26/May/2015:15:00:30] "GET /calibre/opds HTTP/1.1" 500 823 "" "FBReader/2.0.6-ics(java)" 192.168.2.145 - - [26/May/2015:15:01:20] "GET /calibre/opds HTTP/1.1" 401 757 "" "FBReader/2.0.6-ics(java)" 192.168.2.145 - - [26/May/2015:15:01:21] "GET /calibre/opds HTTP/1.1" 500 823 "" "FBReader/2.0.6-ics(java)" 192.168.2.145 - - [26/May/2015:15:01:22] "GET /calibre/opds HTTP/1.1" 401 757 "" "FBReader/2.0.6-ics(java)" 192.168.2.145 - - [26/May/2015:15:01:22] "GET /calibre/opds HTTP/1.1" 500 823 "" "FBReader/2.0.6-ics(java)" 192.168.2.145 - - [26/May/2015:15:01:23] "GET /calibre/opds HTTP/1.1" 401 757 "" "FBReader/2.0.6-ics(java)" 192.168.2.145 - - [26/May/2015:15:01:23] "GET /calibre/opds HTTP/1.1" 500 823 "" "FBReader/2.0.6-ics(java)" 192.168.2.145 - - [26/May/2015:15:01:49] "GET /calibre/odps HTTP/1.1" 404 744 "" "FBReader/2.0.6-ics(java)" 192.168.2.145 - - [26/May/2015:15:02:00] "GET /calibre/opds HTTP/1.1" 401 757 "" "FBReader/2.0.6-ics(java)" 192.168.2.145 - - [26/May/2015:15:02:00] "GET /calibre/opds HTTP/1.1" 500 823 "" "FBReader/2.0.6-ics(java)"
and [26/May/2015:14:59:25] HTTP Traceback (most recent call last): File "/usr/lib/python2.7/dist-packages/cherrypy/_cprequest.py", line 670, in respond response.body = self.handler() File "/usr/lib/python2.7/dist-packages/cherrypy/lib/encoding.py", line 217, in __call__ self.body = self.oldhandler(*args, **kwargs) File "/usr/lib/python2.7/dist-packages/cherrypy/_cpdispatch.py", line 61, in __call__ return self.callable(*self.args, **self.kwargs) File "/usr/lib/calibre/calibre/library/server/utils.py", line 54, in do ans = func(*args, **kwargs) File "/usr/lib/calibre/calibre/library/server/utils.py", line 108, in authenticate self.secret) File "/usr/lib/python2.7/dist-packages/cherrypy/lib/auth_digest.py", line 364, in digest_auth ha1 = get_ha1(realm, auth.username) File "/usr/lib/python2.7/dist-packages/cherrypy/lib/auth_digest.py", line 57, in get_ha1 return md5_hex('%s:%s:%s' % (username, realm, password)) File "/usr/lib/python2.7/dist-packages/cherrypy/lib/auth_digest.py", line 30, in <lambda> md5_hex = lambda s: md5(ntob(s)).hexdigest() File "/usr/lib/python2.7/dist-packages/cherrypy/_cpcompat.py", line 68, in ntob assert_native(n) File "/usr/lib/python2.7/dist-packages/cherrypy/_cpcompat.py", line 111, 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) A bit of googling around led me to this bug report: https://bugs.launchpad.net/calibre/+bug/1445685 So I removed the password and it did indeed work after this. However making one's e-book collection available to the world is the sort of thing that can get one in legal trouble and if I'm going to get involved in copyfight civil disobedience I'd like that to be an active choice. -- System Information: Debian Release: 8.0 APT prefers stable APT policy: (500, 'stable') Architecture: i386 (x86_64) Foreign Architectures: amd64 Kernel: Linux 3.16.0-4-amd64 (SMP w/8 CPU cores) Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/bash Init: systemd (via /run/systemd/system) Versions of packages calibre depends on: ii calibre-bin 2.5.0+dfsg-1 ii fonts-liberation 1.07.4-1 ii imagemagick 8:6.8.9.9-5 ii libjs-mathjax 2.4-2 ii poppler-utils 0.26.5-2 ii python-apsw 3.8.6-r1-1 ii python-beautifulsoup 3.2.1-1 ii python-chardet 2.3.0-1 ii python-cherrypy3 3.5.0-1 ii python-cssselect 0.9.1+git90c72b0-1 ii python-cssutils 0.9.10-1 ii python-dateutil 2.2-2 ii python-dbus 1.2.0-2+b3 ii python-feedparser 5.1.3-3 ii python-imaging 2.6.1-2 ii python-lxml 3.4.0-1 ii python-markdown 2.5.1-2 ii python-mechanize 1:0.2.5-3 ii python-netifaces 0.10.4-0.1 ii python-pil 2.6.1-2 ii python-pkg-resources 5.5.1-1 ii python-pyparsing 2.0.3+dfsg1-1 ii python-pyqt5 5.3.2+dfsg-3 ii python-pyqt5.qtsvg 5.3.2+dfsg-3 ii python-pyqt5.qtwebkit 5.3.2+dfsg-3 ii python-routes 2.0-1 ii python2.7 2.7.9-2 ii xdg-utils 1.1.0~rc1+git20111210-7.4 Versions of packages calibre recommends: ii python-dnspython 1.12.0-1 calibre suggests no packages. -- Configuration Files: /etc/bash_completion.d/calibre ad99a9010e6d5c196b46ca11d965c012 [Errno 2] No such file or directory: u'/etc/bash_completion.d/calibre ad99a9010e6d5c196b46ca11d965c012' -- no debconf information -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org