[jdev] iq:private routing in j2
Jacek Konieczny
jajcus at bnet.pl
Fri Jun 4 14:48:09 CDT 2004
On Fri, Jun 04, 2004 at 10:35:43AM -0600, Craig Hollabaugh wrote:
> I can see both sides of the current implementation, one as a feature and
> the other as a bug. The feature allows for improperly addressed iq
> stanzas access to private storage. I'm leaning towards the bug. I think
> if clients want to use private storage on the server, then they should
> address their iq stanzas to the server (not to themselves, not to nobody
> but to the server).
Please notice, that sending an IQ stanza to a bare JID means sending it
to the server. Only a full JID is a client address for IQ stanzas.
> Also, when the server replies, it should make the
> from address the server not the user, see example 2 in JEP-0049.
I agree, but the "address of the server" should be the users bare JID.
Maybe in some cases other addressing of the server may be usable, but
with other meaning -- e.g. administrator could read/write private storage
of other users or the server could have own private storage shared or
not associated with any user.
Stanzas addressed from a client's full JID to the same JID and not even
generated by the client seems stupid and not logical to me. We should
get rid of that whereever it is possible. Unfortunately we can't drop it
completely because of backward compatibility.
Greets,
Jacek
More information about the JDev
mailing list