#94: roster query result retains from attribute
--------------------+-------------------------------------------------------
Reporter:  bmuller  |       Owner:  smoku
    Type:  defect   |      Status:  new  
Priority:  major    |   Component:  sm   
 Version:  2.1      |    Blocking:       
--------------------+-------------------------------------------------------
 Per the example given at
 http://www.xmpp.org/rfcs/rfc3921.html#rfc.section.7.3 the iq can have a
 "from" attribute in the request to retrieve the roster.  This from
 attribute and value are retained in the response.  The from attribute
 should be removed, and a "to" attribute added.

 For instance:
 {{{
 <iq from='[EMAIL PROTECTED]/test' type='get' id='roster_1'><query
 xmlns='jabber:iq:roster'/></iq>
 }}}
 incorrectly returns
 {{{
 <iq xmlns='jabber:client' from='[EMAIL PROTECTED]/test' type='result'
 id='roster_1'><query xmlns='jabber:iq:roster'/></iq>
 }}}
 when it should return
 {{{
 <iq xmlns='jabber:client' to='[EMAIL PROTECTED]/test' type='result'
 id='roster_1'><query xmlns='jabber:iq:roster'/></iq>
 }}}

 Attached is a quick and dirty patch for mod_roster.c

-- 
Ticket URL: <http://jabberd2.xiaoka.com/ticket/94>
jabberd2 <http://jabberd2.xiaoka.com/>
jabberd2 project
_______________________________________________
jabberd2 mailing list
[email protected]
http://lists.xiaoka.com/listinfo.cgi/jabberd2-xiaoka.com

Reply via email to