Bug 68204 - MSN plugin will not go online
Summary: MSN plugin will not go online
Status: RESOLVED FIXED
Alias: None
Product: kopete
Classification: Applications
Component: MSN Plugin (show other bugs)
Version: 0.7.3
Platform: unspecified All
: NOR normal
Target Milestone: ---
Assignee: Kopete Developers
URL:
Keywords:
: 68212 68242 68346 68418 68480 68484 68489 69193 69197 69212 69649 71014 71344 71727 71759 72839 99005 (view as bug list)
Depends on:
Blocks:
 
Reported: 2003-11-14 13:38 UTC by Phil Edwards
Modified: 2005-02-11 09:52 UTC (History)
16 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Phil Edwards 2003-11-14 13:38:47 UTC
Version:           0.7.3 (using KDE 3.1.3)
Installed from:    Mandrake Linux Cooker i586 - Cooker
Compiler:          gcc version 3.3.1 (Mandrake Linux 9.2 3.3.1-2mdk)
OS:          Linux (i686) release 2.4.22-21mdk

Kopete appears to connect and authenticate correctly, but the status will not change to online. I've double checked that I've got the password right in my account setup. Here's the output I see when running Kopete from the command line:

$ kopete: [void MSNNotifySocket::setStatus(const KopeteOnlineStatus&)] NLN
kopete: MSNSocket::slotConnectionSuccess
kopete: MSNAuthSocket: Negotiating server protocol version
kopete: MSNSocket::slotReadyWrite: Sending command VER 0 MSNP9
kopete:
kopete: MSNSocket::slotDataReceived: Received 'VER 0 MSNP9
kopete: '
kopete: MSNSocket::slotReadyWrite: Sending command CVR 1 0x0409 winnt 5.1 i386 MSNMSGR 5.0.0 MSMSGS phil@linux2000.com
kopete:
kopete: MSNSocket::slotDataReceived: Received 'CVR 1 6.0.0602 6.0.0602 5.0.0527 http://download.microsoft.com/download/8/a/4/8a42bcae-f533-4468-b871-d2bc8dd32e9e/SETUPNT.EXE http://messenger.msn.com
kopete: '
kopete: MSNSocket::slotReadyWrite: Sending command USR 2 TWN I phil@linux2000.com
kopete:
kopete: MSNSocket::slotDataReceived: Received 'XFR 2 NS 207.46.106.195:1863 0 207.46.104.20:1863
kopete: '
kopete: MSNSocket::slotSocketClosed: socket closed. State: 0x40
kopete: MSNSocket::slotConnectionSuccess
kopete: MSNAuthSocket: Negotiating server protocol version
kopete: MSNSocket::slotReadyWrite: Sending command VER 0 MSNP9
kopete:
kopete: MSNSocket::slotDataReceived: Received 'VER 0 MSNP9
kopete: '
kopete: MSNSocket::slotReadyWrite: Sending command CVR 1 0x0409 winnt 5.1 i386 MSNMSGR 5.0.0 MSMSGS phil@linux2000.com
kopete:
kopete: MSNSocket::slotDataReceived: Received 'CVR 1 6.0.0602 6.0.0602 5.0.0527 http://download.microsoft.com/download/8/a/4/8a42bcae-f533-4468-b871-d2bc8dd32e9e/SETUPNT.EXE http://messenger.msn.com
kopete: '
kopete: MSNSocket::slotReadyWrite: Sending command USR 2 TWN I phil@linux2000.com
kopete:
kopete: MSNSocket::slotDataReceived: Received 'USR 2 TWN S lc=1033,id=507,tw=40,fs=1,ru=http%3A%2F%2Fmessenger%2Emsn%2Ecom,ct=1068813390,kpp=1,kv=5,ver=2.1.0173.1,tpf=a22ad9fb23f81501b99a5af9599297a1
kopete: '
kopete: MSNNotifySocket::parseCommand: https://login.passport.com/login.srf?lc=1033&id=507&tw=40&fs=1&ru=http%3A%2F%2Fmessenger%2Emsn%2Ecom&ct=1068813390&kpp=1&kv=5&ver=2.1.0173.1&tpf=a22ad9fb23f81501b99a5af9599297a1
kopete: MSNNotifySocket::slotAuthJobDone: lc=1033,id=507,tw=40,fs=1,ru=http%3A%2F%2Fmessenger%2Emsn%2Ecom,ct=1068813390,kpp=1,kv=5,ver=2.1.0173.1,tpf=a22ad9fb23f81501b99a5af9599297a1
kopete: MSNNotifySocket::slotAuthJobDone: cl: Set-Cookie: BrowserTest=Success?; domain=.passport.com;path=/;HTTPOnly= ;version=1
kopete: MSNNotifySocket::slotAuthJobDone: cl: Set-Cookie: MSPRequ=lt=1068813391&co=1&id=507
kopete: MSNNotifySocket::slotAuthJobDone: cl: Set-Cookie: MSPPost=0; domain=.passport.com;path=/;version=1
kopete: MSNNotifySocket::slotAuthJobDone: cookie: Cookie: BrowserTest=Success?;MSPRequ=lt=1068813391&co=1&id=507;MSPPost=0;
kopete: MSNNotifySocket::slotAuthJobDone: <HTML><HEAD><meta HTTP-EQUIV="Content-Type" content="text/html; charset=iso-8859-1"><META HTTP-EQUIV="REFRESH" CONTENT="0; URL=http://messenger.msn.com/download/passportdone.asp?did=1&t=5cs4GeHfuDwLi!qM*wvkMpHaD*bRt2CfyFJe5jChd7U92L2GQ65PfgdxkVph5frBJHjuatl6PPd3KcIe3kSH*EBA$$&p=5IrlIT5yGF*im6y!OtrdRVQe2l3sT5LWGa1bXLwDIwh7fzslQr06WeQOauGCCaR1mwxpp!uIut21F3JgR32!8mYovQrRivcV7rvK7yx0wUoORuccd*ff*3TLp5E0dIKSUV3OsmHIQtQHaIERQ3i6Oe1w$$"><script>function OnBack(){}</script></HEAD></HTML>
kopete: MSNSocket::slotReadyWrite: Sending command USR 3 TWN S t=5cs4GeHfuDwLi!qM*wvkMpHaD*bRt2CfyFJe5jChd7U92L2GQ65PfgdxkVph5frBJHjuatl6PPd3KcIe3kSH*EBA$$&p=5IrlIT5yGF*im6y!OtrdRVQe2l3sT5LWGa1bXLwDIwh7fzslQr06WeQOauGCCaR1mwxpp!uIut21F3JgR32!8mYovQrRivcV7rvK7yx0wUoORuccd*ff*3TLp5E0dIKSUV3OsmHIQtQHaIERQ3i6Oe1w$$
kopete:
kopete: MSNSocket::slotDataReceived: Received 'USR 3 OK phil@linux2000.com Phil 1 0
kopete: '
kopete: MSNSocket::slotReadyWrite: Sending command SYN 4 292
kopete:
kopete: MSNSocket::slotDataReceived: Received 'MSG Hotmail Hotmail 459
MIME-Version: 1.0
Content-Type: text/x-msmsgsprofile; charset=UTF-8
LoginTime: 1068813392
EmailEnabled: 0
MemberIdHigh: 229374
MemberIdLow: -2050918700
lang_preference: 1033
preferredEmail:
country:
PostalCode:
Gender:
Kid: 0
Age:
BDayPre:
Birthday:
Wallet:
Flags: 1536
sid: 507
kv: 5
MSPAuth: 5cs4GeHfuDwLi!qM*wvkMpHaD*bRt2CfyFJe5jChd7U92L2GQ65PfgdxkVph5frBJHjuatl6PPd3KcIe3kSH*EBA$$
ClientIP: 217.154.192.4
ClientPort: 22657

