powered by Jive Software

Monitoring - no support for filter on text or 'with' criteria when using mam:2

It seems that Openfire 4.4.4 in combination with monitoring plugin 1.8.1 does not have support for searching in MUC history using ‘search’ or ‘with’ criteria. These two are ignored and all messages are returned.

a query :

<query xmlns='urn:xmpp:mam:2' queryid='ed117397-bf94-41f4-a21d-1f2b0fa205f6'>
	<x xmlns='jabber:x:data' type='submit'>
		<field var='FORM_TYPE' type='hidden'>
			<value>urn:xmpp:mam:2</value>
		</field>
		<field var='start'>
			<value>2019-09-29T11:11:40.928+00:00</value>
		</field>
		<field var='with'>
			<value>user@unknown.test</value>
		</field>
		<field var='end'>
			<value>2019-11-29T11:11:40.929+00:00</value>
		</field>
		<field var='search'>
			<value>unkown TEXT</value>
		</field>
	</x>
</query>

returns the same set of results as a query:

<query xmlns='urn:xmpp:mam:2' queryid='ed117397-bf94-41f4-a21d-1f2b0fa205f6'>
	<x xmlns='jabber:x:data' type='submit'>
		<field var='FORM_TYPE' type='hidden'>
			<value>urn:xmpp:mam:2</value>
		</field>
		<field var='start'>
			<value>2019-09-29T11:11:40.928+00:00</value>
		</field>
		<field var='end'>
			<value>2019-11-29T11:11:40.929+00:00</value>
		</field>
	</x>
</query>

Thank you for your report. I’ve logged this as https://github.com/igniterealtime/openfire-monitoring-plugin/issues/63