You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<presencexmlns="jabber:client"id="2e61e2e0-b181-45a8-bca1-fa8b70803ffb"from="[email protected]/lovetox2🔫"type="error">
<cxmlns="http://jabber.org/protocol/caps"hash="sha-1"node="https://gajim.org"ver="oHb81TBTQlH4TRHlgbyUyVWVAIo=" />
<errortype="modify">
<bad-requestxmlns="urn:ietf:params:xml:ns:xmpp-stanzas" />
<textxml:lang="en"xmlns="urn:ietf:params:xml:ns:xmpp-stanzas">Bad value of attribute 'to' in tag <presence/> qualified by namespace 'jabber:client'</text>
</error>
</presence>
Bug description
the <text> element should give a error message that the client can show to the user.
This error will not be useful to the average user.
You could argue that the client should validate the resource before sending it, and in fact the client here in question does it. The problem is that with precis and stringprep, two conflicting standards are in use, and the client cannot find out what the server supports.
The text was updated successfully, but these errors were encountered:
This error message seems to be generated in xmpp library, rfc6120.erl and the actual text is in xmpp_codec.erl. All that source code is automatically generated from xmpp_codec.spec, which precisely describes how the presence stanza must be, and complains precisely about the exact problem when decoding it.
If the error message is so technically precise that it is almost useless to the potential destination human at the end of the line... then maybe the corresponding ejabberd module could detect that error before returning it to the client, and replace the text with a more suitable one?
im asking myself if its even feasible to change this on the server.
i guess you have some base stanza parsing before the stanza hits any module, and there it discovers the to attribute is invalid.
seems complicated to still route the stanza through various modules, and discover its a nick change.
Not sure if this is something you normally do.
of course the other solution is here, as the client triggers the nick change, it could track also the answer, and trying to interpret the error.
Environment
Errors from error.log/crash.log
Bug description
the
<text>
element should give a error message that the client can show to the user.This error will not be useful to the average user.
You could argue that the client should validate the resource before sending it, and in fact the client here in question does it. The problem is that with precis and stringprep, two conflicting standards are in use, and the client cannot find out what the server supports.
The text was updated successfully, but these errors were encountered: