Openfire re-uses the origin-id for stanza-id

Description

XEP-0359 §2.2: "The server or component MAY add a <stanza-id/> element. In that case, it MUST preserve the content of the <origin-id/> element."

As well as preserving the content, Openfire currently reuses the content as its own "stanza-id".
https://github.com/igniterealtime/Openfire/blob/eec3b3b9565e7f0d020101c776e4487a8e3d8a9c/xmppserver/src/main/java/org/jivesoftware/openfire/stanzaid/StanzaIDUtil.java#L105

Openfire should preserve the origin-id, but generate its own unique ID, else risk conflicts by trusting all clients to generate globally unique values.

Environment

None
Fixed

Assignee

Guus der Kinderen

Reporter

Dan Caseley

Labels

None

Expected Effort

None

Ignite Forum URL

None

Fix versions

Priority

Major
Configure