Package: amsn
Version: 0.98.3-2+b1
Severity: normal
Tags: patch

The current version is unable to receive offline messages, it looks as an
issue with the protocol.
On the forum they suggest to update to the current SVN version:
http://www.amsn-project.net/forums/index.php/topic,8098.0.html

But as we are in freeze, I advice against it. I found, instead, that just
applying this patch (attached to the mail) fixes the issue
http://amsn.svn.sourceforge.net/viewvc/amsn/trunk/amsn/protocol.tcl?r1=12196&r2=12195&pathrev=12196

Do you think you could upload an updated package for squeeze? I tagged the
bug "normal" because it's not a very big issue (nor sending offline messages
on msn is a release critical bug), but I think would be nice have OIMs
working in a stable release! :)

ciao
Riccardo

ps. thanks for maintaining amsn!

-- System Information:
Debian Release: squeeze/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: i386 (i686)

Kernel: Linux 2.6.32-5-686 (SMP w/2 CPU cores)
Locale: lang=it...@euro, lc_ctype=it...@euro (charmap=ISO-8859-15)
Shell: /bin/sh linked to /bin/bash

Versions of packages amsn depends on:
ii  amsn-data               0.98.3-2         Data files for aMSN
ii  libc6                   2.11.2-6         Embedded GNU C Library: Shared lib
ii  libgcc1                 1:4.4.5-4        GCC support library
ii  libglib2.0-0            2.24.2-1         The GLib library of C routines
ii  libgssdp-1.0-2          0.8.0-2          GObject-based library for SSDP
ii  libgstfarsight0.10-0    0.0.21-2         Audio/Video communications framewo
ii  libgstreamer-plugins-ba 0.10.30-1        GStreamer libraries from the "base
ii  libgstreamer0.10-0      0.10.30-1        Core GStreamer libraries and eleme
ii  libgupnp-1.0-3          0.14.0-2         GObject-based library for UPnP
ii  libgupnp-igd-1.0-3      0.1.7-2+b1       library to handle UPnP IGD port ma
ii  libjpeg62               6b1-1            The Independent JPEG Group's JPEG 
ii  libpng12-0              1.2.44-1         PNG library - runtime
ii  libsnack2-alsa [libsnac 2.2.10-dfsg1-9   Sound extension to Tcl/Tk and Pyth
ii  libsoup2.4-1            2.30.2-1         an HTTP library implementation in 
ii  libstdc++6              4.4.5-4          The GNU Standard C++ Library v3
ii  libv4l-0                0.8.1-1          Collection of video4linux support 
ii  libx11-6                2:1.3.3-3        X11 client-side library
ii  libxml2                 2.7.7.dfsg-4     GNOME XML library
ii  tcl-tls                 1.5.0.dfsg-10    the TLS OpenSSL extension to Tcl
ii  tk8.5                   8.5.8-1          Tk toolkit for Tcl and X11, v8.5 -
ii  zlib1g                  1:1.2.3.4.dfsg-3 compression library - runtime

amsn recommends no packages.

Versions of packages amsn suggests:
pn  docker                      <none>       (no description available)
ii  galeon                      2.0.7-2.1+b1 GNOME web browser for advanced use
ii  sox                         14.3.1-1     Swiss army knife of sound processi
ii  tcl8.4 [tclsh]              8.4.19-4     Tcl (the Tool Command Language) v8
ii  tcl8.5 [tclsh]              8.5.8-2      Tcl (the Tool Command Language) v8

-- no debconf information
--- trunk/amsn/protocol.tcl     2010/10/13 22:15:50     12195
+++ trunk/amsn/protocol.tcl     2010/10/16 23:06:47     12196
@@ -3820,6 +3820,11 @@
                        $soap destroy
 
                        set msg [GetXmlEntry $xml 
"soap:Envelope:soap:Body:GetMessageResponse:GetMessageResult"]
+                       if {$msg == ""} {
+                               #microsoft changed the oim format to the prefix 
s: instead of soap:
+                               #so this is some kind of hack to try if this 
oim has the new prefix 
+                               set msg [GetXmlEntry $xml 
"s:Envelope:s:Body:GetMessageResponse:GetMessageResult"]
+                       }
                        set msg [string map {"\r\n" "\n" } $msg]
                        set msg [string map {"\n" "\r\n" } $msg]
                        set message [Message create %AUTO%]
@@ -3839,6 +3844,13 @@
                                status_log "Auth failed, retry : $retry" white
                                 set reauth [GetXmlEntry $xml 
"soap:Envelope:soap:Body:soap:Fault:detail:RequiredAuthPolicy"]
                                 set lock_challenge [GetXmlEntry $xml 
"soap:Envelope:soap:Body:soap:Fault:detail:LockKeyChallenge"]
+                               if {$reauth == "" && $lock_challenge == ""} {
+                                       #microsoft changed the oim format to 
the prefix s: instead of soap:
+                                       #so this is some kind of hack to try if 
this oim has the new prefix 
+                                       set reauth [GetXmlEntry $xml 
"s:Envelope:s:Body:s:Fault:detail:RequiredAuthPolicy"]
+                                       set lock_challenge [GetXmlEntry $xml 
"s:Envelope:s:Body:s:Fault:detail:LockKeyChallenge"]
+                               }
+
                                 if { $lock_challenge != "" } {
                                         CreateLockKey $lock_challenge
                                 }
@@ -3919,6 +3931,13 @@
                        if { $faultcode == "q0:AuthenticationFailed" } {
                                set reauth [GetXmlEntry $xml 
"soap:Envelope:soap:Body:soap:Fault:detail:RequiredAuthPolicy"]
                                set lock_challenge [GetXmlEntry $xml 
"soap:Envelope:soap:Body:soap:Fault:detail:LockKeyChallenge"]
+                               if {$reauth == "" && $lock_challenge == ""} {
+                                       #microsoft changed the oim format to 
the prefix s: instead of soap:
+                                       #so this is some kind of hack to try if 
this oim has the new prefix 
+                                       set reauth [GetXmlEntry $xml 
"s:Envelope:s:Body:s:Fault:detail:RequiredAuthPolicy"]
+                                       set lock_challenge [GetXmlEntry $xml 
"s:Envelope:s:Body:s:Fault:detail:LockKeyChallenge"]
+                               }
+
                                if { $lock_challenge != "" } {
                                        CreateLockKey $lock_challenge
                                } 

Reply via email to