[Pkg-matrix-maintainers] Bug#1025385: nheko would crash if home server does not have a .well-known served

Boris Shtrasman borissh1983+bugs at gmail.com
Sat Dec 3 18:40:57 GMT 2022


Package: nheko
Version: 0.8.0+really0.7.2-4
Severity: normal
X-Debbugs-Cc: borissh1983+bugs at gmail.com

Dear Maintainer,

I was connecting to an in-house matrix-synapse server,
  the server was setup behind a revese proxy (apache2) but did not have a .well-known served,
  the server did not have an SRV record declared.

I entered @user:subdomain.example.com , and nheko ... crashed.

Example:

[2022-12-03 20:22:28.132] [qml] [warning] QVariant::load: unable to load type 1025. (:0, )
ssl3 ext invalid servername
ssl3 ext invalid servername
[2022-12-03 20:22:28.284] [qml] [warning] Cyclic dependency detected between "file:///usr/lib/x86_64-linux-gnu/qt5/qml/org/kde/kirigami.2/styles/org.kde.desktop.plasma/Units.qml" and "file:///usr/lib/x86_64-linux-gnu/qt5/qml/org/kde/kirigami.2/styles/org.kde.desktop.plasma/Units.qml" (:0, )
[2022-12-03 20:22:29.088] [ui] [info] jdenticon plugin not found.
[2022-12-03 20:22:29.108] [ui] [info] starting nheko 0.7.2
[2022-12-03 20:22:32.887] [qml] [warning] failed to create compose table (:0, )
[2022-12-03 20:22:56.203] [net] [info] Autodiscovery: No .well-known.
terminate called after throwing an instance of 'std::invalid_argument'
  what():  v1.1: invalid version
Aborted

I expected nheko to try to connect to fallback to https://subdomain.example.com as the matrix server.

Having a well-known folder with server that return the same values work as a workaround:

cat /var/www/html/.well-known/matrix/server 
{ "m.server": "subdomain.example.com:443" }


-- System Information:
Debian Release: 11.5
  APT prefers stable-security
  APT policy: (500, 'stable-security'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 5.10.0-19-amd64 (SMP w/12 CPU threads)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE
Locale: LANG=en_IL.UTF-8, LC_CTYPE=en_IL.UTF-8 (charmap=UTF-8), LANGUAGE=en_IL:en
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages nheko depends on:
ii  libboost-iostreams1.74.0       1.74.0-9
ii  libboost-thread1.74.0          1.74.0-9
ii  libc6                          2.31-13+deb11u4
ii  libcmark0.29.0                 0.29.0-4
ii  libfmt7                        7.1.3+ds1-5
ii  libgcc-s1                      10.2.1-6
ii  liblmdb0                       0.9.24-1
ii  libolm3                        3.2.1~dfsg-7
ii  libqt5core5a                   5.15.2+dfsg-9
ii  libqt5dbus5                    5.15.2+dfsg-9
ii  libqt5gui5                     5.15.2+dfsg-9
ii  libqt5network5                 5.15.2+dfsg-9
ii  libqt5qml5                     5.15.2+dfsg-6
ii  libqt5quick5                   5.15.2+dfsg-6
ii  libqt5quickwidgets5            5.15.2+dfsg-6
ii  libqt5widgets5                 5.15.2+dfsg-9
ii  libsodium23                    1.0.18-1
ii  libspdlog1 [libspdlog1-fmt7]   1:1.8.1+ds-2.1
ii  libssl1.1                      1.1.1n-0+deb11u3
ii  libstdc++6                     10.2.1-6
ii  qml-module-qt-labs-settings    5.15.2+dfsg-6
ii  qml-module-qtgraphicaleffects  5.15.2-2
ii  qml-module-qtmultimedia        5.15.2-3
ii  qml-module-qtquick-controls2   5.15.2+dfsg-2
ii  qml-module-qtquick-layouts     5.15.2+dfsg-6
ii  qml-module-qtquick-window2     5.15.2+dfsg-6
ii  qml-module-qtquick2            5.15.2+dfsg-6

Versions of packages nheko recommends:
ii  ca-certificates         20210119
ii  fonts-noto-color-emoji  0~20200916-1

nheko suggests no packages.

-- no debconf information



More information about the Pkg-matrix-maintainers mailing list