I have some questions about pubsub’s filter notifications.
I just use my own xmpp client to login to openfire 3.6.3, and then I publish avatar(JEP-0084), packages like following:
…
It works fine and all my rosters get the notification of avatar and metadata,that’s fine,but when my rosters relogin,they will receive the same notification
again, something more like following:
…
I had made my precense notification like this:
onlinechat
And then the server asks my disco#info
I reply with this package:
then server sends all of my rosters’ pubsub data to my client
I just use my client login to ejabberd server ,do the same things, but ejabberd works fine,it do not send these notifications to me.
So I don’t know what’s the problem,maybe my client send the wrong package? I hope somebody can help me.thank you guys.
metadata package also has been sent to openfire, and all of my rosters can get this notification.
I just want to receive the metadata notification one time,because when my client receive this notification, it will query the avatar data,so the notification is nosense for my client,if all of my rosters have their own avatars,then it will waste more time to finish the login procedure.
maybe I generate the JEP-0115 ver string error,but if my SHA-1 is error, how can I send file to my roster use openfire’s proxy?(It’s also use sha-1 to find the other socks5 connection).
It looks like your node is configured with the field pubsub#send_last_published_item set to*** on_sub_and_presence***. The message you are receiving is called a delay message and is configured by this value.
Look at example 127 for the form contents, while what you are seeing happen is described under Receiving the Last Published Item. This is not the default configuration though, I am pretty sure the default is on_sub.
[http://jabber.org/protocol/pubsub#node_config](http://jabber.org/protocol/pubsub#node_config)
1
0
1
1
1
1
1
authorize
open
presence
roster
whitelist
presence
publishers
subscribers
open
publishers
English
trh@fuyootrh
owner
0
0
1
5120
There is no **pubsub#send_last_published_item ,and I think maybe **pubsub#presence_based_delivery is the same meaning,but when I sent package like below,the server terminated the session:
0
If I set pubsub#send_last_published_item to on_sub, openfire didn’t send response back,the request has been discarded.
If I publish my avatar, all of my rosters will get one metadata notification(if he/she is offline,server will send to him/her when he/she logins next time), then my client will get the avatar data, that’s the answer for my question.
Even the server send the last publish item, if I has one method to tell the server that I have got the notification,it’s also fine,but I couldn’t find such method.
It may be a difference between version. The information I gave you was based on the latest version of the spec, which OpenFire doesn’t adhere to yet. Hopefully it will in the next release, but in the currently supported version the equivalent field is pubsub#send_item_subscribe, which*** ***is set to false for you node anyway, which kind of blows that theory, unless it has a bug in it.
** Are you a developer? and what’s your native language?**
** My client is Chinese Simlified(GB2312).**
** As I know, there is no good client software for common pubsub, my client supports XEP-0084(Avatar) and XEP-0107(Mood) ,and I met this question, so I don’t implemente common pubsub.**
xmppnet.de, Its server software is ejabberd, I didn’t change my client,it works very well,just as I wish.so I am quite sure that openfire have some bugs with XEP-0115 and pubsub, the main problem I think is XEP-0115.
When my client logins to ejabberd, I send XEP-0115 precense package,but it doesnot send disco#info package to my client,that means it can understand what can my client do,and then it doesn’t send avatar body package to my client,that’s fine.
You may want to put these questions under another discussion since you seem to be having issues related to XEP-0115 moreso than pubsub. You are probably not hitting your intended audience with your questions. For instance I know a fair bit about pubsub, but nothing about 115.
I have spent much more time to intergrate openfire with MS SQL Server,and I really love other functions of openfire,you guys really do a wonderful job,but pubsub and PEP are not so good,I hope the next version of openfire will be better than current version.