Bug 64223 - MSN Contacts aren't displayed in contact list with non-existant contactlist.xml
Summary: MSN Contacts aren't displayed in contact list with non-existant contactlist.xml
Status: RESOLVED FIXED
Alias: None
Product: kopete
Classification: Unmaintained
Component: MSN Plugin (other bugs)
Version First Reported In: unspecified
Platform: Compiled Sources Linux
: NOR normal
Target Milestone: ---
Assignee: Kopete Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-09-13 22:27 UTC by Matt Rogers
Modified: 2003-09-22 18:49 UTC (History)
0 users

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


Attachments
debug output (1.38 KB, text/plain)
2003-09-13 23:02 UTC, Matt Rogers
Details
new debug output after setting serial to 0 (5.92 KB, text/plain)
2003-09-22 03:50 UTC, Matt Rogers
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Matt Rogers 2003-09-13 22:27:24 UTC
Version:           0.7.91>=20030909 (using KDE Devel)
Installed from:    Compiled sources
Compiler:          gcc 3.3.1 
OS:          Linux

Pretty self-explanatory. I delete my contactlist.xml from time to time and after deleting it this time around, none of the contacts that were in my list previously were added, even though I can see from the debug output that they still exist on MSN's server list (I see LST commands from the MSN protocol in the debug output). 

However, adding a new user works correctly.
Comment 1 Olivier Goffart 2003-09-13 22:57:19 UTC
I realy told you i am unable to reproduce this at all. 
i deleted my contactlist, and then run kopete again, and the contactlist is 
there. 
 
so i can't do anything at the momant. 
can i see the debug ouput? 
(startyng from when the client send the SYN command) 
(maybe you could show me in private) 
Comment 2 Matt Rogers 2003-09-13 23:02:46 UTC
Created attachment 2446 [details]
debug output

debug output
Comment 3 Matt Rogers 2003-09-13 23:03:45 UTC
Ok, there's the debug output. I just noticed that I now no longer seem to receiving the LST 
commands after the LSG commands as I did before. 
Comment 4 Olivier Goffart 2003-09-14 00:09:13 UTC
> kopete (msn): MSNSocket::slotReadyWrite: Sending command SYN 4 372 
 
The 372 should be 0 when there are 0 contact (i did that check because i 
delete sometimes my contactlist.xml myslef) 
 
this number (372) represent the serverside contactlist verison number. each 
time the contactlist is modified serverside, this number is incremented. 
 
If the MSN client store the contactlist localy (that's the case of kopete in 
the contactlist.xml, that's the case of the official client i don't know 
where) they send this version number when they get connected. 
if the serverside list version number is greater, then, the server send back 
the contactlist. if not, they don't. 
that make the connection time much faster. 
 
the serial number is stored in the account->pluginData() 
 
anyway, when you have zero contact, kopete send 0 
 
 
Comment 5 Martijn Klingens 2003-09-14 17:18:50 UTC
Subject: Re: [Kopete-devel]   MSN Contacts aren't displayed in contact list with non-existant contactlist.xml

On Sunday 14 September 2003 00:09, Olivier Goffart wrote:
> the serial number is stored in the account->pluginData()

Ouch, and the account data is in kopeterc.

If there's no contactlist.xml this should be reset. Perhaps the easiest check 
is whether there are any KopeteContacts for the current account, and if the 
count is 0 (i.e. after nuking the XML), force the serial to 0?

Comment 6 Matt Rogers 2003-09-14 17:22:20 UTC
Subject:  MSN Contacts aren't displayed in contact list with non-existant contactlist.xml

my serial number still says 372, so yes, i would welcome this change. For now 
I will get them all back by setting my serial number to 0, but this 
definately needs to be fixed.

