psi-im / psi

XMPP client
https://psi-im.org/
Other
398 stars 122 forks source link

None of the PEP functions work despite PubSub being available #714

Closed yessiest closed 2 months ago

yessiest commented 1 year ago

The 4 options related to PEP (Activity, GeoLocation, Avatar and Mood) are always grayed out. I've set up the Prosody server with PubSub component, which is accessible to me. I can set the Mood parameter using PEP method described in XEP-0107 pubsub section if i use the XML console.

OS: Arch Linux

Psi Version: Psi+ v1.5.1647 (2023-05-08, 6e79b571, webengine) (Installed from the AUR package psi-plus-git)

XML log (you can find it in account's context menu)

<iq from='admin@example.com'
    id='publishmood'
    type='set'>
  <pubsub xmlns='http://jabber.org/protocol/pubsub'>
    <publish node='http://jabber.org/protocol/mood'>
      <item>
        <mood xmlns='http://jabber.org/protocol/mood'>
          <annoyed/>
          <text>curse my nurse!</text>
        </mood>
      </item>
    </publish>
  </pubsub>
</iq>
<message type="headline" from="admin@example.com" to="admin@example.com/fake-resource" id="UOAbW0PGxIU6Je8DPGzHRsgB">
<event xmlns="http://jabber.org/protocol/pubsub#event">
<items node="http://jabber.org/protocol/mood">
<item publisher="admin@example.com" id="126a2b31-d370-432c-a5de-068a18085346">
        <mood xmlns="http://jabber.org/protocol/mood">
          <annoyed/>
          <text>curse my nurse!</text>
        </mood>
      </item>
</items>
</event>
</message>

<iq type="result" to="admin@example.com/fake-resource" id="publishmood">
<pubsub xmlns="http://jabber.org/protocol/pubsub">
<publish node="http://jabber.org/protocol/mood">
<item id="126a2b31-d370-432c-a5de-068a18085346"/>
</publish>
</pubsub>
</iq>

Context: Server responds to setting the mood via XML console, options remain grayed out.

stdout (terminal log)

(nothing related to PEP)
...
[20230508 18:49:15] Util is initilizing (unknown:0, unknown)
[20230508 18:49:15] Psi adapter is ready (unknown:0, unknown)
[20230508 18:49:15] Util successfully initialized (unknown:0, unknown)
[20230508 18:49:15] psi/classic theme is successfully loaded for chat (unknown:0, unknown)
[20230508 18:49:15] Util is initilizing (unknown:0, unknown)
[20230508 18:49:15] Psi adapter is ready (unknown:0, unknown)
[20230508 18:49:15] Util successfully initialized (unknown:0, unknown)
[20230508 18:49:15] psi/classic theme is successfully loaded for muc (unknown:0, unknown)
[20230508 18:49:22] privacy.cpp: Error in lists receiving. (unknown:0, unknown)
[20230508 18:49:25] W:"[admin@example.com/fake-resource] PEP Get failed: 'Item
not found.\nThe addressed JID or item requested cannot be found.' (404)" (unknown:0, unknown)
[20230508 18:49:25] Util is initilizing (unknown:0, unknown)
[20230508 18:49:25] Psi adapter is ready (unknown:0, unknown)
[20230508 18:49:25] Util successfully initialized (unknown:0, unknown)
...
(trailing logs, yet again nothing related to PEP, neither any warnings or errors)

P.S. for privacy reasons, the host and resource parts of JID have been replaced with generic ones. They refer to the same JID originally.

If needed, I will provide full logs of stdout.

Neustradamus commented 6 months ago

@yessiest: Any news on it?

Ri0n commented 2 months ago

fixed

Neustradamus commented 2 months ago

@yessiest: Can you confirm the fix?