#94: roster query result retains from attribute
--------------------+-------------------------------------------------------
Reporter:  bmuller  |        Owner:  smoku 
    Type:  defect   |       Status:  closed
Priority:  major    |    Component:  sm    
 Version:  2.1      |   Resolution:  fixed 
Keywords:           |     Blocking:        
--------------------+-------------------------------------------------------
Comment (by bmuller):

 This is not fixed yet due to the pkt_tofrom not clearing out the from
 attribute (if a "to" attribute was not given, as in the example in the
 RFC).  So given:
 {{{
 <iq from='[EMAIL PROTECTED]/test' type='get' id='roster_1'><query
 xmlns='jabber:iq:roster'/></iq>
 }}}
 the result is now:
 {{{
 <iq xmlns='jabber:client' to='[EMAIL PROTECTED]/test' type='result'
 id='roster_1' from='[EMAIL PROTECTED]/test'><query
 xmlns='jabber:iq:roster'/></iq>
 }}}
 (note the from is still there).

 Possible fixes would be to either clear the "from" attr in mod_roster or
 have pkt_tofrom check for NULL pkt->to or pkt->from and then clear the
 attribute.

-- 
Ticket URL: <http://jabberd2.xiaoka.com/ticket/94#comment:2>
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