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

is duplicated by

Activity

Show:

csh March 14, 2014 at 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 at 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

Details

Assignee

Reporter

Labels

Expected Effort

Minimal

Fix versions

Affects versions

Priority

Created February 4, 2014 at 8:32 AM
Updated March 14, 2014 at 4:24 PM
Resolved March 14, 2014 at 4:24 PM