Opened 4 years ago

#16777 new defect

Signal connects such as "receiving-im-msg" don't work when XMPP usernames don't match (hipchat direct messages specifically)

Reported by: glajchs Owned by: deryni
Milestone: Component: XMPP
Version: 2.10.9 Keywords: receiving-im-msg signals plugins
Cc:

Description

I'm trying to extend a plugin to do some modifications on incoming and outgoing messages. The protocol I'm using is XMPP, specifically for connecting with Hipchat type servers.

The "receiving-chat-msg" Signal::connect() calls are working just fine, but when trying to add a "receiving-im-msg" call it doesn't work. It does however work over the AIM protocol.

I think it has something to do with the fact that my username in chat rooms is different than my username in IMs using Hipchat(XMPP), or maybe due to the fact that the UI handles for usernames are their full names in Hipchat, but the underlying userId is a string of numbers.

I've attached a debug log to this ticket, as well as a very watered down version of the plugin file that has all the logic except for the log entries removed.

For the debug session, I opened pidgin (auto-logged into AIM and Hipchat), then sent 3 messages. One to a hipchat room (where the "receiving-chat-msg" API works), one to a hipchat direct message to myself (where the "receiving-im-msg" API does not work), and one to myself over AIM (where the "receiving-im-msg" API works).

The name of the plugin is: hipchat-helper-plugin

For the debug log, I've removed a whole bunch of entries about getting information about my buddy list, and replaced a few pieces of more private information as follows:

  • replaced my hipchat userId with 12345_123456
  • replaced my hipchat roomId with 12345_room
  • replaced my hipchat email with myhipchat@email.com
  • replaced my AIM screenname with myaimscreenname
  • replaced my full name with First Last

I'm running Linux Mint 17 (based on Ubuntu 14.04), pidgin 2.10.9, perl v5.18.2.

I'll try updating to the latest pidgin/libpurple source at some point, but as I haven't found any bugs in the system for this, it's less likely that a newer version has a fix.

Notice that when I'm in a hipchat room, my userId is:

"12345_123456@chat.hipchat.com/xmpp||proxy|pubproxy-c100.hipchat.com|5272"

however when I direct message myself, my userId is:

"12345_123456@chat.hipchat.com"

Attachments (2)

debug.log (49.3 KB) - added by glajchs 4 years ago.
debug.log
hipchat-plugin-small.pl (1.6 KB) - added by glajchs 4 years ago.
hipchat-plugin-small.pl

Download all attachments as: .zip

Change History (2)

Changed 4 years ago by glajchs

debug.log

Changed 4 years ago by glajchs

hipchat-plugin-small.pl

Note: See TracTickets for help on using tickets.
All information, including names and email addresses, entered onto this website or sent to mailing lists affiliated with this website will be public. Do not post confidential information, especially passwords!