Ok. What's a "session context" in your mind (for future reference)?
I was just trying to clarify.. Someone was complaining that they could
not get a "from" attribute for a stanza sent to the MUC component from a
client (some reference to Smack being brought up). And in my mind that
would be a bug in the server for not adding the "from" attribute. :)
On 8/25/09 10:27 AM, Bernd Fondermann wrote:
Fernando Padilla wrote:
On 8/25/09 6:24 AM, Niklas Gustavsson wrote:
If the client send a full JID, that is true. But, as in the case of
Smack, the client might not send a "from" attribute at all, in which
case we will need to figure out a resource anyways (not sure yet what
the best way is or if the spec says this somewhere).
Just a question. Isn't it the server's job to add the "from"
attribute? Not the client? So shouldn't Vysper be adding the "from",
when it first receives the stanza on the originating connection?
You are right. And the server does exactly that, but only in case the
stanza leaves the session context, and the FROM is no longer trackable
from that. Yet often the stanza either never leaves the session context
(e.g. disco IQs), or results in new stanza being sent (presence).
Bernd