Package: centericq Version: 4.21.0-15 Tags: patch Followup-For: Bug #347846
Bonjour Julien, centericq can not connect to some jabber servers, such as ejabberd 1.1.2, and fails with a 503 error. Apparently, the reason is that it issues a "Agent List" request, which is said to be deprecated on the following website: http://forum.centericq.de/viewtopic.php?p=2295&sid=74c3dc27a23192ccc07a8af8b0a4a758 I could not confirm that this request is really deprecated, but indeed preventing centericq from using it solves the problem and makes it possible again to connect to jabber servers previously issuing 503 errors. The attached patch transposes the fix proposed on the website to the dpatch system used in your package. Have a nice day, -- Charles Plessy http://charles.plessy.org Wako, Saitama, Japan -- System Information: Debian Release: testing/unstable APT prefers unstable APT policy: (500, 'unstable'), (500, 'testing') Architecture: powerpc (ppc64) Shell: /bin/sh linked to /bin/bash Kernel: Linux 2.6.16farm Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8) Versions of packages centericq depends on: ii centericq-com 4.21.0-15 A text-mode multi-protocol instant ii libc6 2.3.6-7 GNU C Library: Shared libraries ii libcomerr2 1.38+1.39-WIP-2005.12.31-1 common error description library ii libcurl3 7.15.5-1 Multi-protocol file transfer libra ii libgcc1 1:4.1.1-14 GCC support library ii libgnutls13 1.4.2-1 the GNU TLS library - runtime libr ii libgpg-error0 1.2-1 library for common error values an ii libgpgme11 1.1.2-2 GPGME - GnuPG Made Easy ii libidn11 0.5.18-1 GNU libidn library, implementation ii libjpeg62 6b-11 The Independent JPEG Group's JPEG ii libkrb53 1.4.4~beta1-1 MIT Kerberos runtime libraries ii libncurses5 5.5-1 Shared libraries for terminal hand ii libssl0.9.8 0.9.8b-2 SSL shared libraries ii libstdc++6 4.1.1-14 The GNU Standard C++ Library v3 ii zlib1g 1:1.2.3-11 compression library - runtime Versions of packages centericq recommends: ii epiphany-browser [www 2.14.2.1-2 Intuitive GNOME web browser ii firefox [www-browser] 1.5.dfsg+1.5.0.4-3 lightweight web browser based on M ii konqueror [www-browse 4:3.5.1-1 KDE's advanced file manager, web b ii links [www-browser] 0.99+1.00pre12-1 Character mode WWW browser ii lynx [www-browser] 2.8.5-2sarge1 Text-mode WWW Browser ii mozilla-browser [www- 2:1.7.12-1 The Mozilla Internet application s pn sox <none> (no description available) ii w3m [www-browser] 0.5.1-4 WWW browsable pager with excellent -- no debconf information
diff -ruN centericq-4.21.0.old/debian/changelog centericq-4.21.0/debian/changelog --- centericq-4.21.0.old/debian/changelog 2006-10-04 22:44:48.000000000 +0900 +++ centericq-4.21.0/debian/changelog 2006-10-04 23:03:30.000000000 +0900 @@ -1,3 +1,9 @@ +centericq (4.21.0-16) unstable; urgency=low + + * Fixed connection to some jabber servers. (Closes: #347846) + + -- Charles Plessy <[EMAIL PROTECTED]> Wed, 4 Oct 2006 23:02:44 +0900 + centericq (4.21.0-15) unstable; urgency=low * Applied libmsn patch from centericq.de (centericq-cvs-20060722-msn.patch) diff -ruN centericq-4.21.0.old/debian/patches/00list centericq-4.21.0/debian/patches/00list --- centericq-4.21.0.old/debian/patches/00list 2006-10-04 22:44:48.000000000 +0900 +++ centericq-4.21.0/debian/patches/00list 2006-10-04 23:04:00.000000000 +0900 @@ -17,4 +17,5 @@ jabber_segv new_msn msn_segv +jabber_503.dpatch diff -ruN centericq-4.21.0.old/debian/patches/jabber_503.dpatch centericq-4.21.0/debian/patches/jabber_503.dpatch --- centericq-4.21.0.old/debian/patches/jabber_503.dpatch 1970-01-01 09:00:00.000000000 +0900 +++ centericq-4.21.0/debian/patches/jabber_503.dpatch 2006-10-04 23:00:53.000000000 +0900 @@ -0,0 +1,27 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run +## jabber_503.dpatch.dpatch by Charles Plessy <[EMAIL PROTECTED]> +## +## DP: copied from http://forum.centericq.de/viewtopic.php?p=2295&sid=74c3dc27a23192ccc07a8af8b0a4a758 +## DP which says "While connecting to server, centericq requests agents list, +## DP but due to this feature is deprected, recieves 503 error, thus breaking +## DP connection. " + [EMAIL PROTECTED]@ + +--- centericq-4.21.0.old/src/hooks/jabberhook.cc 2005-08-26 20:06:23.000000000 +0900 ++++ centericq-4.21.0/src/hooks/jabberhook.cc 2006-10-04 22:51:09.000000000 +0900 +@@ -887,10 +887,10 @@ + void jabberhook::gotloggedin() { + xmlnode x; + +- x = jutil_iqnew(JPACKET__GET, NS_AGENTS); +- xmlnode_put_attrib(x, "id", "Agent List"); +- jab_send(jc, x); +- xmlnode_free(x); ++// x = jutil_iqnew(JPACKET__GET, NS_AGENTS); ++// xmlnode_put_attrib(x, "id", "Agent List"); ++// jab_send(jc, x); ++// xmlnode_free(x); + + x = jutil_iqnew(JPACKET__GET, NS_ROSTER); + xmlnode_put_attrib(x, "id", "Roster");