Comment 7 Matt Rogers 2003-09-21 18:03:38 UTC
Ok, so i've set my Serial number to 0 in my kopeterc file and my msn contacts still don't 
come back. ;(  
Comment 8 Olivier Goffart 2003-09-21 18:21:11 UTC
then, now, the debug output could be interesting 
 
Comment 9 Matt Rogers 2003-09-22 03:49:14 UTC
Subject: Debug Output

Ok, I've attached debug output . If you want my contactlist.xml file, you'll 
have to get it from me directly since i don't feel comfortable attaching it 
here.
GTC A
kopete (msn): [void MSNNotifySocket::setStatus(const KopeteOnlineStatus&)] NLN
kopete (msn): MSNAuthSocket::parseCommand: Unimplemented command 'GTC 0 A ' from server!
kopete (msn): [void MSNSocket::slotDataReceived()] Received: BLP AL
PRP PHH 1%20817-581-8294
PRP PHW 1%20817-369-5795
PRP PHM 1%20817-917-0464
PRP MOB Y
PRP MBE Y
LSG 0 123456 0
LSG 2 Friends 0
LSG 3 Family 0
LSG 1 General 0
LST railgeek54@msn.com railgeek54@msn.com 10
LST rrroarr@hotmail.com rrroarr%40hotmail.com 10
LST starscream34@hotmail.com adrian 2
LST rjanelle@hotmail.com Janelle 10
LST wonderer413@hotmail.com Brandon 2
LST busstop45@hotmail.com Shortstuff 10
LST megangl25@hotmail.com day%20dream%20beeliever 2
LST blader06@hotmail.com blader06@hotmail.com 10
LST mmmmont@msn.com mmmmont%40msn.com 2
LST kopete04@msn.com Kopete%20-%2025%20-%20- 10
LST chrisd0821@hotmail.com Chris 10
LST qtgirl21@hotmail.com Marla 10
LST punky18_01@hotmail.com wrong%20way%20right%20way,%20back%20luck%20youve%20gotta%20be%20kidding%20me%20(packing) 10
LST audie35@hotmail.com Autumn 11 2
LST mj_montgomery@hotmail.com mj_montgomery%40hotmail.com 2
LST texasrailgeek@hotmail.com texasrailgeek@hotmail.com 10
LST grogers@mail.com Greg 10
LST railgeek@msn.com Greg 10
kopete (msn): MSNSocket::slotReadyWrite: Sending command CHG 5 NLN 268435492
kopete (msn): [void MSNContact::setInfo(const QString&, const QString&)] Unknow info MBE Y
kopete (msn): [void MSNSocket::slotDataReceived()] Received: CHG 5 NLN 268435492
kopete (msn): MSNAccount::slotStatusChanged: 1
Comment 10 Matt Rogers 2003-09-22 03:50:31 UTC
Created attachment 2540 [details]
new debug output after setting serial to 0

New Debug output
Comment 11 Matt Rogers 2003-09-22 03:51:25 UTC
*sigh* well, that didn' work the way I expected it to (Comment #9 was sent via email with 
the debug output as an attachment).  
Comment 12 Olivier Goffart 2003-09-22 16:51:12 UTC
 
Contact are not added simply because they are not in your contactlist. 
Only "Autumn" is 
 
The other question is "why all contact are deleted" 
It could have several reason. For example, it hapenned to me a day  a broke 
the signal / slot BC (i changed some slot order). So it used slotDeleteContact 
for i don't remember what slot. 
 
Comment 13 Matt Rogers 2003-09-22 18:07:04 UTC
How is this fixed?!!!!!? Can you explain to me why the other contacts that 
should be in my contact list show up in the LST commands, but don't get added 
to my contact list? Is it because they have the number 10 next to their name 
instead of 11? Either way, it's still not fixed, since instead of contacts 
being added, they're deleted instead! (unless i'm wrong about this, and you're 
going to have to give me a good explaination as to why if I am).
Comment 14 Olivier Goffart 2003-09-22 18:49:08 UTC
http://www.hypothetic.org/docs/msn/research/msnp8.php