Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

matrix: room handle events bug #4273

Open
thanosapollo opened this issue Aug 25, 2024 · 0 comments
Open

matrix: room handle events bug #4273

thanosapollo opened this issue Aug 25, 2024 · 0 comments
Assignees

Comments

@thanosapollo
Copy link

thanosapollo commented Aug 25, 2024

Environment

  • ejabberd version: 24.07
  • Erlang version: Erlang (SMP,ASYNC_THREADS) (BEAM) emulator version 13.1.5
  • OS: Linux (Debian)
  • Installed from: official binary installer (RUN Installer)

Configuration (only if needed): grep -Ev '^$|^\s*#' ejabberd.yml

certfiles:
  - /opt/ejabberd/conf/server.pem
  - "/opt/ejabberd/certs/*/*.pem"
listen:
[...]
 -
    port: 8448 # Matrix federation
    module: ejabberd_http
    tls: true
    request_handlers:
      "/_matrix": mod_matrix_gw

access_rules:
  local:
    allow: local
  c2s:
    deny: blocked
    allow: all
  s2s:
    allow: all
  announce:
    allow: admin
  configure:
    allow: admin
  muc_create:
    allow: local
  pubsub_createnode:
    allow: local
  trusted_network:
    allow: loopback

s2s_use_starttls: optional
s2s_access: s2s

  mod_matrix_gw:
    host: "matrix.@HOST@"
    matrix_domain: "matrix.chat.thanosapollo.org"
    key_name: "key1"
    key: "mykey1"
    matrix_id_as_jid: true
...

Errors from error.log/crash.log

No errors

Bug description

Trying to create a connection from xmpp to matrix:

2024-08-26 00:39:32.096573+03:00 [info] <0.18367.0>@mod_matrix_gw_room:handle_event/4:597 leaving <<"!bnlUUBwMmkExIMgayx:matrix.chat.thanosapollo.org">>: remote_user_left
2024-08-26 00:39:32.103447+03:00 [info] <0.18367.0>@mod_matrix_gw_room:terminate/3:675 terminated <<"!bnlUUBwMmkExIMgayx:matrix.chat.thanosapollo.org">>: normal
2024-08-26 00:39:37.439962+03:00 [info] <0.18156.0>@mod_matrix_gw_room:handle_event/4:597 leaving <<"!IAJuAtPRBQsytOlOTN:matrix.org">>: remote_user_left
2024-08-26 00:39:37.440723+03:00 [info] <0.18156.0>@mod_matrix_gw_room:terminate/3:675 terminated <<"!IAJuAtPRBQsytOlOTN:matrix.org">>: normal
2024-08-26 00:39:42.472062+03:00 [info] <0.18366.0>@mod_matrix_gw_room:handle_event/4:597 leaving <<"!YhUSSmTsvTIbbIwAEy:matrix.chat.thanosapollo.org">>: remote_user_left
2024-08-26 00:39:42.472654+03:00 [info] <0.18366.0>@mod_matrix_gw_room:terminate/3:675 terminated <<"!YhUSSmTsvTIbbIwAEy:matrix.chat.thanosapollo.org">>: normal
2024-08-26 00:39:47.012670+03:00 [info] <0.18170.0>@mod_matrix_gw_room:handle_event/4:597 leaving <<"!jqefJEAFofLnjJFDHh:matrix.chat.thanosapollo.org">>: remote_user_left
2024-08-26 00:39:47.013506+03:00 [info] <0.18170.0>@mod_matrix_gw_room:terminate/3:675 terminated <<"!jqefJEAFofLnjJFDHh:matrix.chat.thanosapollo.org">>: normal
2024-08-26 00:39:51.269303+03:00 [info] <0.18158.0>@mod_matrix_gw_room:handle_event/4:597 leaving <<"!wMMRvTEENLnClPDiFG:matrix.chat.thanosapollo.org">>: remote_user_left
2024-08-26 00:39:51.269925+03:00 [info] <0.18158.0>@mod_matrix_gw_room:terminate/3:675 terminated <<"!wMMRvTEENLnClPDiFG:matrix.chat.thanosapollo.org">>: normal
2024-08-26 00:39:54.943904+03:00 [info] <0.18169.0>@mod_matrix_gw_room:handle_event/4:597 leaving <<"!OnutgNLdsLedYFhDtt:matrix.chat.thanosapollo.org">>: remote_user_left
2024-08-26 00:39:54.944360+03:00 [info] <0.18169.0>@mod_matrix_gw_room:terminate/3:675 terminated <<"!OnutgNLdsLedYFhDtt:matrix.chat.thanosapollo.org">>: normal
2024-08-26 00:39:58.972183+03:00 [info] <0.18164.0>@mod_matrix_gw_room:handle_event/4:597 leaving <<"!HpWnLTeOCsMMFhFLka:matrix.chat.thanosapollo.org">>: remote_user_left
2024-08-26 00:39:58.973049+03:00 [info] <0.18164.0>@mod_matrix_gw_room:terminate/3:675 terminated <<"!HpWnLTeOCsMMFhFLka:matrix.chat.thanosapollo.org">>: normal

Multiple chat rooms are created by just sending "test" as a message (xmpp->matrix). One of them will have the message sent, the rest will be empty rooms. When the matrix user joins & sends any message it will be "echoed" back as sent by the xmpp user, while the xmpp messages won't be received. Any messages sent by the xmpp user will be sent in a new room.

Tests done using a matrix.org account.

@processone processone deleted a comment from Neustradamus Oct 21, 2024
@mremond mremond assigned mremond and alexeyshch and unassigned mremond Oct 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants