AbstractComponent local entity discovery

Description

I am building my own openfire plugin and I found a bug in org.xmpp.component.AbstractComponent.sentByLocalEntity.

The condition domain.endsWith("." + getDomain()) should actually be getDomain().endsWith("." + domain).

If in org.xmpp.component you set method servesLocalUsersOnly to return true, you will get a not-authorized error for local users.

Environment

None
Fixed

Assignee

Guus der Kinderen

Reporter

George Mournos

Labels

None

Expected Effort

None

Ignite Forum URL

None

Fix versions

Priority

Major