Package: droopy
Version: 0.20160830-2
Severity: normal

Dear Maintainer,

droopy has an authentication option.
> $ droopy -h | grep auth
>   -a AUTH, --auth AUTH  set the authentication credentials, in form USER:PASS

if you try to use this, an error will occur and droopy will not be available.

> $ droopy -d /tmp/upload -m "hello droopy." -p
/tmp/upload/20201224_18\:12\:13-3733667.jpg --chmod 400 -a USER:PASS
>      _____
>     |     \.----.-----.-----.-----.--.--.
>     |  --  |   _|  _  |  _  |  _  |  |  |
>     |_____/|__| |_____|_____|   __|___  |
>                             |__|  |_____|
>
> No configuration file found
> Files will be uploaded to /tmp/upload
>
> HTTP server starting... Check it out at http://localhost:8000
> ----------------------------------------
> Exception occurred during processing of request from (127.0.0.1, 35446)
> Traceback (most recent call last):
>   File "/usr/lib/python3.9/socketserver.py", line 650, in
process_request_thread
>     self.finish_request(request, client_address)
>   File "/usr/lib/python3.9/socketserver.py", line 360, in finish_request
>     self.RequestHandlerClass(request, client_address, self)
>   File "/usr/lib/python3.9/socketserver.py", line 720, in __init__
>     self.handle()
>   File "/usr/bin/droopy", line 397, in handle
>     httpserver.BaseHTTPRequestHandler.handle(self)
>   File "/usr/lib/python3.9/http/server.py", line 427, in handle
>     self.handle_one_request()
>   File "/usr/lib/python3.9/http/server.py", line 415, in handle_one_request
>     method()
>   File "/usr/bin/droopy", line 122, in decorated
>     expected = Basic  + base64.b64encode(self.auth)
>   File "/usr/lib/python3.9/base64.py", line 58, in b64encode
>     encoded = binascii.b2a_base64(s, newline=False)
> TypeError: a bytes-like object is required, not str
> ----------------------------------------

It seems that it has been fixed upstream.
"Make basic authentication work for python 2 & python 3 ยท hdf/Droopy@3ac476f"
https://github.com/hdf/Droopy/commit/3ac476fe4a703c1df99aa5208e1646468ee6aa65

I tried it and it worked.
> $ wget
https://raw.githubusercontent.com/hdf/Droopy/3ac476fe4a703c1df99aa5208e1646468ee6aa65/droopy
> $ python3 ./droopy -a user:pass



-- System Information:
Debian Release: bullseye/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386, armhf, arm64

Kernel: Linux 5.9.11-mptcp (SMP w/4 CPU threads)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_CRAP, TAINT_OOT_MODULE, 
TAINT_UNSIGNED_MODULE
Locale: LANG=ja_JP.UTF-8, LC_CTYPE=ja_JP.UTF-8 (charmap=UTF-8) (ignored: LC_ALL 
set to ja_JP.UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages droopy depends on:
ii  python3  3.9.1-1

droopy recommends no packages.

droopy suggests no packages.

-- no debconf information

Reply via email to