Not logged in. · Lost password · Register
Forum: MatriX RSS
Avatar
Eric380 #1
Member since Jun 2012 · 10 posts
Group memberships: Members, Premium
Show profile · Link to this post
Subject: MucManager RequestOwnerList error code="400"
When I call MucManager.RequestOwnerList it sends this request (the user sending the request is an owner of the room):

<iq id="MX_12" to="rooma@conference.XXXX" type="get" xmlns="jabber:client">
  <query xmlns="http://jabber.org/protocol/muc#admin">
    <item affiliation="owner" />
  </query>
</iq>

and the server returns:

<iq type="error" id="MX_18" from="rooma@conference.XXXX" to="XXXX@XXXX" xmlns="jabber:client">
  <query xmlns="http://jabber.org/protocol/muc#admin" />
  <error code="400" type="modify">
    <bad-request xmlns="urn:ietf:params:xml:ns:xmpp-stanzas" />
  </error>
</iq>

Looking at http://xmpp.org/extensions/xep-0045.html/#modifyowner the request should be using ' not "

Example 181. Owner Requests Owner List

<iq from='bard@shakespeare.lit/globe'    id='owner3'    to='coven@chat.shakespeare.lit'    type='get'> 
  <query xmlns='http://jabber.org/protocol/muc#admin'>   
    <item affiliation='owner'/> 
  </query>
</iq>

I am using an openfire server.
Avatar
Alex #2
Member since Feb 2003 · 4327 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
Quote by Eric380:
When I call MucManager.RequestOwnerList it sends this request (the user sending the request is an owner of the room):

<iq id="MX_12" to="rooma@conference.XXXX" type="get" xmlns="jabber:client">
  <query xmlns="http://jabber.org/protocol/muc#admin">
    <item affiliation="owner" />
  </query>
</iq>

and the server returns:

<iq type="error" id="MX_18" from="rooma@conference.XXXX" to="XXXX@XXXX" xmlns="jabber:client">
  <query xmlns="http://jabber.org/protocol/muc#admin" />
  <error code="400" type="modify">
    <bad-request xmlns="urn:ietf:params:xml:ns:xmpp-stanzas" />
  </error>
</iq>

these packets don't belong to each other. The request has id MX_12 and the response MX_18 which belongs to another request.

Alex
Avatar
Eric380 #3
Member since Jun 2012 · 10 posts
Group memberships: Members, Premium
Show profile · Link to this post
I copied from different runs trying to format the message.  Here is the result from a single run:

<iq id="MX_6" to="rooma@conference.XXXX" type="get" xmlns="jabber:client">
  <query xmlns="http://jabber.org/protocol/muc#admin">
    <item affiliation="owner" />
  </query>
</iq>

<iq type="error" id="MX_6" from="rooma@conference.XXXX" to="eric@XXXX" xmlns="jabber:client">
  <query xmlns="http://jabber.org/protocol/muc#admin" />
  <error code="400" type="modify">
    <bad-request xmlns="urn:ietf:params:xml:ns:xmpp-stanzas" />
  </error>
</iq>
Avatar
Alex #4
Member since Feb 2003 · 4327 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
Are you in the room while requesting the list? If yes then there is either a bug then in Openfire, or it does not support this command. But for not supporting a special command the server should send a different error message.
Avatar
Eric380 #5
Member since Jun 2012 · 10 posts
Group memberships: Members, Premium
Show profile · Link to this post
Looking at http://xmpp.org/extensions/xep-0045.html/#modifyowner the request should be using ' not "
 
<item affiliation='owner'/>

instead of

<item affiliation="owner" />
Avatar
Alex #6
Member since Feb 2003 · 4327 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
Quote by Eric380:
Looking at http://xmpp.org/extensions/xep-0045.html/#modifyowner the request should be using ' not "
 
<item affiliation='owner'/>

instead of

<item affiliation="owner" />

no, this doesn't matter. Both Xml fragments are identical. You can enclose attributes either in " or '

Alex
Close Smaller – Larger + Reply to this post:
Verification code: VeriCode Please enter the word from the image into the text field below. (Type the letters only, lower case is okay.)
Smileys: :-) ;-) :-D :-p :blush: :cool: :rolleyes: :huh: :-/ <_< :-( :'( :#: :scared: 8-( :nuts: :-O
Special characters:
Forum: MatriX RSS