Package: python3-klaus Version: 1.5.2-1 Severity: normal Tags: upstream, fixed-upstream, patch
Dear maintainer, If basic/digest authentication is configured and authentication is required, klaus fails with HTTP error 500. The server log shows: TypeError: sequence of byte string values expected, value of type str found This problem is already fixed upstream, in particular in the following lines: --- httpauth/httpauth.py +++ klaus/httpauth.py @@ -132,7 +132,8 @@ '401 Authentication Required', [('WWW-Authenticate', make_www_authenticate_header(self.realm))], ) - return ['<h1>401 - Authentication Required</h1>'] + html = '<h1>401 - Authentication Required</h1>' + return [html if PY2 else html.encode()] Updating the vendored copy of httpauth should fix this issue. Met vriendelijke groet, Wessel Dankers -- System Information: Debian Release: bullseye/sid APT prefers testing APT policy: (500, 'testing') Architecture: amd64 (x86_64) Foreign Architectures: i386 Kernel: Linux 5.10.0-6-amd64 (SMP w/4 CPU threads) Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE Locale: LANG=nl_NL.UTF-8, LC_CTYPE=nl_NL.UTF-8 (charmap=UTF-8), LANGUAGE not set Shell: /bin/sh linked to /usr/bin/dash Init: systemd (via /run/systemd/system) Versions of packages python3-klaus depends on: ii python3 3.9.2-3 ii python3-dulwich 0.20.15-1 ii python3-flask 1.1.2-2 ii python3-humanize 3.2.0-1 ii python3-pygments 2.7.1+dfsg-2 ii python3-six 1.15.0-2 ii python3-werkzeug 1.0.1+dfsg1-2 Versions of packages python3-klaus recommends: ii python3-chardet 4.0.0-1 ii python3-distutils 3.9.2-1 ii python3-docutils 0.16+dfsg-4 pn python3-markdown <none> Versions of packages python3-klaus suggests: pn exuberant-ctags <none> pn uwsgi-plugin-python3 | gunicorn3 <none> -- no debconf information