Ticket #94 (closed defect: fixed)
roster query result retains from attribute
| Reported by: | bmuller | Owned by: | smoku |
|---|---|---|---|
| Priority: | major | Component: | sm |
| Version: | 2.1 | Keywords: | |
| Cc: | Tracforge_linkmap: | ||
| Blocking: | Blocked By: |
Description
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='blah@example.com/test' type='get' id='roster_1'><query xmlns='jabber:iq:roster'/></iq>
incorrectly returns
<iq xmlns='jabber:client' from='blah@example.com/test' type='result' id='roster_1'><query xmlns='jabber:iq:roster'/></iq>
when it should return
<iq xmlns='jabber:client' to='blah@example.com/test' type='result' id='roster_1'><query xmlns='jabber:iq:roster'/></iq>
Attached is a quick and dirty patch for mod_roster.c
Attachments
Change History
Note: See
TracTickets for help on using
tickets.
