feature not implemented while retrieving archive message

非 Y 不嫁゛ 提交于 2019-12-01 02:25:19

问题


i am using Openfire 3.8.2 and have installed monitor plugin and enable the archiving for one to one chat.

now i am able to view the archive chat on the server side but when i pass a stanza i am getting feature not implemented

Request

<iq type='get' id='334'>
  <list xmlns='urn:xmpp:archive'
        with='user4@mydomain.com'>
    <set xmlns='http://jabber.org/protocol/rsm'>
      <max>30</max>
    </set>
  </list>
</iq>

Response

<iq type="error" id="334" to="user1@mydomain.com/458">
<error type="cancel" code="501">
<feature-not-implemented xmlns="urn:ietf:params:xml:ns:xmpp-stanzas"/>
</error>
</iq>

can anyone tell me what i am missing here ? i have explored all the threads on stackoverflow but didn't find any solution there.

i have set the following properties in openfire system properties but still not getting same error

conversation.idleTime   10

conversation.maxAge 0

conversation.maxRetrievable 100

conversation.maxTime    60

conversation.messageArchiving   true

conversation.metadataArchiving  true

conversation.roomArchiving  true

回答1:


it was just a small mistake in sending stanza , i missed the namespace attribute in max tag , following is the correct stanza

<iq type='get' id='334'>
  <list xmlns='urn:xmpp:archive'
        with='user4@mydomain.com'>
    <set xmlns='http://jabber.org/protocol/rsm'>
      <max xmlns='http://jabber.org/protocol/rsm'>30</max>
    </set>
  </list>
</iq>


来源:https://stackoverflow.com/questions/20853071/feature-not-implemented-while-retrieving-archive-message

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!