linuxserver / docker-doublecommander

GNU General Public License v3.0
33 stars 2 forks source link

[BUG] Enabling http authorization causes 500 Internal Server Error #23

Open serenitatis opened 3 weeks ago

serenitatis commented 3 weeks ago

Is there an existing issue for this?

Current Behavior

Enabling HTTP Basic auth via Docker environment variables breakes Double Commander access with 500 error by Nginx web server.

Expected Behavior

Enabling auth makes Double Commander accessible only with user name and password.

Steps To Reproduce

  1. Add to docker-compose file variables CUSTOM_USER and PASSWORD with any value (123/123 for example).
  2. Recreate container with docker-compose.
  3. Try to access Double Commander from browser and get 500 error.

Environment

- OS: openmediavault 7.4.5-1 (Sandworm) based on Debian 12
- How docker service was installed: distro's packagemanager

CPU architecture

x86-64

Docker creation

services:
  doublecommander:
    image: lscr.io/linuxserver/doublecommander:latest
    container_name: doublecommander
    environment:
      - CUSTOM_USER=test
      - PASSWORD=test
      - PUID=0
      - PGID=0
      - TZ=Europe/Moscow
      #- NO_DECOR=true
      - NO_FULL=true
      - TITLE=Double Commander
    volumes:
      - ./config:/config
      - ./config:/root/.config/doublecmd
      - /:/mnt/rootfs # SKIP_BACKUP
      - /srv/dev-disk-by-uuid-71fc4aec-406f-4381-a4f1-493ae845dc8e:/home-srv/Disk-1 # SKIP_BACKUP
      - /srv/dev-disk-by-uuid-9e71c43d-02c6-490c-8c4c-dea321f0a5db:/home-srv/Disk-2 # SKIP_BACKUP
      - /srv/dev-disk-by-uuid-caac0317-4ca9-4f94-a7fc-f227d968f075:/home-srv/Disk-3 # SKIP_BACKUP
    ports:
      - 8010:3000
      - 8011:3001
    restart: unless-stopped

Container logs

[migrations] started
[migrations] no migrations found
───────────────────────────────────────

      ██╗     ███████╗██╗ ██████╗
      ██║     ██╔════╝██║██╔═══██╗
      ██║     ███████╗██║██║   ██║
      ██║     ╚════██║██║██║   ██║
      ███████╗███████║██║╚██████╔╝
      ╚══════╝╚══════╝╚═╝ ╚═════╝

   Brought to you by linuxserver.io
───────────────────────────────────────

To support LSIO projects visit:
https://www.linuxserver.io/donate/

───────────────────────────────────────
GID/UID
───────────────────────────────────────

User UID:    0
User GID:    0
───────────────────────────────────────
[custom-init] No custom files found, skipping...

Xvnc KasmVNC 1.2.0 - built Aug 17 2024 19:02:57
Copyright (C) 1999-2018 KasmVNC Team and many others (see README.me)
See http://kasmweb.com for information on KasmVNC.
Underlying X server release 12014000, The X.Org Foundation

Obt-Message: Xinerama extension is not present on the server
[ls.io-init] done.
17
SystemLocale en_US
SystemLanguage en
SystemEncoding UTF-8
DefaultSystemCodePage 65001
DefaultFileSystemCodePage 65001
DefaultRTLFileSystemCodePage 65001
XInitThreads: 1
Starting GuiMessageQueue
Starting Double Commander
Double Commander 1.0.10
Revision: 239
Commit: d00f8b7b7
Build: 2023/02/11
Lazarus: 2.2.4.0
Free Pascal: 3.2.2
Platform: x86_64-Linux-gtk2
System: Debian 12.6
Desktop Environment: Unknown
Widgetset library: GTK 2.24.33
This program is free software released under terms of GNU GPL 2
*** BUG ***
In pixman_region_init_rect: Invalid rectangle passed
Set a breakpoint on '_pixman_log_error' to debug

*** BUG ***
In pixman_region_init_rect: Invalid rectangle passed
Set a breakpoint on '_pixman_log_error' to debug

(C)opyright 2006-2023 Alexander Koblov (alexx2000@mail.ru)
   and contributors (see about dialog)
Executable directory: /usr/lib/doublecmd/
Loading configuration from /root/.config/doublecmd/
Loading lng file: /usr/lib/doublecmd/language/doublecmd.ru.po
Error loading configuration file /root/.config/doublecmd/favoritetabs.xml
PollThread: Start polling
PollThread: AddPoll 8
Creating PixmapManager
Loading icon theme DCTheme
Loading icon theme DCTheme
Error: pixmap [/usr/lib/doublecmd/doublecmd] not loaded!
TColumnsFileView.Create components
Creating TFileSystemFileSource
TColumnsFileView.Create components
UDisks: Cannot acquire connection to DBUS system bus: org.freedesktop.DBus.Error.FileNotFound Failed to connect to socket /run/dbus/system_bus_socket: No such file or directory
PollThread: AddPoll 14
UDev: Begin monitoring
FileSystemWatcher thread starting
Detecting mounts through /proc/self/mounts
PollThread: AddPoll 15
Error loading configuration file /root/.config/doublecmd/highlighters.xml
frmMain.frmMainShow
github-actions[bot] commented 3 weeks ago

Thanks for opening your first issue here! Be sure to follow the relevant issue templates, or risk having this issue marked as invalid.