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

Activity

Show:
Guus der Kinderen
changed the StatusDecember 8, 2020 at 2:47 PM
Open
Resolved
Guus der Kinderen
updated the ResolutionDecember 8, 2020 at 2:47 PM
None
Fixed
Guus der Kinderen
updated the Fix versionsDecember 8, 2020 at 2:47 PM
None
4.6.1
Dan Caseley
created the IssueDecember 3, 2020 at 12:34 PM
Fixed

Details

Assignee

Reporter

Fix versions

Priority

Created December 3, 2020 at 12:34 PM
Updated December 8, 2020 at 2:47 PM
Resolved December 8, 2020 at 2:47 PM

Flag notifications