[Pidgin] #3532: Jabber does not parse correctly incomming messages

Pidgin trac at pidgin.im
Fri Oct 12 18:59:39 EDT 2007


#3532: Jabber does not parse correctly incomming messages
--------------------------------+-------------------------------------------
 Reporter:  emilal              |       Type:  defect
   Status:  new                 |   Priority:  minor 
Component:  plugins             |    Version:  2.2.1 
 Keywords:  Jabber not working  |    Pending:  0     
--------------------------------+-------------------------------------------
 The incoming messages from Gtalk (Jabber) does not parce correctly and
 stay without message body.
 The code from Jabber/message.c try to execute:
                 } else if(!strcmp(child->name, "body") &&
 !strcmp(xmlns,"jabber:client")) {
                         if(!jm->body) {
                                 char *msg = xmlnode_to_str(child, NULL);
                                 jm->body = purple_strdup_withhtml(msg);
                                 g_free(msg);
                         }
 The xmlns is not "jabber:client", but
 xmlns='http://jabber.org/protocol/chatstates'

 That way, the "received-im-msg" callback is not called, and message not
 received. I saw this change is introduced from 2.1.0 (working version) to
 2.2.1. The previose code does not try: '''&&
 !strcmp(xmlns,"jabber:client"))''' - so is working.

 The bug is reproducible for both example - nullclient.c and finch.

-- 
Ticket URL: <http://developer.pidgin.im/ticket/3532>
Pidgin <http://pidgin.im>
Pidgin


More information about the Tracker mailing list