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/[email protected]/posts","jid":"[email protected]","subscription":"invited"}],"id":30}

the user [email protected] 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/[email protected]/posts"},...]

affiliations:
{"node":"/user/[email protected]/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
[email protected] (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 [email protected] wrote:

Yes, it's in the list

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

affiliations:
{"node":"/user/[email protected]/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 [email protected] invites [email protected] to the node
/user/[email protected]/posts

3:::{"type":0,"data":["xmpp.buddycloud.subscription",{"node":"/user/[email protected]/posts","jid":"[email protected]","subscription":"invited"}],"id":16}

xmpp-ftw debug:

info: Stanza received:

<message type="headline" to="[email protected]/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="[email protected]" jid="[email protected]" subscription="invited" node="/user/[email protected]/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 [email protected] and [email protected] 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