Openfire must return a service-unavailable error when blocking an IQ of type get or set because of a privacy list. OF should return error if a message stanza is blocked

Description

According to XEP-0016 2.14

For message stanzas, the server SHOULD return an error, which SHOULD be <service-unavailable/>. [8]
For IQ stanzas of type "get" or "set", the server MUST return an error, which SHOULD be <service-unavailable/>. IQ stanzas of other types MUST be silently dropped by the server.

Openfire currently does none of that.

Environment

None

Activity

Show:
csh
March 14, 2014, 4:24 PM

The <not-acceptable/> case is now fixed, too (only for Message and IQ stanzas, Presence probably doesn't make much sense)

csh
February 24, 2014, 4:54 PM
Edited

First part is fixed.
@Florian (or any other): Please review the commit.

The commit does not cover this case though (I will try to figure it out though):

If the user attempts to send an outbound stanza to a contact and that stanza type is blocked, the user's server MUST NOT route the stanza to the contact but instead MUST return a <not-acceptable/> error

Fixed
Your pinned fields
Click on the next to a field label to start pinning.

Assignee

Florian Schmaus

Reporter

Florian Schmaus

Labels

Expected Effort

Minimal