MUC - Managing Discussion History does not work.
Mon, 2010-08-16 17:32
Hi all.
I'm using Tigase Server to manage XMPP stranzas sent from a web client (JSJac and Strophe) through Bosh. I'm sending a presence stranza with this specific History manage attribute:
<history maxchars='0'/>According to the XEP-0045 Multi-User Chat specification (http://xmpp.org/extensions/xep-0045.html#enter-managehistory), the XMPP server should not return any history messages at all if you specify the maxchars='0' attribute, but the problem is that I keep receiving all the history messages even if don't want to get them.
These are the stranza messages I got while debugging the XMPP traffic:
<presence to='testchatroom@muc.xmpp.example.com/User2'>
<x xmlns='http://jabber.org/protocol/muc'>
<history maxchars='0'/>
</x>
</presence>
<presence xmlns='jabber:client'
to='testUser@xmpp.example.com/tigase-1'
from='testchatroom@muc.xmpp.example.com/User1'>
<x xmlns='http://jabber.org/protocol/muc#user'>
<item affiliation='none'
jid='testUser1@xmpp.example.com/res1'
role='participant'
nick='User1'/>
</x>
</presence>
<presence xmlns='jabber:client'
to='testUser@xmpp.example.com/tigase-1'
from='testchatroom@muc.xmpp.example.com/User2'>
<x xmlns='http://jabber.org/protocol/muc#user'>
<status code='110'/>
<status code='100'/>
<status code='170'/>
<item affiliation='member'
jid='testUser@xmpp.example.com/tigase-1'
role='participant'
nick='User2'/>
</x>
</presence>
<message from='testchatroom@muc.xmpp.example.com/User1'
to='testUser@xmpp.example.com/tigase-1'
type='groupchat'>
<body>
1
</body>
<delay from='testUser1@xmpp.example.com/res1'
xmlns='urn:xmpp:delay'
stamp='2010-08-16T15:28:48Z'/>
<x from='testUser1@xmpp.example.com/res1'
xmlns='jabber:x:delay'
stamp='20100816T15:28:48'/>
</message>
<message from='testchatroom@muc.xmpp.example.com/User1'
to='testUser@xmpp.example.com/tigase-1'
type='groupchat'>
<body>
2
</body>
<delay from='testUser1@xmpp.example.com/res1'
xmlns='urn:xmpp:delay'
stamp='2010-08-16T15:28:48Z'/>
<x from='testUser1@xmpp.example.com/res1'
xmlns='jabber:x:delay'
stamp='20100816T15:28:48'/>
</message>
<message from='testchatroom@muc.xmpp.example.com/User1'
to='testUser@xmpp.example.com/tigase-1'
type='groupchat'>
<body>
3
</body>
<delay from='testUser1@xmpp.example.com/res1'
xmlns='urn:xmpp:delay'
stamp='2010-08-16T15:28:48Z'/>
<x from='testUser1@xmpp.example.com/res1'
xmlns='jabber:x:delay'
stamp='20100816T15:28:48'/>
</message>
<message from='testchatroom@muc.xmpp.example.com/User1'
to='testUser@xmpp.example.com/tigase-1'
type='groupchat'>
<body>
4
</body>
<delay from='testUser1@xmpp.example.com/res1'
xmlns='urn:xmpp:delay'
stamp='2010-08-16T15:28:49Z'/>
<x from='testUser1@xmpp.example.com/res1'
xmlns='jabber:x:delay'
stamp='20100816T15:28:49'/>
</message>
<message from='testchatroom@muc.xmpp.example.com/User1'
to='testUser@xmpp.example.com/tigase-1'
type='groupchat'>
<body>
5
</body>
<delay from='testUser1@xmpp.example.com/res1'
xmlns='urn:xmpp:delay'
stamp='2010-08-16T15:28:49Z'/>
<x from='testUser1@xmpp.example.com/res1'
xmlns='jabber:x:delay'
stamp='20100816T15:28:49'/>
</message>
<message from='testchatroom@muc.xmpp.example.com/User1'
to='testUser@xmpp.example.com/tigase-1'
type='groupchat'>
<body>
6
</body>
<delay from='testUser1@xmpp.example.com/res1'
xmlns='urn:xmpp:delay'
stamp='2010-08-16T15:28:49Z'/>
<x from='testUser1@xmpp.example.com/res1'
xmlns='jabber:x:delay'
stamp='20100816T15:28:49'/>
</message>
<message from='testchatroom@muc.xmpp.example.com/User1'
to='testUser@xmpp.example.com/tigase-1'
type='groupchat'>
<body>
7
</body>
<delay from='testUser1@xmpp.example.com/res1'
xmlns='urn:xmpp:delay'
stamp='2010-08-16T15:28:50Z'/>
<x from='testUser1@xmpp.example.com/res1'
xmlns='jabber:x:delay'
stamp='20100816T15:28:50'/>
</message>
<message from='testchatroom@muc.xmpp.example.com/User1'
to='testUser@xmpp.example.com/tigase-1'
type='groupchat'>
<body>
8
</body>
<delay from='testUser1@xmpp.example.com/res1'
xmlns='urn:xmpp:delay'
stamp='2010-08-16T15:28:50Z'/>
<x from='testUser1@xmpp.example.com/res1'
xmlns='jabber:x:delay'
stamp='20100816T15:28:50'/>
</message>
<message from='testchatroom@muc.xmpp.example.com/User1'
to='testUser@xmpp.example.com/tigase-1'
type='groupchat'>
<body>
9
</body>
<delay from='testUser1@xmpp.example.com/res1'
xmlns='urn:xmpp:delay'
stamp='2010-08-16T15:28:51Z'/>
<x from='testUser1@xmpp.example.com/res1'
xmlns='jabber:x:delay'
stamp='20100816T15:28:51'/>
</message>
<message from='testchatroom@muc.xmpp.example.com/User1'
to='testUser@xmpp.example.com/tigase-1'
type='groupchat'>
<body>
0
</body>
<delay from='testUser1@xmpp.example.com/res1'
xmlns='urn:xmpp:delay'
stamp='2010-08-16T15:28:53Z'/>
<x from='testUser1@xmpp.example.com/res1'
xmlns='jabber:x:delay'
stamp='20100816T15:28:53'/>
</message>
<message from='testchatroom@muc.xmpp.example.com/moderator'
to='testUser@xmpp.example.com/tigase-1'
type='groupchat'>
<subject>
Test Chat Room - Test Chat Room Demo
</subject>
<delay xmlns='urn:xmpp:delay'
jid='testchatroom@muc.xmpp.example.com/moderator'
stamp='2010-05-19T15:35:03Z'/>
<x xmlns='jabber:x:delay'
stamp='20100519T15:35:03'/>
</message>Best regards, Oscar Acosta.





Recent comments
5 min 1 sec ago
17 min 10 sec ago
14 hours 45 min ago
1 day 23 hours ago
1 day 23 hours ago
1 day 23 hours ago
2 days 1 hour ago
2 days 1 hour ago
2 days 7 hours ago
3 days 3 hours ago