Skip to content

OF-2180: Fixes that a local muc role is overridden by a remote muc role after …#1783

Merged
guusdk merged 1 commit intoigniterealtime:masterfrom
cpetzka:fix_local_muc_role_is_added_as_remote_muc_role
Jan 5, 2021
Merged

OF-2180: Fixes that a local muc role is overridden by a remote muc role after …#1783
guusdk merged 1 commit intoigniterealtime:masterfrom
cpetzka:fix_local_muc_role_is_added_as_remote_muc_role

Conversation

@cpetzka
Copy link
Contributor

@cpetzka cpetzka commented Dec 26, 2020

…cluster start up

It is a follow up to https://discourse.igniterealtime.org/t/null-pointer-exception-joining-a-room/88995/21?u=chp but not introduced by https://discourse.igniterealtime.org/t/null-pointer-exception-joining-a-room/88995/7?u=chp

If a cluster node starts, then it can happen that a client establishes a connection and joins the muc before the cluster connection is ready (e.g.: by a plugin, which needs very long time to start).

If the cluster connection is ready, then the senior member queries all the mucs including the online users of the mucs from this cluster node. The cluster node then queries the Mucs including the online users of the cluster from the senior node and enters them in its own maps. However, the cluster node receives its online users again as a RemoteMucRole and overwrites its own LocalMucRole. The consequence is that the user can still send messages, but no longer receive them.

@guusdk guusdk changed the title Fixes that a local muc role is overridden by a remote muc role after … OF-2180: Fixes that a local muc role is overridden by a remote muc role after … Jan 5, 2021
@guusdk
Copy link
Member

guusdk commented Jan 5, 2021

I'd like to merge this - could you re-word the commit to include a reference to "OF-2180" in the commit message? That will allow our bugtracker to correspond changes with issues.

I can rebase this commit myself, but I'm not sure if I'm taking away the credits for the commit by doing so. I'll try that in an hour or so, unless you've beaten me to it. ;-)

@guusdk guusdk added this to the 4.6.1 milestone Jan 5, 2021
@cpetzka cpetzka force-pushed the fix_local_muc_role_is_added_as_remote_muc_role branch from 53f7db4 to 68b22ee Compare January 5, 2021 12:50
@cpetzka cpetzka force-pushed the fix_local_muc_role_is_added_as_remote_muc_role branch from 68b22ee to bb9f6b3 Compare January 5, 2021 12:52
@cpetzka
Copy link
Contributor Author

cpetzka commented Jan 5, 2021

I'd like to merge this - could you re-word the commit to include a reference to "OF-2180" in the commit message? That will allow our bugtracker to correspond changes with issues.

I can rebase this commit myself, but I'm not sure if I'm taking away the credits for the commit by doing so. I'll try that in an hour or so, unless you've beaten me to it. ;-)

Thank you, i have changed the commit message and rebased the branch.

@guusdk guusdk merged commit c964733 into igniterealtime:master Jan 5, 2021
@cpetzka cpetzka deleted the fix_local_muc_role_is_added_as_remote_muc_role branch January 5, 2021 22:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants