Openfire存档列表计数始终为0

时间:2013-04-28 20:41:48

标签: xmpp archive openfire

我正在使用openfire(3.7.1)和monitoring plugin(1.3.0),我正在尝试确定归档是否设置正确。在归档设置中选择“归档一对一聊天”选项。在adium xml控制台中,我发送以下xml:

<iq type='get' id='my-1'>
  <list xmlns='urn:xmpp:archive' with='user@my-server/resource/'>
    <set xmlns='http://jabber.org/protocol/rsm'>
      <max>30</max>
    </set>
  </list>
</iq>

我得到的回应是:

<iq xmlns='jabber:client' type='result' id='my-1' to='user@my-server/resource'>
  <list xmlns='urn:xmpp:archive'>
    <set xmlns='http://jabber.org/protocol/rsm'>
      <count>0</count>
    </set>
  </list>
</iq>

但是当我查看Openfire存档时,指定用户会有很多对话。我不知道如何检查我的请求或设置是否错误。

更新:当我发送首选项请求时,我收到501错误。这很奇怪,因为如果它真的没有实现,list请求也应该失败。我错过了什么吗?

<iq type="get" id="pref1">
  <pref xmlns="urn:xmpp:archive"/>
</iq>

<iq type="error" id="pref1" to="user@my-server/resource">
  <error type="cancel" code="501">
    <feature-not-implemented xmlns="urn:ietf:params:xml:ns:xmpp-stanzas"/>
  </error>
</iq>

更新2:

这是我的disco响应,其中显然存在归档功能<feature var="urn:xmpp:archive:auto"/>。我没有更多想法,接下来要检查什么。

<iq from="my-server" type="result" id="info1" to="user@my-server/resource">
  <query xmlns="http://jabber.org/protocol/disco#info">
    <identity category="server" type="im" name="Openfire Server"/>
    <identity category="pubsub" type="pep"/>
    <feature var="http://jabber.org/protocol/pubsub#manage-subscriptions"/>
    <feature var="http://jabber.org/protocol/pubsub#modify-affiliations"/>
    <feature var="http://jabber.org/protocol/pubsub#retrieve-default"/>
    <feature var="http://jabber.org/protocol/pubsub#collections"/>
    <feature var="jabber:iq:private"/>
    <feature var="http://jabber.org/protocol/disco#items"/>
    <feature var="vcard-temp"/>
    <feature var="http://jabber.org/protocol/pubsub#publish"/>
    <feature var="urn:xmpp:archive:auto"/>
    <feature var="http://jabber.org/protocol/pubsub#subscribe"/>
    <feature var="http://jabber.org/protocol/pubsub#retract-items"/>
    <feature var="http://jabber.org/protocol/offline"/>
    <feature var="http://jabber.org/protocol/pubsub#meta-data"/>
    <feature var="jabber:iq:register"/>
    <feature var="http://jabber.org/protocol/pubsub#retrieve-subscriptions"/>
    <feature var="http://jabber.org/protocol/pubsub#default_access_model_open"/>
    <feature var="jabber:iq:roster"/>
    <feature var="http://jabber.org/protocol/pubsub#config-node"/>
    <feature var="http://jabber.org/protocol/address"/>
    <feature var="http://jabber.org/protocol/pubsub#publisher-affiliation"/>
    <feature var="http://jabber.org/protocol/pubsub#item-ids"/>
    <feature var="http://jabber.org/protocol/pubsub#instant-nodes"/>
    <feature var="http://jabber.org/protocol/commands"/>
    <feature var="http://jabber.org/protocol/pubsub#multi-subscribe"/>
    <feature var="http://jabber.org/protocol/pubsub#outcast-affiliation"/>
    <feature var="http://jabber.org/protocol/pubsub#get-pending"/>
    <feature var="google:jingleinfo"/>
    <feature var="jabber:iq:privacy"/>
    <feature var="urn:xmpp:archive:manage"/>
    <feature var="http://jabber.org/protocol/pubsub#subscription-options"/>
    <feature var="jabber:iq:last"/>
    <feature var="http://jabber.org/protocol/pubsub#create-and-configure"/>
    <feature var="urn:xmpp:ping"/>
    <feature var="http://jabber.org/protocol/pubsub#retrieve-items"/>
    <feature var="jabber:iq:time"/>
    <feature var="http://jabber.org/protocol/pubsub#create-nodes"/>
    <feature var="http://jabber.org/protocol/pubsub#persistent-items"/>
    <feature var="jabber:iq:version"/>
    <feature var="http://jabber.org/protocol/pubsub#presence-notifications"/>
    <feature var="http://jabber.org/protocol/pubsub"/>
    <feature var="http://jabber.org/protocol/pubsub#retrieve-affiliations"/>
    <feature var="http://jabber.org/protocol/pubsub#delete-nodes"/>
    <feature var="http://jabber.org/protocol/pubsub#purge-nodes"/>
    <feature var="http://jabber.org/protocol/disco#info"/>
    <feature var="http://jabber.org/protocol/rsm"/>
  </query>
</iq>

1 个答案:

答案 0 :(得分:0)

我将监控插件版本更新为1.3.1-rc1,现在可以使用了。我很确定这是在changelog中指定的XmppDateTimeFormat集成的恢复:

OF-611 - Monitoring plugin 1.3.0 is not updating IDs of older archived messages.
OF-646 - Reverts XmppDateTimeFormat integration which broke querying via XEP-0136.
OF-664 - Monitoring archive shows null in room chat logs.