2

我正在使用带有监控插件(1.3.0)的openfire(3.7.1),并试图确定存档是否设置正确。在存档设置中选择了“存档一对一聊天”选项。在 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>
4

1 回答 1

0

我将监控插件版本更新为 1.3.1-rc1,它现在可以工作了。我很确定这是更改日志中指定的 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.
于 2013-05-03T00:14:57.113 回答