Quantcast
Channel: Ignite Realtime : All Content - Openfire Support
Viewing all articles
Browse latest Browse all 4778

Why does trying to set affiliation for user in chatroom result in modify bad-request error?

$
0
0

Hi there,

 

I'm currently sending the stanza below to Openfire 4.0.1 :

 

<iq type='set'

    to='fb1981bc-f980-4ac5-aebf-f7955c40f6a8@conference.*******.*******.net'>

<query xmlns='http://jabber.org/protocol/muc#admin'>

<item affiliation='owner'

      jid='bruce@*******.*******.net'/>

</query>

</iq>

 

This is being sent connected as user who is owner of the room.

The response is:

 

<iq xmlns='jabber:client'

    type='error'

    from='fb1981bc-f980-4ac5-aebf-f7955c40f6a8@conference.*******.*******.net'

    to='bruce@*******.*******.net/3zc5r6z2uf'>

<query xmlns='http://jabber.org/protocol/muc#admin'>

<item affiliation='owner'

      jid='bruce@*******.*******.net'/>

</query>

<error code='400'

       type='modify'>

<bad-request xmlns='urn:ietf:params:xml:ns:xmpp-stanzas'/>

</error>

</iq>

 

I've tried name space of muc#owner as well in case I had that wrong but everything I've checked suggests the stanza is correctly formed.

I'm able to set affiliations without problem for pubsub nodes but just always get this error for trying it with a chatroom.

 

As far as I can see I've followed the format in XEP-0045: Multi-User Chat's grand owner example to the letter.

If anyone can give me any insight as to what the issue is I'd appreciate it.

 

Regards,

Bruce.


Viewing all articles
Browse latest Browse all 4778

Trending Articles