kopete: '
kopete: MSNSocket::slotDataReceived: Received 'SYN 4 292
kopete: '
kopete: [void MSNNotifySocket::setStatus(const KopeteOnlineStatus&)] NLN
kopete: MSNSocket::slotReadyWrite: Sending command LSG 5
kopete:
kopete: MSNSocket::slotReadyWrite: Sending command CHG 6 NLN
kopete:
kopete: MSNSocket::slotSocketClosed: socket closed. State: 0x10
kopete: MSNAccount::slotNotifySocketClosed
kopete: MSNNotifySocket::~MSNNotifySocket
Comment 1 Phil Edwards 2003-11-14 13:40:14 UTC
Ooops, sorry, left a bit out. The trace above is what happens when I start Kopete, click the MSN icon and select 'Set Online'.
Comment 2 Will Stephenson 2003-11-14 13:54:10 UTC
This is also in today's CVS, in case no-one noticed!  I've had another report personally that 0.7.x isn't working either.  Is MSN preparing the next round of protocol changes - do you remember one day in Aug we were locked out while they changed things?
Comment 3 Markus Wagner 2003-11-14 14:05:53 UTC
same problem here, under KDE 3.1.4, using kopete 0.8 beta 1. Same debug output.
Comment 4 Jason Keirstead 2003-11-14 14:18:19 UTC
Subject: Re: [Kopete-devel]  MSN plugin will not go online

