Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Inviting a user to a node - not working #308

Open
robotnic opened this issue May 5, 2015 · 5 comments
Open

Inviting a user to a node - not working #308

robotnic opened this issue May 5, 2015 · 5 comments

Comments

@robotnic
Copy link

robotnic commented May 5, 2015

When I send this request

3:::{"type":0,"data":["xmpp.buddycloud.subscription",{"node":"/user/angular-xmpp@buddycloud.org/posts","jid":"robotnic@buddycloud.org","subscription":"invited"}],"id":30}

the user robotnic@buddycloud.org does not get an invite message.

@lloydwatkin
Copy link
Member

If you retrieve subscriptions for the user do you see the invite in the list?

The functionality is certainly working, I wonder if @imaginator needs to update the version of xmpp-ftw-buddycloud deployed?

@robotnic
Copy link
Author

robotnic commented May 6, 2015

Yes, it's in the list

subscriptions:
[{"subscription":"invited","jid":{"domain":"buddycloud.org","user":"robotnic"},"node":"/user/burma@buddycloud.org/posts"},...]

affiliations:
{"node":"/user/burma@buddycloud.org/posts","affiliation":"none","jid":{"domain":"buddycloud.org","user":"robotnic"}}

@lloydwatkin
Copy link
Member

Ok so invites are working. Were you connected and had presence sent from
the invited user? Its something I've been working with so "know" it works.
Again I'd potentially put it down to version issues. Have you tried to run
your own xmpp-ftw setup locally to confirm?


Steven Lloyd Watkin
Software Engineer
PHP ::: Java ::: Ruby ::: Node.js ::: XMPP :: + many more
lloyd@evilprofessor.co.uk (email+jid) ::: http://www.evilprofessor.co.uk
Github / Twitter / Flickr / Facebook: lloydwatkin

Organiser of WORLD RECORD breaking charity event:
Scuba Santas ::: http://www.scuba-santas.co.uk
Supporting the RNLI & DDRC - 14th December 2014 - NDAC, Chepstow

On 6 May 2015 at 15:40, bz notifications@github.com wrote:

Yes, it's in the list

subscriptions:
[{"subscription":"invited","jid":{"domain":"buddycloud.org
","user":"robotnic"},"node":"/user/burma@buddycloud.org/posts"},...]

affiliations:
{"node":"/user/burma@buddycloud.org/posts
","affiliation":"none","jid":{"domain":"buddycloud.org
","user":"robotnic"}}


Reply to this email directly or view it on GitHub
#308 (comment)
.

@robotnic
Copy link
Author

robotnic commented May 6, 2015

I install the newest version of xmpp-ftw-demo.

The user robotnic@buddycloud.org invites rrr@buddycloud.org to the node
/user/robotnic@buddycloud.org/posts

3:::{"type":0,"data":["xmpp.buddycloud.subscription",{"node":"/user/robotnic@buddycloud.org/posts","jid":"rrr@buddycloud.org","subscription":"invited"}],"id":16}

xmpp-ftw debug:

info: Stanza received:

<message type="headline" to="robotnic@buddycloud.org/786e0229-28fc-4218-86bc-67896c6484ac" from="channels.buddycloud.org" xmlns:stream="http://etherx.jabber.org/streams">
<event xmlns="http://jabber.org/protocol/pubsub#event">
<subscription invited-by="robotnic@buddycloud.org" jid="rrr@buddycloud.org" subscription="invited" node="/user/robotnic@buddycloud.org/posts"/>
</event>
</message>

I think the message should got to rrr instead to robotnic.

If I use the XML console and send the message to the CORRECT user it works.

@lloydwatkin
Copy link
Member

I agree in this case the push should be going to rrr@buddycloud.org and robotnic@buddycloud.org should just be getting a result stanza. This now makes things a bug in the server and I'll take a look when I get a chance. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants