Opened 10 years ago

Last modified 7 years ago

#7553 new plugin request

"User Agent Switcher" for Pidgin

Reported by: ben.gebbit Owned by: deryni
Milestone: Component: XMPP
Version: 2.4.2 Keywords:
Cc:

Description

When a jabber server sends - <query xmlns="jabber:iq:version"/>

Pidgin comes back with a response - <query xmlns='jabber:iq:version'><name>Pidgin</name><version>2.4.2 (libpurple 2.4.2)</version></query>

Similar to "user agent switcher" in Firefox, I'd like to be able to affect the <name> and <version> tags of the response somehow without having to recompile. Maybe in some config file. (?) Preferrably, on an account-by-account level, but at the program level would suffice. The purpose of this would be to spoof pesky IM servers that discriminate specific IM clients.

Applicable output from my debug window:

(16:44:04) jabber: Recv (ssl)(117): <iq type="get" id="921-78" to="test@127.0.0.1/spark" from="manager.127.0.0.1"><query xmlns="jabber:iq:version"/></iq> (16:44:04) jabber: Sending (ssl): <iq type='result' to='manager.127.0.0.1' id='921-78'><query xmlns='jabber:iq:version'><name>Pidgin</name><version>2.4.2 (libpurple 2.4.2)</version></query></iq> (16:44:04) jabber: Recv (ssl)(208): <message from="manager.127.0.0.1" to="test@127.0.0.1/spark"><body>You are using an invalid client, and therefore will be disconnected. Please ask your system administrator for client choices.</body></message>

Change History (3)

comment:1 Changed 10 years ago by datallah

  • Component changed from unclassified to XMPP
  • Owner changed from lschiere to deryni
  • Type changed from enhancement to plugin request

comment:2 Changed 10 years ago by deryni

I'm really against this sort of thing as I really don't think it should be possible (or necessary, that is I think any such client choice limiting policy is horribly wrong at this level).

That being said I do think we should allow people to control whether or not we respond to these sort of requests. I think we used to have a preference for them but yanked them a while back as part of an unrelated policy decision.

And as indicated, a plugin could be written to fake a response as the request comes in or to modify the response as it is sent out.

comment:3 Changed 7 years ago by bleeter

See #15295

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!