On November 14, 2003 8:54 am, Will Stephenson wrote:
> ------- Additional Comments From lists@stevello.free-online.co.uk 
> 2003-11-14 13:54 -------
 This is also in today's CVS, in case no-one
> noticed!  I've had another report personally that 0.7.x isn't working
> either.  Is MSN preparing the next round of protocol changes - do you
> remember one day in Aug we were locked out while they changed things?

Nope.

I know because it works fine for me :P Haven't updated my CVS in about 3 days 
though.

Also I don't use a hotmail.com or a passport.com email, if that makes a 
difference.
 

Comment 5 Will Stephenson 2003-11-14 14:32:49 UTC
Subject: Re: [Kopete-devel]  MSN plugin will not go online

On Friday 14 November 2003 13:18, Jason Keirstead wrote:
> Also I don't use a hotmail.com or a passport.com email, if that makes a
> difference.

That's not the differentiating factor - my passport uses a different email 
address as well.


Comment 6 David Menday 2003-11-14 15:14:50 UTC
MSN is currently not going online for me either.
Using gentoo kde 3.1.4 and kopete 0.7.3.
Comment 7 Will Stephenson 2003-11-14 16:13:50 UTC
*** Bug 68212 has been marked as a duplicate of this bug. ***
Comment 8 Olivier Goffart 2003-11-14 16:39:04 UTC
Subject: kdenetwork/kopete/protocols/msn

CVS commit by ogoffart: 

This commit fixes the conneciton in MSN.

The MSN Server just changed a bit. It now does not accept anymore an old command I used.
This is now fixed.
Anyway, Should we backport this to the 0_7_branch  and release Kopete 0.7.4 (or 0.7.3a) ?

CCMAIL: kopete-devel@kde.org
CCMAIL: 68204-done@bugs.kde.org

Note: It's still possible to connect with the old version if you force kopete to download the contactlist from server:
i.e: moving a MSN contact in another group (when you are offline)  
Or editing the kopeterc file and reset the sirial to 0


  M +10 -0     msnaccount.cpp   1.59
  M +1 -7      msnnotifysocket.cpp   1.127


--- kdenetwork/kopete/protocols/msn/msnaccount.cpp  #1.58:1.59
@@ -82,4 +82,14 @@ void MSNAccount::loaded()
         static_cast<MSNContact *>( myself() )->setInfo( "PHM", pluginData( protocol(), "PHM" ) );
         static_cast<MSNContact *>( myself() )->setInfo( "PHW", pluginData( protocol(), "PHW" ) );
+
+        //construct the group list
+        //Before 2003-11-14 the MSN server allowed us to download the group list without downloading the whole contactlist, but it's not possible anymore
+        QPtrList<KopeteGroup> groupList = KopeteContactList::contactList()->groups();
+        for ( KopeteGroup *g = groupList.first(); g; g = groupList.next() )
+        {
+                QString groupNumber=g->pluginData( protocol(), accountId() + " id" );
+                if ( !groupNumber.isEmpty() )
+                        m_groupList.insert( groupNumber.toUInt() , g );
+        }
 }
 

