Bug 318435 - telepathy history browser repeatedly offers to import jabber logs from kopete
Summary: telepathy history browser repeatedly offers to import jabber logs from kopete
Status: CONFIRMED
Alias: None
Product: telepathy
Classification: Frameworks and Libraries
Component: log-viewer (show other bugs)
Version: 0.6.0
Platform: Gentoo Packages Linux
: NOR normal
Target Milestone: Future
Assignee: Telepathy Bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-04-16 09:13 UTC by Vit Pelcak
Modified: 2021-03-09 07:25 UTC (History)
3 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 Vit Pelcak 2013-04-16 09:13:56 UTC
Offer to import jabber logs from kepete is opened repeatedly even when import was already done.

I think, that it should be displayed once, but made available via some button just in case there are new updates in logs.

Reproducible: Always

Steps to Reproduce:
1) Have some jabber logs in kopete.
2) Start telepathy
3) In telepathy contact list right click on whatever contact and select "Open log viewer"
4) Offer to import jabber logs from kopete will be offered
Comment 1 Daniel Vrátil 2013-04-16 10:56:36 UTC
Could you make sure ktp-log-viewer is checked in kdebugdialog, then start logviewer from console (/usr/bin/ktp-log-viewer) and paste the output here?
Comment 2 Daniel Vrátil 2013-06-18 11:03:26 UTC
Can this still be reproduced with KTp 0.6.2? Can you provide the details from comment #1 please?
Comment 3 Vit Pelcak 2013-06-18 11:06:28 UTC
Yes. Whenever I open log viewer on ktp 0.6.2 I'm offered to import logs from kopete.
Comment 4 David Edmundson 2013-06-18 11:09:29 UTC
That does not include the information Dan requested.
Comment 5 Vit Pelcak 2013-06-18 11:12:14 UTC
Sorry, I overlooked it. Thanks for reminding.

$ /usr/bin/ktp-log-viewer
ktp-log-viewer(17601)/kdecore (K*TimeZone*) KSystemTimeZonesPrivate::instance: instance(): ... initialised
ktp-log-viewer(17601)/kdecore (K*TimeZone*) KSystemTimeZonesPrivate::readConfig: readConfig(): local zone= "Europe/Prague"
ktp-log-viewer(17601)/kdecore (K*TimeZone*) KSystemTimeZonesPrivate::readZoneTab: readZoneTab( "/usr/share/zoneinfo/zone.tab" )
tp-qt4-tpl DEBUG:  static Tpl::Utils* Tpl::Utils::instance()  :  Created Utils instance
ktp-log-viewer(17601) KTp::LogsImporter::Private::accountIdToProtocol: "salut/local_xmpp/account0" is an unsupported protocol
ktp-log-viewer(17601) KTp::LogsImporter::Private::findKopeteLogs: Unsupported protocol
ktp-log-viewer(17601) LogViewer::slotImportKopeteLogs: Initial Kopete logs import: found 3 accounts to import
tp-qt4-tpl DEBUG:  TpAccount* Tpl::Utils::tpAccount(const AccountPtr&)  :  account= true
tp-qt4-tpl DEBUG:  TpAccount* Tpl::Utils::tpAccount(const AccountPtr&)  :  objectPath= "/org/freedesktop/Telepathy/Account/gabble/jabber/belisarivs_40njs_2enetlab_2ecz0"
tp-qt4-tpl DEBUG:  TpAccountManager* Tpl::Utils::tpAccountManager()  :
tp-qt4-tpl DEBUG:  TpAccount* Tpl::Utils::tpAccount(const AccountPtr&)  :  account= 0x16a6010
tp-qt4-tpl DEBUG:  TpAccount* Tpl::Utils::tpAccount(const AccountPtr&)  :  account= true
tp-qt4-tpl DEBUG:  TpAccount* Tpl::Utils::tpAccount(const AccountPtr&)  :  objectPath= "/org/freedesktop/Telepathy/Account/gabble/jabber/vit_2epelcak_40chat_2efacebook_2ecom1"
tp-qt4-tpl DEBUG:  TpAccountManager* Tpl::Utils::tpAccountManager()  :
tp-qt4-tpl DEBUG:  TpAccount* Tpl::Utils::tpAccount(const AccountPtr&)  :  account= 0x16a61a0
tp-qt4-tpl DEBUG:  TpAccount* Tpl::Utils::tpAccount(const AccountPtr&)  :  account= true
tp-qt4-tpl DEBUG:  TpAccount* Tpl::Utils::tpAccount(const AccountPtr&)  :  objectPath= "/org/freedesktop/Telepathy/Account/salut/local_xmpp/account0"
tp-qt4-tpl DEBUG:  TpAccountManager* Tpl::Utils::tpAccountManager()  :
tp-qt4-tpl DEBUG:  TpAccount* Tpl::Utils::tpAccount(const AccountPtr&)  :  account= 0x16a6330
tp-qt4-tpl DEBUG:  TpAccount* Tpl::Utils::tpAccount(const AccountPtr&)  :  account= true
tp-qt4-tpl DEBUG:  TpAccount* Tpl::Utils::tpAccount(const AccountPtr&)  :  objectPath= "/org/freedesktop/Telepathy/Account/haze/groupwise/vpelcak2"
tp-qt4-tpl DEBUG:  TpAccountManager* Tpl::Utils::tpAccountManager()  :
tp-qt4-tpl DEBUG:  TpAccount* Tpl::Utils::tpAccount(const AccountPtr&)  :  account= 0x16a64c0
tp-qt4-tpl DEBUG:  TpAccount* Tpl::Utils::tpAccount(const AccountPtr&)  :  account= true
tp-qt4-tpl DEBUG:  TpAccount* Tpl::Utils::tpAccount(const AccountPtr&)  :  objectPath= "/org/freedesktop/Telepathy/Account/gabble/jabber/vit_40pelcak_2eorg0"
tp-qt4-tpl DEBUG:  TpAccountManager* Tpl::Utils::tpAccountManager()  :
tp-qt4-tpl DEBUG:  TpAccount* Tpl::Utils::tpAccount(const AccountPtr&)  :  account= 0x16a6650
Comment 6 David Edmundson 2013-06-18 11:13:39 UTC
Thanks.

Could you tell me whether .kde/share/config/ktelepathyrc contains

[logs]
InitialKopeteImportDone=true
Comment 7 Vit Pelcak 2013-06-18 11:21:20 UTC
No, it doesn't.

There is no [log] section at all.
Comment 8 Alexander Potashev 2015-05-12 11:40:52 UTC
The code looks bulletproff, the only way InitialKopeteImportDone=true might not be written is probably if ktp-log-viewer crashes. And the importer source code didn't change since its first version.

What happens after you accept the import dialog? Is the config file writable?
Comment 9 Justin Zobel 2021-03-09 07:25:40 UTC
Thank you for the bug report.

As this report hasn't seen any changes in 5 years or more, we ask if you can please confirm that the issue still persists.

If this bug is no longer persisting or relevant please change the status to resolved.