Issue Details (XML | Word | Printable)

Key: EJAB-595
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Low Low
Assignee: Badlop
Reporter: Badlop
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
ejabberd development

Incorrect error message when user sends forbidden private message

Created: 02/Apr/08 06:51 PM   Updated: 12/May/08 10:36 PM
Component/s: Multi-User Chat (MUC)
Affects Version/s: ejabberd 2.0.0
Fix Version/s: ejabberd 2.0.1, ejabberd 2.1.0

Time Tracking:
Not Specified

Participants: Badlop
Company: process-one.net (Find related issues)
Labels:
Days since last comment: 29 weeks, 2 days ago


 Description  « Hide
Given a room is configured to not allow private messages.
A participant sends a private message to another participant.
The message is not delivered, instead an error message is returned.

The error message is incorrect, because it says 'not-aceptable: Only participants can send messages to the room'.

<message from='room1@conference.localhost/user1'
type='error'
to='user2@localhost/Tka'>
<error type='modify'
code='406'>
<not-acceptable xmlns='urn:ietf:params:xml:ns:xmpp-stanzas'/>
<text xmlns='urn:ietf:params:xml:ns:xmpp-stanzas'>Solo los ocupantes pueden enviar mensajes a la sala</text>
</error>
</message>

A more correct error message would be 'forbidden: The room configuration doesn't allow to send private messages to other participants'.



 All   Comments   Work Log   Change History   FishEye   Crucible      Sort Order: Ascending order - Click to sort in descending order
Badlop added a comment - 12/May/08 10:36 PM
Fixed in ejabberd trunk and 2.0.x branch in SVN r1323.