powered by Jive Software

Openfire 4.5.4 and local group "Friends"

Hi, I have a group “Friends” that is created in Spark when you add a person to your friends list.
Openfire writes an error in its logs.
It seems that he is trying to find it in LDAP.

2020.10.11 11:38:50 org.jivesoftware.openfire.ldap.LdapGroupProvider - Unable to load group: Friends
org.jivesoftware.openfire.group.GroupNotFoundException: Groupname Friends not found
at org.jivesoftware.openfire.ldap.LdapManager.findGroupRDN(LdapManager.java:1296) ~[xmppserver-4.5.4.jar:4.5.4]
at org.jivesoftware.openfire.ldap.LdapManager.findGroupAbsoluteDN(LdapManager.java:1229) ~[xmppserver-4.5.4.jar:4.5.4]
at org.jivesoftware.openfire.ldap.LdapGroupProvider.getGroup(LdapGroupProvider.java:87) [xmppserver-4.5.4.jar:4.5.4]
at org.jivesoftware.openfire.group.GroupManager.getGroup(GroupManager.java:365) [xmppserver-4.5.4.jar:4.5.4]
at org.jivesoftware.openfire.group.GroupManager.getGroup(GroupManager.java:333) [xmppserver-4.5.4.jar:4.5.4]
at org.jivesoftware.openfire.roster.RosterItem.setGroups(RosterItem.java:446) [xmppserver-4.5.4.jar:4.5.4]
at org.jivesoftware.openfire.roster.RosterItem.setAsCopyOf(RosterItem.java:598) [xmppserver-4.5.4.jar:4.5.4]
at org.jivesoftware.openfire.handler.IQRosterHandler.manageRoster(IQRosterHandler.java:239) [xmppserver-4.5.4.jar:4.5.4]
at org.jivesoftware.openfire.handler.IQRosterHandler.handleIQ(IQRosterHandler.java:118) [xmppserver-4.5.4.jar:4.5.4]
at org.jivesoftware.openfire.handler.IQHandler.process(IQHandler.java:62) [xmppserver-4.5.4.jar:4.5.4]
at org.jivesoftware.openfire.IQRouter.handle(IQRouter.java:369) [xmppserver-4.5.4.jar:4.5.4]
at org.jivesoftware.openfire.IQRouter.route(IQRouter.java:112) [xmppserver-4.5.4.jar:4.5.4]
at org.jivesoftware.openfire.spi.PacketRouterImpl.route(PacketRouterImpl.java:74) [xmppserver-4.5.4.jar:4.5.4]
at org.jivesoftware.openfire.net.StanzaHandler.processIQ(StanzaHandler.java:366) [xmppserver-4.5.4.jar:4.5.4]
at org.jivesoftware.openfire.net.ClientStanzaHandler.processIQ(ClientStanzaHandler.java:95) [xmppserver-4.5.4.jar:4.5.4]
at org.jivesoftware.openfire.net.StanzaHandler.process(StanzaHandler.java:316) [xmppserver-4.5.4.jar:4.5.4]
at org.jivesoftware.openfire.net.StanzaHandler.process(StanzaHandler.java:203) [xmppserver-4.5.4.jar:4.5.4]
at org.jivesoftware.openfire.nio.ConnectionHandler.messageReceived(ConnectionHandler.java:183) [xmppserver-4.5.4.jar:4.5.4]
at org.apache.mina.core.filterchain.DefaultIoFilterChain$TailFilter.messageReceived(DefaultIoFilterChain.java:1015) [mina-core-2.1.3.jar:?]
at org.apache.mina.core.filterchain.DefaultIoFilterChain.callNextMessageReceived(DefaultIoFilterChain.java:650) [mina-core-2.1.3.jar:?]
at org.apache.mina.core.filterchain.DefaultIoFilterChain.access$1300(DefaultIoFilterChain.java:49) [mina-core-2.1.3.jar:?]
at org.apache.mina.core.filterchain.DefaultIoFilterChain$EntryImpl$1.messageReceived(DefaultIoFilterChain.java:1128) [mina-core-2.1.3.jar:?]
at org.apache.mina.core.filterchain.IoFilterAdapter.messageReceived(IoFilterAdapter.java:122) [mina-core-2.1.3.jar:?]
at org.apache.mina.core.filterchain.DefaultIoFilterChain.callNextMessageReceived(DefaultIoFilterChain.java:650) [mina-core-2.1.3.jar:?]
at org.apache.mina.core.filterchain.DefaultIoFilterChain.access$1300(DefaultIoFilterChain.java:49) [mina-core-2.1.3.jar:?]
at org.apache.mina.core.filterchain.DefaultIoFilterChain$EntryImpl$1.messageReceived(DefaultIoFilterChain.java:1128) [mina-core-2.1.3.jar:?]
at org.apache.mina.filter.codec.ProtocolCodecFilter$ProtocolDecoderOutputImpl.flush(ProtocolCodecFilter.java:413) [mina-core-2.1.3.jar:?]
at org.apache.mina.filter.codec.ProtocolCodecFilter.messageReceived(ProtocolCodecFilter.java:257) [mina-core-2.1.3.jar:?]
at org.apache.mina.core.filterchain.DefaultIoFilterChain.callNextMessageReceived(DefaultIoFilterChain.java:650) [mina-core-2.1.3.jar:?]
at org.apache.mina.core.filterchain.DefaultIoFilterChain.access$1300(DefaultIoFilterChain.java:49) [mina-core-2.1.3.jar:?]
at org.apache.mina.core.filterchain.DefaultIoFilterChain$EntryImpl$1.messageReceived(DefaultIoFilterChain.java:1128) [mina-core-2.1.3.jar:?]
at org.apache.mina.core.filterchain.IoFilterEvent.fire(IoFilterEvent.java:106) [mina-core-2.1.3.jar:?]
at org.apache.mina.core.session.IoEvent.run(IoEvent.java:89) [mina-core-2.1.3.jar:?]
at org.apache.mina.filter.executor.OrderedThreadPoolExecutor$Worker.runTask(OrderedThreadPoolExecutor.java:766) [mina-core-2.1.3.jar:?]
at org.apache.mina.filter.executor.OrderedThreadPoolExecutor$Worker.runTasks(OrderedThreadPoolExecutor.java:758) [mina-core-2.1.3.jar:?]
at org.apache.mina.filter.executor.OrderedThreadPoolExecutor$Worker.run(OrderedThreadPoolExecutor.java:697) [mina-core-2.1.3.jar:?]
at java.lang.Thread.run(Thread.java:748) [?:1.8.0_222]
2020.10.12 10:23:43 org.jivesoftware.openfire.ldap.LdapGroupProvider - Unable to load group: Friends
org.jivesoftware.openfire.group.GroupNotFoundException: Groupname Friends not found
at org.jivesoftware.openfire.ldap.LdapManager.findGroupRDN(LdapManager.java:1296) ~[xmppserver-4.5.4.jar:4.5.4]
at org.jivesoftware.openfire.ldap.LdapManager.findGroupAbsoluteDN(LdapManager.java:1229) ~[xmppserver-4.5.4.jar:4.5.4]
at org.jivesoftware.openfire.ldap.LdapGroupProvider.getGroup(LdapGroupProvider.java:87) [xmppserver-4.5.4.jar:4.5.4]
at org.jivesoftware.openfire.group.GroupManager.getGroup(GroupManager.java:365) [xmppserver-4.5.4.jar:4.5.4]
at org.jivesoftware.openfire.group.GroupManager.getGroup(GroupManager.java:333) [xmppserver-4.5.4.jar:4.5.4]
at org.jivesoftware.openfire.roster.RosterItem.setGroups(RosterItem.java:446) [xmppserver-4.5.4.jar:4.5.4]
at org.jivesoftware.openfire.roster.RosterItem.setAsCopyOf(RosterItem.java:598) [xmppserver-4.5.4.jar:4.5.4]
at org.jivesoftware.openfire.handler.IQRosterHandler.manageRoster(IQRosterHandler.java:239) [xmppserver-4.5.4.jar:4.5.4]
at org.jivesoftware.openfire.handler.IQRosterHandler.handleIQ(IQRosterHandler.java:118) [xmppserver-4.5.4.jar:4.5.4]
at org.jivesoftware.openfire.handler.IQHandler.process(IQHandler.java:62) [xmppserver-4.5.4.jar:4.5.4]
at org.jivesoftware.openfire.IQRouter.handle(IQRouter.java:369) [xmppserver-4.5.4.jar:4.5.4]
at org.jivesoftware.openfire.IQRouter.route(IQRouter.java:112) [xmppserver-4.5.4.jar:4.5.4]
at org.jivesoftware.openfire.spi.PacketRouterImpl.route(PacketRouterImpl.java:74) [xmppserver-4.5.4.jar:4.5.4]
at org.jivesoftware.openfire.net.StanzaHandler.processIQ(StanzaHandler.java:366) [xmppserver-4.5.4.jar:4.5.4]
at org.jivesoftware.openfire.net.ClientStanzaHandler.processIQ(ClientStanzaHandler.java:95) [xmppserver-4.5.4.jar:4.5.4]
at org.jivesoftware.openfire.net.StanzaHandler.process(StanzaHandler.java:316) [xmppserver-4.5.4.jar:4.5.4]
at org.jivesoftware.openfire.net.StanzaHandler.process(StanzaHandler.java:203) [xmppserver-4.5.4.jar:4.5.4]
at org.jivesoftware.openfire.nio.ConnectionHandler.messageReceived(ConnectionHandler.java:183) [xmppserver-4.5.4.jar:4.5.4]
at org.apache.mina.core.filterchain.DefaultIoFilterChain$TailFilter.messageReceived(DefaultIoFilterChain.java:1015) [mina-core-2.1.3.jar:?]
at org.apache.mina.core.filterchain.DefaultIoFilterChain.callNextMessageReceived(DefaultIoFilterChain.java:650) [mina-core-2.1.3.jar:?]
at org.apache.mina.core.filterchain.DefaultIoFilterChain.access$1300(DefaultIoFilterChain.java:49) [mina-core-2.1.3.jar:?]
at org.apache.mina.core.filterchain.DefaultIoFilterChain$EntryImpl$1.messageReceived(DefaultIoFilterChain.java:1128) [mina-core-2.1.3.jar:?]
at org.apache.mina.core.filterchain.IoFilterAdapter.messageReceived(IoFilterAdapter.java:122) [mina-core-2.1.3.jar:?]
at org.apache.mina.core.filterchain.DefaultIoFilterChain.callNextMessageReceived(DefaultIoFilterChain.java:650) [mina-core-2.1.3.jar:?]
at org.apache.mina.core.filterchain.DefaultIoFilterChain.access$1300(DefaultIoFilterChain.java:49) [mina-core-2.1.3.jar:?]
at org.apache.mina.core.filterchain.DefaultIoFilterChain$EntryImpl$1.messageReceived(DefaultIoFilterChain.java:1128) [mina-core-2.1.3.jar:?]
at org.apache.mina.filter.codec.ProtocolCodecFilter$ProtocolDecoderOutputImpl.flush(ProtocolCodecFilter.java:413) [mina-core-2.1.3.jar:?]
at org.apache.mina.filter.codec.ProtocolCodecFilter.messageReceived(ProtocolCodecFilter.java:257) [mina-core-2.1.3.jar:?]
at org.apache.mina.core.filterchain.DefaultIoFilterChain.callNextMessageReceived(DefaultIoFilterChain.java:650) [mina-core-2.1.3.jar:?]
at org.apache.mina.core.filterchain.DefaultIoFilterChain.access$1300(DefaultIoFilterChain.java:49) [mina-core-2.1.3.jar:?]
at org.apache.mina.core.filterchain.DefaultIoFilterChain$EntryImpl$1.messageReceived(DefaultIoFilterChain.java:1128) [mina-core-2.1.3.jar:?]
at org.apache.mina.core.filterchain.IoFilterEvent.fire(IoFilterEvent.java:106) [mina-core-2.1.3.jar:?]
at org.apache.mina.core.session.IoEvent.run(IoEvent.java:89) [mina-core-2.1.3.jar:?]
at org.apache.mina.filter.executor.OrderedThreadPoolExecutor$Worker.runTask(OrderedThreadPoolExecutor.java:766) [mina-core-2.1.3.jar:?]
at org.apache.mina.filter.executor.OrderedThreadPoolExecutor$Worker.runTasks(OrderedThreadPoolExecutor.java:758) [mina-core-2.1.3.jar:?]
at org.apache.mina.filter.executor.OrderedThreadPoolExecutor$Worker.run(OrderedThreadPoolExecutor.java:697) [mina-core-2.1.3.jar:?]
at java.lang.Thread.run(Thread.java:748) [?:1.8.0_222]

