[ejabberd] mod_rest does not return process_rosteritems results

David Cunningham dcunningham at voisonics.com
Wed Nov 14 02:57:41 MSK 2012


Hello,

I'm having a problem with using mod_rest to get a list of everyone's
presence roster. When I run "ejabberdctl process_rosteritems" from the
command line I get the results fine, but when calling it via mod_rest it
always returns "0". Examples below.
Anyone have any idea why?
Thanks in advance.


# ejabberdctl process_rosteritems list any any any any
There are 2 roster items in total.

=INFO REPORT==== 14-Nov-2012::09:51:52 ===
D(<5084.4579.0>:ejabberd_commands:314) : Executing command
mod_admin_extra:process_rosteritems with Args=["list",

"any",

"any",

"any",

"any"]
** at node ejabberd at myhost **
Matches: bob at myhost user at myhost
Progress 50% - visited 1 - deleted 1
Matches: user at myhost bob at myhost
Progress 100% - visited 2 - deleted 2


# wget http://myhost:5280/rest/ --server-response --post-data
'process_rosteritems list any any any any' -O index.html
--2012-11-14 09:51:20--  http://myhost:5280/rest/
Resolving myhost... 12.34.56.78
Connecting to myhost|12.34.56.78|:5280... connected.
HTTP request sent, awaiting response...
  HTTP/1.0 200 OK
  Connection: keep-alive
  Content-Type: text/html; charset=utf-8
  Content-Length: 1
Length: 1 [text/html]
Saving to: `index.html'

100%[=====================================================================================>]
1           --.-K/s   in 0s

2012-11-14 09:51:20 (65.5 KB/s) - `index.html' saved [1/1]

# cat index.html
0


-- 
David Cunningham, Voisonics
http://voisonics.com/
USA: +1 213 221 1092
UK: +44 (0) 20 3298 1642
Australia: +61 (0) 2 8063 9019
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.jabber.ru/pipermail/ejabberd/attachments/20121113/bdc661c0/attachment.html>


More information about the ejabberd mailing list