Monitoring plugin does not add namespace

Description

After OF-1087, (applied in 1.5.1) the Monitoring plugin stopped returning namespaces in messages that it returns as part of a retrieve-archive request.

As you can see in the reproduction below, the archived messages are returned without a namespace (look at the stanza with ID purpleed855cd3 for example).

If no 'xmlns' is set for the stanza then as per XML namespacing rules it would inherit the 'urn:xmpp:forward:0' namespace, which is wrong (see XEP-0297).

Stanzas should be saved with their original namespace (which will cause them to be returned with their original namespace), but as that won't fix existing archives, and the only stanza being saved is a message stanza, the namespace perhaps could be reconstructed when constucting the MAM response.

Reproduction:

Environment

None

is related to

Activity

Show:

Guus der Kinderen April 27, 2016 at 8:06 PM

This bug is referenced in Stanza.io's bugtracker, here: https://github.com/otalk/stanza.io/issues/139

Fixed

Details

Assignee

Reporter

Fix versions

Priority

Created April 27, 2016 at 7:25 PM
Updated May 19, 2016 at 12:45 PM
Resolved May 19, 2016 at 12:45 PM