When using an external User and Groups provider like LDAP, that data is expected to be ‘read only’. I don’t believe that Openfire supports creating additional groups (that would not be in LDAP) (if it does, I’d be happy to be corrected).

The more obvious fix to me seems to be to disable this functionality in Spark, after it somehow detects that a read-only mechanism is used.

I’ve tried to put this into a ticket https://issues.igniterealtime.org/browse/SPARK-2180

1 Like

Thanks to wroot for logging the issue.
I played a little more and here’s what I can say:
1.testuser2 can only add testuser to the Friends group. And testuser, when accepting the invitation, can add testuser2 to both the “Friends” group and the “Not in any group” group.
Screenshot_587
Screenshot_586
2.I tried to add the user testuser myself, testuser accepts the invitation and offers to put me in the group “Not in any group” after that, I disappear from my LDAP group and do not appear in the group"Not in any group".
3.The group “Not in any group” also causes an error in Openfire.

2020.10.15 13:54:00 ERROR [socket_c2s-thread-4]: org.jivesoftware.openfire.ldap.LdapGroupProvider - Unable to load group: Ни в одной группе
org.jivesoftware.openfire.group.GroupNotFoundException: Groupname Ни в одной группе not found
at org.jivesoftware.openfire.ldap.LdapManager.findGroupRDN(LdapManager.java:1296) ~[xmppserver-4.5.4.jar:4.5.4]
at org.jivesoftware.openfire.ldap.LdapManager.findGroupAbsoluteDN(LdapManager.java:1229) ~[xmppserver-4.5.4.jar:4.5.4]
at org.jivesoftware.openfire.ldap.LdapGroupProvider.getGroup(LdapGroupProvider.java:87) [xmppserver-4.5.4.jar:4.5.4]
at org.jivesoftware.openfire.group.GroupManager.getGroup(GroupManager.java:365) [xmppserver-4.5.4.jar:4.5.4]
at org.jivesoftware.openfire.group.GroupManager.getGroup(GroupManager.java:333) [xmppserver-4.5.4.jar:4.5.4]
at org.jivesoftware.openfire.roster.RosterItem.setGroups(RosterItem.java:446) [xmppserver-4.5.4.jar:4.5.4]
at org.jivesoftware.openfire.roster.RosterItem.setAsCopyOf(RosterItem.java:598) [xmppserver-4.5.4.jar:4.5.4]
at org.jivesoftware.openfire.handler.IQRosterHandler.manageRoster(IQRosterHandler.java:239) [xmppserver-4.5.4.jar:4.5.4]
at org.jivesoftware.openfire.handler.IQRosterHandler.handleIQ(IQRosterHandler.java:118) [xmppserver-4.5.4.jar:4.5.4]
at org.jivesoftware.openfire.handler.IQHandler.process(IQHandler.java:62) [xmppserver-4.5.4.jar:4.5.4]
at org.jivesoftware.openfire.IQRouter.handle(IQRouter.java:369) [xmppserver-4.5.4.jar:4.5.4]
at org.jivesoftware.openfire.IQRouter.route(IQRouter.java:112) [xmppserver-4.5.4.jar:4.5.4]
at org.jivesoftware.openfire.spi.PacketRouterImpl.route(PacketRouterImpl.java:74) [xmppserver-4.5.4.jar:4.5.4]
at org.jivesoftware.openfire.net.StanzaHandler.processIQ(StanzaHandler.java:366) [xmppserver-4.5.4.jar:4.5.4]
at org.jivesoftware.openfire.net.ClientStanzaHandler.processIQ(ClientStanzaHandler.java:95) [xmppserver-4.5.4.jar:4.5.4]
at org.jivesoftware.openfire.net.StanzaHandler.process(StanzaHandler.java:316) [xmppserver-4.5.4.jar:4.5.4]
at org.jivesoftware.openfire.net.StanzaHandler.process(StanzaHandler.java:203) [xmppserver-4.5.4.jar:4.5.4]
at org.jivesoftware.openfire.nio.ConnectionHandler.messageReceived(ConnectionHandler.java:183) [xmppserver-4.5.4.jar:4.5.4]
at org.apache.mina.core.filterchain.DefaultIoFilterChain$TailFilter.messageReceived(DefaultIoFilterChain.java:1015) [mina-core-2.1.3.jar:?]
at org.apache.mina.core.filterchain.DefaultIoFilterChain.callNextMessageReceived(DefaultIoFilterChain.java:650) [mina-core-2.1.3.jar:?]
at org.apache.mina.core.filterchain.DefaultIoFilterChain.access$1300(DefaultIoFilterChain.java:49) [mina-core-2.1.3.jar:?]
at org.apache.mina.core.filterchain.DefaultIoFilterChain$EntryImpl$1.messageReceived(DefaultIoFilterChain.java:1128) [mina-core-2.1.3.jar:?]
at org.apache.mina.core.filterchain.IoFilterAdapter.messageReceived(IoFilterAdapter.java:122) [mina-core-2.1.3.jar:?]
at org.apache.mina.core.filterchain.DefaultIoFilterChain.callNextMessageReceived(DefaultIoFilterChain.java:650) [mina-core-2.1.3.jar:?]
at org.apache.mina.core.filterchain.DefaultIoFilterChain.access$1300(DefaultIoFilterChain.java:49) [mina-core-2.1.3.jar:?]
at org.apache.mina.core.filterchain.DefaultIoFilterChain$EntryImpl$1.messageReceived(DefaultIoFilterChain.java:1128) [mina-core-2.1.3.jar:?]
at org.apache.mina.filter.codec.ProtocolCodecFilter$ProtocolDecoderOutputImpl.flush(ProtocolCodecFilter.java:413) [mina-core-2.1.3.jar:?]
at org.apache.mina.filter.codec.ProtocolCodecFilter.messageReceived(ProtocolCodecFilter.java:257) [mina-core-2.1.3.jar:?]
at org.apache.mina.core.filterchain.DefaultIoFilterChain.callNextMessageReceived(DefaultIoFilterChain.java:650) [mina-core-2.1.3.jar:?]
at org.apache.mina.core.filterchain.DefaultIoFilterChain.access$1300(DefaultIoFilterChain.java:49) [mina-core-2.1.3.jar:?]
at org.apache.mina.core.filterchain.DefaultIoFilterChain$EntryImpl$1.messageReceived(DefaultIoFilterChain.java:1128) [mina-core-2.1.3.jar:?]
at org.apache.mina.core.filterchain.IoFilterEvent.fire(IoFilterEvent.java:106) [mina-core-2.1.3.jar:?]
at org.apache.mina.core.session.IoEvent.run(IoEvent.java:89) [mina-core-2.1.3.jar:?]
at org.apache.mina.filter.executor.OrderedThreadPoolExecutor$Worker.runTask(OrderedThreadPoolExecutor.java:766) [mina-core-2.1.3.jar:?]
at org.apache.mina.filter.executor.OrderedThreadPoolExecutor$Worker.runTasks(OrderedThreadPoolExecutor.java:758) [mina-core-2.1.3.jar:?]
at org.apache.mina.filter.executor.OrderedThreadPoolExecutor$Worker.run(OrderedThreadPoolExecutor.java:697) [mina-core-2.1.3.jar:?]
at java.lang.Thread.run(Thread.java:748) [?:1.8.0_222]

p.s These problems all happen when you mix LDAP and usual groups. I don’t think anyone will use usual groups if they have a domain, so I don’t think these bugs are critical, I just wanted to talk about them. Thanks.