--- kdenetwork/kopete/protocols/msn/msnnotifysocket.cpp  #1.126:1.127
@@ -333,5 +333,5 @@ void MSNNotifySocket::parseCommand( cons
                 //the LSG syntax depends if it is called from SYN or from LSG
                 if(data.contains(' ') > 4) //FROM LSG
-                {
+                { //   --NOTE:  since 2003-11-14 , The MSN Server does not accept anymere the LSG command.  So this is maybe useless now.
                         emit groupListed( unescape( data.section( ' ', 4, 4 ) ), data.section( ' ', 3, 3 ).toUInt() );
                 }
@@ -378,10 +378,4 @@ void MSNNotifySocket::parseCommand( cons
                         m_account->setPluginData(m_account->protocol() , "serial" , data.section( ' ', 0, 0 ) );
                 }
-                else //we have already the contactlist
-                {
-                        //receive even the grouplist, since it is not correctly saved
-                        sendCommand( "LSG" );
-                }
-
                 // set the status
                 setStatus( m_newstatus );


Comment 9 Arend van Beelen jr. 2003-11-14 16:48:17 UTC
A backport would be nice, as I understood the 0.8 series only works with KDE 3.2 and I'm still on 3.1.4 ;)

Thanks a lot!

Arend jr.
Comment 10 Will Stephenson 2003-11-14 17:54:38 UTC
Subject: Re: [Kopete-devel]  MSN plugin will not go online

On Friday 14 November 2003 15:48, Arend van Beelen jr. wrote:
> A backport would be nice, as I understood the 0.8 series only works with
> KDE 3.2 and I'm still on 3.1.4 ;)

Actually, you are mistaken - it works with 3.1.4 if you follow the 
instructions on kopete.kde.org.  The problems reported are due to the 
inclusion of the docs with the first beta, which are 3.2 specific.

Comment 11 Michael Dunham 2003-11-14 18:30:58 UTC
I was having the same problem this morning - running FreeBSD 5.1, KDE 3.1.4 and Kopete 7.3.  I tried moving a contact among groups, and connected immediately, so the idea that you have to force the contact list to be downloaded is definately correct.
Comment 12 Martijn Klingens 2003-11-14 23:10:02 UTC
*** Bug 68242 has been marked as a duplicate of this bug. ***
Comment 13 Benji Weber 2003-11-14 23:24:12 UTC
"it works with 3.1.4 if you follow the 
 instructions on kopete.kde.org."

where are the instructions on kopete.kde.org? I cant find them, and when i try to make .8 beta it just gives loads of xml errors
Comment 14 Will Stephenson 2003-11-15 00:19:34 UTC
wrt #10 read the Installation Instructions about building from cvs,
forget beta 1, 
loads of things have been fixed since then, 
and if you check out CVS, 
you don't get the docs, 
which are the source of all the XML errors.
Comment 15 Benji Weber 2003-11-15 09:09:14 UTC
thank you, compiled from CVS no problem
Comment 16 Matt Rogers 2003-11-16 06:41:49 UTC
*** Bug 68346 has been marked as a duplicate of this bug. ***
Comment 17 Will Stephenson 2003-11-17 13:20:51 UTC
*** Bug 68418 has been marked as a duplicate of this bug. ***
Comment 18 Will Stephenson 2003-11-18 08:47:43 UTC
*** Bug 68480 has been marked as a duplicate of this bug. ***
Comment 19 Will Stephenson 2003-11-18 09:34:07 UTC
*** Bug 68484 has been marked as a duplicate of this bug. ***
Comment 20 Will Stephenson 2003-11-18 11:31:54 UTC
*** Bug 68489 has been marked as a duplicate of this bug. ***
Comment 21 ketil vestby 2003-11-23 15:15:45 UTC
Got the problem with both 0.7.3 and 0.7.4 on SuSE Linux 9.0, compiled the sources
without errors but it did not help. I have proposed Kopete for the Skolelinux distro, but do regret it because of this bug.
I am not too sure about the explanation of the bug, I start Kopete automatically when using KDE and sometimes it connects. Last connection was this morning.
Comment 22 Will Stephenson 2003-11-28 00:23:30 UTC
*** Bug 69193 has been marked as a duplicate of this bug. ***
Comment 23 Will Stephenson 2003-11-28 09:25:07 UTC
*** Bug 69197 has been marked as a duplicate of this bug. ***
Comment 24 lucian lazar 2003-11-28 11:40:22 UTC
Same problem for me,under Kd3 3.1.4 wih kopete 0.7.4 .I can go online only if every time i restart kopete first delete my msn account,and then recreate it.it works.
Comment 25 Will Stephenson 2003-11-28 14:19:47 UTC
*** Bug 69212 has been marked as a duplicate of this bug. ***
Comment 26 Olivier Goffart 2003-12-04 21:43:43 UTC
*** Bug 69649 has been marked as a duplicate of this bug. ***
Comment 27 Olivier Goffart 2003-12-22 10:23:08 UTC
*** Bug 71014 has been marked as a duplicate of this bug. ***
Comment 28 Casey Allen Shobe 2003-12-28 08:33:42 UTC
*** Bug 71344 has been marked as a duplicate of this bug. ***
Comment 29 Olivier Goffart 2004-01-03 10:00:48 UTC
*** Bug 71727 has been marked as a duplicate of this bug. ***
Comment 30 Will Stephenson 2004-01-03 20:01:19 UTC
*** Bug 71759 has been marked as a duplicate of this bug. ***
Comment 31 Olivier Goffart 2004-01-17 19:54:55 UTC
*** Bug 72839 has been marked as a duplicate of this bug. ***
Comment 32 Olivier Goffart 2005-02-11 09:52:32 UTC
*** Bug 99005 has been marked as a duplicate of this bug. ***