Bug 294372 - Telepathy/KDE XMPP component should provide a way to see the XMPP stream
Summary: Telepathy/KDE XMPP component should provide a way to see the XMPP stream
Status: RESOLVED UNMAINTAINED
Alias: None
Product: telepathy
Classification: Unmaintained
Component: general (show other bugs)
Version: 0.3.0
Platform: Ubuntu Linux
: LO wishlist
Target Milestone: Future
Assignee: Telepathy Bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-02-18 15:35 UTC by Dennis Schridde
Modified: 2024-09-18 18:14 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Dennis Schridde 2012-02-18 15:35:53 UTC
Version:           0.3 (using KDE 4.7.4) 
OS:                Linux

I happen to get a "Network error" for one of my accounts and have no way of figuring out what this means or what actually happens.

Reproducible: Didn't try

Steps to Reproduce:
It is a general problem - no need to reproduce.

Actual Results:  
In my particular case Wireshark shows that there is a connection and some initial communication (GABBLE_DEBUG confirms by logging some roster changes), but then the server disconnects (server sends FIN,ACK followed by RST -- GABBLE_DEBUG logs: "gabble-DEBUG: remote_error_cb (connection.c:1629): Force closing of the connection 0x...").

Expected Results:  
I would like to see what the server sent just before it disconnects. Hence it would be nice to have a method to watch the XMPP stream (or a log thereof). For example like Psi offers.
Comment 1 Dennis Schridde 2012-02-18 17:18:42 UTC
A temporary workaround is to start gabble with WOCKY_DEBUG=all.
Comment 2 Dennis Schridde 2012-02-18 17:42:29 UTC
telepathy-gabble-0.15.1 and newer seems to support this:
• fd.o#38568: Ladies and gentlemen, prepare your angle brackets: Gabble
  now ships with an XMPP console interface! You can send IQs and get
  their replies, send arbitrary stanzas, or monitor all incoming and
  outgoing stanzas, all with beautiful GtkSourceView syntax
  highlighting. UI love and caring welcome. Anyone want to make a
  version of the Telepathy “heads” icon with stanzas in place of the
  thought balloons? (wjt)

Upstream bug URL: https://bugs.freedesktop.org/show_bug.cgi?id=38568
Comment 3 David Edmundson 2012-02-19 01:01:50 UTC
The python log viewer contains an ascii art drawing of a pony. I highly recommend people check that out.

So that commit adds two things, a plugin at the gabble level that creates a new Dbus interface on gabble which shows XMPP-XML, and a small python GUI app to show it.

This DBus interface will almost certainly never be marked as stable.

This is a pretty niche requirement so our options are
 - Say "there's a GTK python app, use that if you want logs".
 - Make a proper GUI client somewhere.
 - Properly integrate it like it is in PSI where you can open a console directly from the contact list/accounts kcm somewhere.

Personally I'm against option 3, and too lazy to do option 2 myself. 
However, if someone wants to make a GUI browser, go for it. I don't think I'd have any problem shipping it as a debug tool with no menu entries. I understand the code well enough to mentor/help anyone.
Comment 4 Dennis Schridde 2012-02-19 09:52:12 UTC
Option 1 is enough to satisfy me - I'll add it to the wiki. I'll however leave this open in case someone wants to do 2.
Comment 5 Dennis Schridde 2013-01-08 14:35:43 UTC
Currently on Ubuntu there is no package for this tool. You have to download it from [1], but it will work with Telepathy-Gabble versions starting from 0.15.1, so also with what Ubuntu 12.04 / Precise ships (which is 0.16). On Ubuntu, don't forget to also install gir1.2-gtksource-3.0, which is a dependency of the script.

[1] http://cgit.freedesktop.org/telepathy/telepathy-gabble/plain/plugins/telepathy-gabble-xmpp-console
Comment 6 Christoph Cullmann 2024-09-18 18:14:41 UTC
Dear user, unfortunately Telepathy is no longer maintained.

Please migrate to another solution, e.g. for Jabber a possibility is Kaidan, for Matrix a candidate is NeoChat.