Your message dated Wed, 07 May 2025 11:38:40 +0000
with message-id <[email protected]>
and subject line Bug#1104686: fixed in prosody-modules
0.0~hg20250402.f315edc39f3d+dfsg-2
has caused the Debian Bug report #1104686,
regarding prosody-modules: undefined configmanager in mod_host_guard
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)
--
1104686: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1104686
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: prosody-modules
Version: 0.0~hg20250402.f315edc39f3d+dfsg-1
Severity: normal
Tags: patch
Dear Maintainer,
After enabling the "host_guard" Prosody module, I've got the following
error message in the log:
May 04 10:32:32 runnerINRWevCWhLe6 error Encountered error:
/usr/lib/prosody/modules/mod_host_guard/mod_host_guard.lua:64: attempt to index
a nil value (upvalue 'config')
stack traceback:
/usr/lib/prosody/modules/mod_host_guard/mod_host_guard.lua:64: in
upvalue 'handle_deactivation'
/usr/lib/prosody/modules/mod_host_guard/mod_host_guard.lua:96: in
upvalue 'init_hosts'
/usr/lib/prosody/modules/mod_host_guard/mod_host_guard.lua:118: in
field '?'
/usr/lib/prosody/util/events.lua:81: in function
</usr/lib/prosody/util/events.lua:77>
(...tail calls...)
/usr/lib/prosody/util/startup.lua:473: in field '?'
/usr/lib/prosody/util/events.lua:81: in function
</usr/lib/prosody/util/events.lua:77>
(...tail calls...)
/usr/lib/prosody/util/fsm.lua:25: in upvalue 'notify_transitioned'
/usr/lib/prosody/util/fsm.lua:58: in method 'finish_startup'
/usr/lib/prosody/util/startup.lua:539: in function
'prosody.util.startup.notify_started'
/usr/lib/prosody/util/startup.lua:954: in function
'prosody.util.startup.prosody'
/usr/lib/prosody/util/async.lua:161: in function
'prosody.util.async.default_runner_func'
/usr/lib/prosody/util/async.lua:149: in function
</usr/lib/prosody/util/async.lua:147>
Appears that the configmanager variable used on line 14 of
mod_host_guard.lua is undefined. The following patch fixes the bug:
----------------------------------------------------------------------------------
--- a/mod_host_guard/mod_host_guard.lua
+++ b/mod_host_guard/mod_host_guard.lua
@@ -11,7 +11,7 @@
local guard_protect = module:get_option_set("host_guard_selective", {})
local guard_block_bl = module:get_option_set("host_guard_blacklist", {})
-local config = configmanager
+local config = require "prosody.core.configmanager"
local error_reply = require "util.stanza".error_reply
local tostring = tostring
----------------------------------------------------------------------------------
-- System Information:
Debian Release: 12.10
APT prefers stable-security
APT policy: (500, 'stable-security'), (500, 'proposed-updates'), (500,
'stable'), (1, 'experimental'), (1, 'unstable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 6.12.9+bpo-amd64 (SMP w/24 CPU threads; PREEMPT)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_WARN, TAINT_OOT_MODULE,
TAINT_UNSIGNED_MODULE
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8),
LANGUAGE=en_US:en
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
-- no debconf information
--- End Message ---
--- Begin Message ---
Source: prosody-modules
Source-Version: 0.0~hg20250402.f315edc39f3d+dfsg-2
Done: Sergei Golovan <[email protected]>
We believe that the bug you reported is fixed in the latest version of
prosody-modules, which is due to be installed in the Debian FTP archive.
A summary of the changes between this version and the previous one is
attached.
Thank you for reporting the bug, which will now be closed. If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Sergei Golovan <[email protected]> (supplier of updated prosody-modules
package)
(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
Format: 1.8
Date: Wed, 07 May 2025 13:51:37 +0300
Source: prosody-modules
Architecture: source
Version: 0.0~hg20250402.f315edc39f3d+dfsg-2
Distribution: unstable
Urgency: medium
Maintainer: Debian XMPP Maintainers <[email protected]>
Changed-By: Sergei Golovan <[email protected]>
Closes: 1104686
Changes:
prosody-modules (0.0~hg20250402.f315edc39f3d+dfsg-2) unstable; urgency=medium
.
* team upload
* fix undefined variable in mod_host_guard (closes: #1104686)
Checksums-Sha1:
5418f9c8db723aca59f41af36c6c0f57ebbd1c3d 2208
prosody-modules_0.0~hg20250402.f315edc39f3d+dfsg-2.dsc
12ecd8b77cd0ec2e5fe4c03cae91dd18147f1db4 33248
prosody-modules_0.0~hg20250402.f315edc39f3d+dfsg-2.debian.tar.xz
d800a954232332bd8b8ad8e0092df2f18005b4c9 6356
prosody-modules_0.0~hg20250402.f315edc39f3d+dfsg-2_amd64.buildinfo
Checksums-Sha256:
8a49a52968a0c51a9072e54ea2a19b8e8e4fc70320e3ab9c0863a55e4ee26aae 2208
prosody-modules_0.0~hg20250402.f315edc39f3d+dfsg-2.dsc
4c5e5a724202d2af086caf2f818bdff3cfbeadb5d17961653495110e165c93f8 33248
prosody-modules_0.0~hg20250402.f315edc39f3d+dfsg-2.debian.tar.xz
8a87fe880d0424a5744f1d5dcaa2709ada74d4637fe52a3838f395929d640cdf 6356
prosody-modules_0.0~hg20250402.f315edc39f3d+dfsg-2_amd64.buildinfo
Files:
68eebaa1b4acb1cd912dc90d22b629d7 2208 net optional
prosody-modules_0.0~hg20250402.f315edc39f3d+dfsg-2.dsc
71f7d3a051a1ec0cf3cf983da0e14c05 33248 net optional
prosody-modules_0.0~hg20250402.f315edc39f3d+dfsg-2.debian.tar.xz
c31b073dd3648cd56ade8d7f02ec04ce 6356 net optional
prosody-modules_0.0~hg20250402.f315edc39f3d+dfsg-2_amd64.buildinfo
-----BEGIN PGP SIGNATURE-----
iQIzBAEBCAAdFiEE/SYPsyDB+ShSnvc4Tyrk60tj54cFAmgbQKIACgkQTyrk60tj
54dVEBAAg+Bq7nMD1K/gbLv/YGSaTTlZMVvnlOtu5Zo4Vj2UrywrVZ54I/4on9QB
ewDY7w5/07qCJoanoyiQXm2yXXhItfl0DDOGixVnfOOaA7nj0/1DW7WD/wX9xm6F
k7cA94RKJ+RVBfwvNsoLIuCk71S/6BWsiDUn8Q96hvFVMRd000n0MvQ2xxWb2Xx5
ePRbSvo55aS1KcT8DbGPxfC/A4nHCmFh3mkcYnDZH49qAx6krupmERZB4DwTWTQA
eV/UKtejzicmjlzlkq+ivD6Cm+CQSXOYwGI8U9Nn71rcG6oSbaRXQ/ntNiFxK5OJ
E6m4/0xn2ZXDd/SH6WGdALD7Hrwi7lBSLpvTsyvUNUshiVfoPlYKtSiRNVV9uZUd
f/DlxIWk/7yzFaVrqWAqGu3ClM8/L8UO8gb0jdapQ0RwfKx4vHnZd/McyPapxNce
UrZPGeuSVRjrWvvWVPoAWBL01nsaWwDBf1QwuLVWU7959l4p/ARxFdP3FnsCGQXH
2xtqlcVGUN23Xjyl0BXX91a1OqyJ9xmmAEZpYbFKMmJuVUXUN8AmpfrjCBNn3bk4
Cn8vOqCHYQ9tKgUE/h4ClhJyUwYrrl8dYdZGqQtV1eFINeY7eM/yeozMDIF8/HKi
ogM/89RzcbGklrZydbxdAVEon0WUM+Sp9CeiAGNeFskKx4jpHdE=
=9rBV
-----END PGP SIGNATURE-----
pgpZpM0Gq_GxJ.pgp
Description: PGP signature
--- End Message ---