IQRouter throws NPEs when routing stanzas without 'from' attribute

Description

Openfire throws a NPE when routing a stanza that has no 'from' address. IQRouter tries to determine the domain of the 'from' address, to see if the entity is eligible to initiate S2S.

Under conditions, it is permissible to route stanzas that have no 'from' attribute. Section 8.1.2.1 of RFC 6120 describes how to handle these stanzas.

Notably, stanzas without 'from' attribute is not permissible in s2s traffic.

IQRouter's implementation should be modified to prevent evaluation if the stanza is to be routed over S2S if the 'from' stanza is missing (as having no 'from' attribute in S2S is illegal).

If the 'to' address is present, and does not reflect the local domain, some kind of error should occur.

Environment

None

Activity

Show:
Fixed

Details

Assignee

Reporter

Ignite Forum URL

Components

Fix versions

Priority

Created October 20, 2020 at 9:56 AM
Updated October 29, 2020 at 3:03 PM
Resolved October 29, 2020 at 3:03 PM