Subject: Modifying an affiliation list
I have created the pubsub node "/home/trinity/cjis" with the admin user.
Here is the affiliation list of that node:
I now want user1 to be able to publish to this same node. My understanding is that I need to modify the affiliations of the node itself.
I log in with user1 and then attempt the following:
pubSubManager.ModifyAffiliationsList(new Jid("pubsub.trinity"), "/home/trinity/cjis", a, OnIqEventArgs);
Here is the error message I receive:
I'm assuming I'm sending in the wrong values in the ModifyAffiliationsList method. Any help would be appreciated.
Thank you,
Peter Norman
Here is the affiliation list of that node:
- <iq from="pubsub.trinity" to="admin@trinity/MatriX" id="MX_4" type="result" xmlns="jabber:client">
- <pubsub xmlns="http://jabber.org/protocol/pubsub#owner">
- <affiliations node="/home/trinity/cjis">
- <affiliation jid="admin@trinity" affiliation="owner" />
- </affiliations>
- </pubsub>
- </iq>
I now want user1 to be able to publish to this same node. My understanding is that I need to modify the affiliations of the node itself.
I log in with user1 and then attempt the following:
- a.AffiliationType = AffiliationType.owner;
pubSubManager.ModifyAffiliationsList(new Jid("pubsub.trinity"), "/home/trinity/cjis", a, OnIqEventArgs);
Here is the error message I receive:
- <iq from="pubsub.trinity" to="user1@trinity/MatriX" type="error" id="MX_4" xmlns="jabber:client">
- <pubsub xmlns="http://jabber.org/protocol/pubsub#owner">
- <affiliations node="/home/trinity/cjis">
- <affiliation affiliation="owner" />
- </affiliations>
- </pubsub>
- <error code="400" type="modify">
- <bad-request xmlns="urn:ietf:params:xml:ns:xmpp-stanzas" />
- </error>
- </iq>
I'm assuming I'm sending in the wrong values in the ModifyAffiliationsList method. Any help would be appreciated.
Thank you,
Peter Norman
This post was edited on 2013-03-12, 19:25 by Alex.