Skip navigation
4523 Views 7 Replies Latest reply: Dec 16, 2008 12:49 AM by Tristan Rivoallan RSS
dalexandre Bronze 3 posts since
Dec 5, 2008
Currently Being Moderated

Dec 8, 2008 8:53 AM

[BUG] Pubsub forget to notify offline subscribers

Hello everyone

 

I'm working on a PHP pubsub implementation with Openfire ! (awesome work guys )

but I have a little problem here.

 

Offline classics messages are send to my user when is login, but if the message is a pubsub one (someone publish an item when I was offline), when i'm login I don't receive the message !

This behavior is unexpected,

also when an user publish item when i'm online, there is no problem and my user receive his message notification, with payload etc...

 

Here some xml for you but don't think there will help you to help me

 

When my Drupal user is Publishing content :
1228496819 [VERBOSE]: SENT: <iq type='set'
               from='drupal@dalexandre-laptop/xmpphp'
               to='pubsub.dalexandre-laptop'
               id='publish1'>
                  <pubsub xmlns='http://jabber.org/protocol/pubsub'>

                    <publish node='article'>
                      <item>
                        <entry xmlns='http://www.w3.org/2005/Atom'>
                          <title>Mon 5eme article</title>
                          <content>Mon texte 5 !</content>
                          <id>identifiantunique7691</id>
                          <updated>2008-12-05T18:06:59+01:00</updated>

                        </entry>
                      </item>
                    </publish>
                  </pubsub>
                </iq>
1228496819 [VERBOSE]: Successfully sent 746 bytes.
1228496819 [VERBOSE]: RECV: <iq type="result" id="publish1" from="pubsub.dalexandre-laptop" to="drupal@dalexandre-laptop/xmpphp"/>
1228496819 [VERBOSE]: RECV: <message from="pubsub.dalexandre-laptop" to="drupal@dalexandre-laptop" id="article__drupal@dalexandre-laptop__9WI7t"><event xmlns="http://jabber.org/protocol/pubsub#event"><items node="article"><item id="VvvDw1ag53xmSwW"><entry xmlns="http://www.w3.org/2005/Atom">
                          <title>Mon 5eme article</title>
                          <content>Mon texte 5 !</content>
                          <id>identifiantunique7691</id>
                          <updated>2008-12-05T18:06:59+01:00</updated>
                        </entry></item></items></event><headers xmlns="http://jabber.org/protocol/shim"><header name="pubsub#subid">yKOb860kQz5068VBDYLy7sktjnTxIwIxuvx2SW4g</header></headers></message>
1228496819 [DEBUG]: Calling message_handler

 

Then, the owner receive a message, but now if I connect a subscriber, he doesn't receive it.

 

Also I have a strange result here (I want to show my subscriptions, I subscribe only to the article node but it seem to be many) :


1228497122 [VERBOSE]: SENT: <iq type='get'
                   from='dalexandre@dalexandre-laptop/xmpphp'
                   to='pubsub.dalexandre-laptop'
                   id='subscriptions1'>
                  <pubsub xmlns='http://jabber.org/protocol/pubsub'>

                    <subscriptions/>
                  </pubsub>
                </iq>
1228497122 [VERBOSE]: Successfully sent 324 bytes.
1228497122 [VERBOSE]: RECV: <iq type="result" id="subscriptions1" from="pubsub.dalexandre-laptop" to="dalexandre@dalexandre-laptop/xmpphp"><pubsub xmlns="http://jabber.org/protocol/pubsub">
                    <subscriptions><subscription node="article" jid="dalexandre@dalexandre-laptop/xmpphp" affiliation="none" subscription="subscribed" subid="TSL17uLGiGePQAfnQ30Lss3z366TCFBs103f8MVP"/><subscription node="article" jid="dalexandre@dalexandre-laptop/xmpphp" affiliation="none" subscription="subscribed" subid="ts686lHIKLtwnWPAcv9cf0180YcPaN300BIHvPfd"/><subscription node="article" jid="dalexandre@dalexandre-laptop/xmpphp" affiliation="none" subscription="subscribed" subid="5Oaf0KGiibGvN16gDwqM7lIL7m1YgM3E6VfYGs27"/></subscriptions>
                  </pubsub></iq>

 

 

Thanks a lot for your help !

 

Bye!

 

Ce message a été modifié par: dalexandre

More Like This

  • Retrieving data ...

Bookmarked By (0)

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points