Patch to Monitoring plugin to make it possible to search chat-history for a user over HTTP

Hi,

I made a small extension to the Monitoring plugin-in to make it possible to search chat muc history easily over HTTP (for a particular user).

http://:9090/plugins/monitoring/searchhistor y?user=&startTime=&endTime=

Response

<text>sweet</text>

<context>MUC Channel 1</context>

<time>Fri Oct 31 16:45:53 CET 2014</time>
<text>sweet 2</text>

<context>MUC Channel 1</context>

<time>Fri Oct 31 16:45:53 CET 2014</time>

Is this something that could be included? If so, I would be happy to polish it a bit, update readme/changes and so forth. If not, what do I need to change in order to commit this? It would be great to have this functionality some way, since we cannot allow some of our users to directly access the openfire admin console (since it has no restrictions based on roles).

/ Niklas
httpsearch.patch.zip (2765 Bytes)

Hello, Thanks for your contribution! Are you familiar with GIT / github? So that you could send us a pull request with this change? Indeed, updating the plugin.xml and readme would be needed with this change.

1 Like

I am familiar with GIT, so I fix the missing files and send you a pull request. Is it the following URL?

igniterealtime/Openfire · GitHub

Yes indeed, thank you.