Group name with & in the name causes exception

Description

If you create a group with & in the name, then you can't edit or delete that group and get exceptions.

HTTP ERROR 500 javax.servlet.ServletException: javax.servlet.ServletException: org.jivesoftware.openfire.group.GroupNotFoundException: Group with name Test not found (cached).

URI: /group-edit.jsp
STATUS: 500
MESSAGE: javax.servlet.ServletException: javax.servlet.ServletException: org.jivesoftware.openfire.group.GroupNotFoundException: Group with name Test not found (cached).
SERVLET: org.jivesoftware.openfire.admin.group_002dedit_jsp
CAUSED BY: javax.servlet.ServletException: javax.servlet.ServletException: org.jivesoftware.openfire.group.GroupNotFoundException: Group with name Test not found (cached).
CAUSED BY: javax.servlet.ServletException: org.jivesoftware.openfire.group.GroupNotFoundException: Group with name Test not found (cached).
CAUSED BY: org.jivesoftware.openfire.group.GroupNotFoundException: Group with name Test not found (cached).
Caused by:

javax.servlet.ServletException: javax.servlet.ServletException: org.jivesoftware.openfire.group.GroupNotFoundException: Group with name Test not found (cached).
at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:162)
at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:127)
at org.eclipse.jetty.server.Server.handle(Server.java:516)
at org.eclipse.jetty.server.HttpChannel.lambda$handle$1(HttpChannel.java:388)
at org.eclipse.jetty.server.HttpChannel.dispatch(HttpChannel.java:633)
at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:380)
at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:273)
at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:311)
at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:105)
at org.eclipse.jetty.io.ChannelEndPoint$1.run(ChannelEndPoint.java:104)

The requested group was not found.
Exception:
org.jivesoftware.openfire.group.GroupNotFoundException: Group with name Test not found (cached).
at org.jivesoftware.openfire.group.GroupManager.lambda$toGroup$0(GroupManager.java:380)
at java.util.Optional.orElseThrow(Unknown Source)
at org.jivesoftware.openfire.group.GroupManager.toGroup(GroupManager.java:380)
at org.jivesoftware.openfire.group.GroupManager.getGroup(GroupManager.java:357)
at org.jivesoftware.openfire.group.GroupManager.getGroup(GroupManager.java:335)

Environment

None

Assignee

Guus der Kinderen

Reporter

wroot