Quantcast
Channel: Ignite Realtime : Discussion List - All Communities
Viewing all articles
Browse latest Browse all 10742

Openfire 3.8.1 Avatar using Pubsub (XEP-0084) not working after upgrade

$
0
0

Hi All,

I'm new to the XMPP devel scene.

Background:

We are adding chat functionality to our website and would like to have avatars. We are using XEP-0084 to publish an avatar.

We managed to get this to work on Openfire 3.7.1.

 

Issue:

After we upgraded to 3.8.1 avatar publishing stopped working. It does not publish the avatar and no errors are thrown.

I can see it creates entries in ofPubsubNode but not in ofPubsubItem.

 

The iq messages that I send to publish are as follows:

Publish avatar data:

<iq xmlns="jabber:client" id="publish1" type="set" from="nevis@antony-debug">

    <pubsub xmlns="http://jabber.org/protocol/pubsub">

        <publish node="urn:xmpp:avatar:data">

            <item id="27446B47E92CEDDF16CFD5324DE1C3EC472333DD">

                <data xmlns="urn:xmpp:avatar:data">iVBORw0KGgoAAAANSUhEUgAAAGQAAABLCAIAAAA...(The base64 encoded image)</data>

            </item>

        </publish>

    </pubsub>

</iq>

 

Publish avatar metadata:

<iq xmlns="jabber:client" id="publish2" type="set" from="nevis@antony-debug">

    <pubsub xmlns="http://jabber.org/protocol/pubsub">

        <publish node="urn:xmpp:avatar:metadata">

            <item id="27446B47E92CEDDF16CFD5324DE1C3EC472333DD">

                <metadata xmlns="urn:xmpp:avatar:metadata">

                    <info bytes="19408" id="27446B47E92CEDDF16CFD5324DE1C3EC472333DD" type="image/png" />

                </metadata>

            </item>

        </publish>

    </pubsub>

</iq>

 

Note: If an avatar already exists subscribers can request it and they do get the data.

 

Any help will be greatly appreciated.

Regards,

Antony


Viewing all articles
Browse latest Browse all 10742

Trending Articles