-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
MUC: Return better error on illegal nick changes #4278
Comments
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 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. |
Right, the stanza is parsed long before reaching mod_muc, so the error message cannot explain explicitly anything about the room nickname. Furthermore: even if that were possible and done for this specific case you mentioned, then there would be many other cases where the user can introduce invalid data, that clients may not verify, and the server would also report with a generic error message... I guess we can close this issue as "not planned: won't fix" |
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: