Bug 171072

Summary: winpopup protocol doesn't sees hosts without description
Product: [Unmaintained] kopete Reporter: Christian Morales Vega <cmorve69>
Component: WinPopup PluginAssignee: Kopete Developers <kopete-bugs-null>
Status: RESOLVED FIXED    
Severity: normal CC: pali.rohar
Priority: NOR    
Version First Reported In: 0.60.1   
Target Milestone: ---   
Platform: openSUSE   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Christian Morales Vega 2008-09-14 20:12:14 UTC
Version:           0.60.1 (using KDE 4.1.1)
OS:                Linux
Installed from:    SuSE RPMs

I am not a QT developer, but libwinpopup.cpp has the line: "QRegExp group("Workgroup\\|(.[^\\|]+)\\|(.+)"), host("Server\\|(.[^\\|]+)\\|(.+)")"

The thing is smbclient output can be like this:
Server|PRIMERO|fdf
Server|R2D2|
if "R2D2" doesn't specifies a description. In such a case looks like kopete doesn't sees it (I don't have control over R2D2 to verify).

So I think the last "\\|(.+)" in the regular expression should be something like "\\|(.*)". Probably the same in all the others regexps.
Comment 1 Christian Morales Vega 2008-09-15 19:19:06 UTC
OK, I verified it.
If my machine hasn't a description (server string) Kopete says I'm not connected to the winpopup network.
Machines without description can't be added like contacts.
Both are fixed after adding a description.

Between, could not libsmbclient be used for everything but the reception of messages? I haven't found API doc, but http://websvn.kde.org/trunk/KDE/kdebase/runtime/kioslave/smb/ could help?
Comment 2 Pali Rohár 2013-06-05 08:08:17 UTC
This bug was fixed in KDE 4.4.