Niklas Gustavsson wrote: > On Tue, Aug 25, 2009 at 4:40 PM, Niklas Gustavsson<nik...@protocol7.com> > wrote: >> On Tue, Aug 25, 2009 at 4:20 PM, Bernd Fondermann<bf_...@brainlounge.de> >> wrote: >>> The client sends directed presence ('d-p') to the server for entering a >>> MUC room ('outbound'). The server then forwards the d-p to the MUC >>> server (be it local or remote), where it becomes 'inbound'. The inbound >>> stanza has (as I suspect) the FULL JID present as a FROM attribute, so >>> this should not really be a problem. >> So, if I understand you correctly, if the client would not send a >> "from" attribute, the server would add it before relaying the stanza >> to the component (in this case MUC)? If so, will the server also >> validate that any existing "from" attribute on the outbound stanza is >> correct (from the user the says to be from)? > > Oh, and is this also true for message and IQ stanzas?
Yes + Yes, see http://tools.ietf.org/html/draft-ietf-xmpp-3920bis-00#section-9.1.2.1 and org.apache.vysper.xmpp.protocol.ProtocolWorker.processStanza() Bernd