#468 <stream:stream> "from" attribute missing on some connection errors
While working on mod_xmpp I discovered that Prosody does not comply with RFC 6120 in response stream headers. See https://tools.ietf.org/html/rfc6120#page-37 :
For response stream headers in both client-to-server and server-to-server communication, the receiving entity MUST include the 'from' attribute and MUST set its value to one of the receiving entity's FQDNs (which MAY be an FQDN other than that specified in the 'to' attribute of the initial stream header, as described under Section 18.104.22.168 and Section 22.214.171.124).
When connecting to Prosody 0.9.4:
c: <stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' to='nope' version='1.0'>
s: <?xml version='1.0'?><stream:stream xmlns:stream='http://etherx.jabber.org/streams' xmlns='jabber:client' version='1.0' id=''><stream:error><host-unknown xmlns='urn:ietf:params:xml:ns:xmpp-streams'/><text xmlns='urn:ietf:params:xml:ns:xmpp-streams'>This server does not serve nope</text></stream:error></stream:stream>
Note that the server's response does not include the required from attribute.