jackline icon indicating copy to clipboard operation
jackline copied to clipboard

XML stanza issue: /remove rejected by prosody (and maybe other servers)

Open infinity0 opened this issue 8 years ago • 3 comments

When trying to remove someone from my roster, I'm getting the following:

[17:23:54] OUT TLS: <iq type='set' id='8'><query xmlns='jabber:iq:roster'><item subscription='remove' jid='[email protected]' xmlns=''/></query></iq>
[17:23:54] IN TLS: <iq id='8' type='error' to='[email protected]/xxxx'><error type='modify'><bad-request xmlns='urn:ietf:params:xml:ns:xmpp-stanzas'/></error></iq>

I'm not sure if this is a server bug (I'm using prosody 0.9.4) but it would be good if jackline notified the user that the server sent the error reply.

https://xmpp.org/rfcs/rfc3921.html#int-remove for reference

infinity0 avatar Jan 06 '16 16:01 infinity0

Still fails with prosody 0.9.7. BTW, this is what pidgin sends:

(19:36:12) jabber: Sending (ssl) ([email protected]/main-laptop): <iq type='set' id='purple9ed7e6c0'><query xmlns='jabber:iq:roster'><item jid='[email protected]' subscription='remove'/></query></iq>
(19:36:12) jabber: Recv (ssl)(203): <iq id='purple9ed7e6c0' type='result' to='[email protected]/main-laptop'/><iq id='lx13' type='set'><query ver='457' xmlns='jabber:iq:roster'><item jid='[email protected]' subscription='remove'/></query></iq>

and it works. Probably you should set id= on the iq stanza. Looks like the difference is that you have an empty xmlns='' in the item stanza and that's probably what messes things up for prosody.

infinity0 avatar Jan 06 '16 18:01 infinity0

thanks for your investigation. I should fix the error reporting soon, removing the xmlns='' will take some more time (I plan to switch the underlying xml library). please bear with me, this is my spare time project.

hannesm avatar Jan 20 '16 21:01 hannesm

the error is now reported in the user interface... will leave this open until I fix the actual issue (get /remove working with prosody)

hannesm avatar Feb 07 '16 14:02 hannesm