Server MUST return <service-unavailable/> for IQ requests to unknown user. (RFC 6120 10.5.3.1.)

Description

RFC 6120:

10.5.3.1. No Such User

If there is no local account associated with the <localpart@domainpart>, how the stanza is processed depends on the stanza type.

For an IQ stanza, the server MUST return a <service-unavailable/> stanza error (Section 8.3.3.19) to the sender.

Currently Openfire returns a non-error response, e.g. when sending:

Environment

None

Activity

Show:

Guus der Kinderen November 16, 2023 at 10:44 AM

If I understand the history of this issue correctly, then we had a fix, but that got reverted, because it clashed with pre-existing code (IQHandlers in certain plugins).

I favor being spec-compliant by default. If we have plugins that choose not to (which arguably is a bug in those plugins or in the protocol that they implement), then Openfire could facilitate that by having an opt-out mechanism.

Guus der Kinderen November 16, 2023 at 8:59 AM

Behavior remains the same in 4.8.0-SNAPSHOT:

Daryl Herzmann November 13, 2017 at 2:39 PM

Anybody able to comment on the status of this issue?

Neustradamus February 22, 2015 at 11:09 AM

Maybe good to link with !

csh February 6, 2015 at 9:06 PM

Oh. Just saw, that I've once fixed it, but it got reverted:
https://github.com/igniterealtime/Openfire/commit/637cc81733092275c2726b43ebe603c0cbd438fe

Dave, as you are very familiar with the core specs, maybe you could elaborate on this.

Fixed

Details

Assignee

Reporter

Components

Fix versions

Affects versions

Priority

Created February 6, 2015 at 8:50 PM
Updated October 27, 2024 at 12:07 PM
Resolved November 16, 2023 at 4:38 PM