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

OF drops element and nickname (XEP-172) on presence subscription requests

$
0
0

Hi,

 

I am sending a presence of type="subscribe" to another user in order to subscribe to its presence.

 

I am also adding a <status> element to provide some additional text as suggested in:

 

http://xmpp.org/rfcs/rfc6121.html#presence-syntax-children-status

 

The <status/> child MAY also be sent in a subscription-related presence stanza (i.e., type "subscribe", "subscribed", "unsubscribe", or "unsubscribed") to provide a description of the action.  An interactive client MAY present this <status/> information to a human user (see Section 11).

 

I am also adding a nickname as suggested by XEP-172:

http://xmpp.org/extensions/xep-0172.html#subscription

 

My outgoing presence looks like this:

 

<presence id="118d54f1-36bd-44a5-9951-091e1dfbd871" to="222@dev" type="subscribe"><status>Hi, please add me!</status><nick xmlns="http://jabber.org/protocol/nick">MyNick</nick></presence>

 

 

The problem is, if 222@dev is offline, Openfire will send only:

<presence from="111@dev" to="222@dev" type="subscribe"/>

 

as soon as it comes online.

 

 

I believe this is a bug in Openfire, since it only stores the "presence subscription" status in the roster as integer value.

 

Can somebody comment on this issue please and maybe file it as bug in OF issue tracker?


Viewing all articles
Browse latest Browse all 10742

Trending Articles