Commit c558519b authored by csh's avatar csh

OF-761 OF must return <jid-malformed/> instead of <bad-request/> when joining...

OF-761 OF must return <jid-malformed/> instead of <bad-request/> when joining a MUC room without nickname

git-svn-id: http://svn.igniterealtime.org/svn/repos/openfire/trunk@14000 b35dd754-fafc-0310-a699-88a17e54d16e
parent 8ce2acc6
......@@ -529,7 +529,9 @@ public class LocalMUCUser implements MUCUser {
else {
if (packet.isAvailable()) {
// A resource is required in order to join a room
sendErrorPacket(packet, PacketError.Condition.bad_request);
// http://xmpp.org/extensions/xep-0045.html#enter
// If the user does not specify a room nickname (note the bare JID on the 'from' address in the following example), the service MUST return a <jid-malformed/> error
sendErrorPacket(packet, PacketError.Condition.jid_malformed);
}
// TODO: send error message to user (can't send packets to group you haven't
// joined)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment