[jdev] iq:private routing in j2

Craig Hollabaugh craig at hollabaugh.com
Fri Jun 4 17:21:22 CDT 2004


On Fri, 2004-06-04 at 13:48, Jacek Konieczny wrote:
> 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.
> 

Interesting, where can I read about this distinction? Is this discussed
in the XMPP spec?


> > 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.

Why do you say this? I'm just trying to understand the reasons why
certain decisions were made. I'm sure the decision was logical but I
just can't see it.

> 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.
> 

My applications requires extension to private storage, namely
administrator r/w access to users private storage. My non-IM clients
will read their configuration information from their private storage.
Some how my admin needs to create, modify and store those configurations
in the user's storage space as the admin, not the 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.

I assumed backward compatibility was why it was a bit different. I've
seen the evolution of the protocol through various JEPs. Everything is
making great progress. I may just abandon the iq:private space and
implement everything with data forms and adhoc commands, seeing that
that is the direction things are moving.

Have a good weekend everybody!
Craig 


> 
> Greets,
>         Jacek 
> _______________________________________________
> jdev mailing list
> jdev at jabber.org
> https://jabberstudio.org/mailman/listinfo/jdev
-- 
------------------------------------------------------------
Dr. Craig Hollabaugh, craig at hollabaugh.com
Author of Embedded Linux: Hardware, Software and Interfacing
www.embeddedlinuxinterfacing.com





More information about the JDev mailing list