Opened 3 years ago

Closed 3 years ago

#238 closed defect (fixed)

qutecom remove user profile

Reported by: gray_graff Owned by: laurent
Priority: blocker Milestone: QuteCom 2.2-RC4
Component: GUI Version: 2.2
Keywords: Cc:

Description

updated qutecom from commit 627 to 636
http://sisyphus.ru/ru/srpm/Sisyphus/qutecom/changelog

after start:
$ qutecom
(fatal) 12:10:26 [Common] /usr/src/RPM/BUILD/qutecom-2.2/wengophone/src/model/config/ConfigImporter.cpp:210 static void ConfigImporter::importConfig(): importer: config=13 failed to reach config=14
(error) 12:10:30 [Common] virtual bool UserProfileFileStorage::load(const std::string&): cannot load profile 101@asterisk from 'profiles'. Trying from 'backups'.
(error) 12:10:30 [Common] virtual bool UserProfileFileStorage::load(const std::string&): cannot load profile 101@asterisk from 'backups'.
(error) 12:10:31 [Common] virtual bool UserProfileFileStorage::load(const std::string&): cannot load profile 103@asterisk from 'profiles'. Trying from 'backups'.
(error) 12:10:31 [Common] virtual bool UserProfileFileStorage::load(const std::string&): cannot load profile 103@asterisk from 'backups'.

$ ls -l ~/.qutecom/profiles
total 0

Attachments (3)

fix_Config_Import.diff (1.8 KB) - added by laurent 3 years ago.
fix_Config_Import2.diff (2.3 KB) - added by laurent 3 years ago.
historymemento-bump-version.patch (1.5 KB) - added by cavedon 3 years ago.

Download all attachments as: .zip

Change History (18)

comment:1 Changed 3 years ago by laurent

  • Resolution set to fixed
  • Status changed from new to closed

The version of your config.xml is too old. Use the last one http://trac.qutecom.org/browser/wengophone/resources/config/config.xml

comment:3 Changed 3 years ago by gray_graff

  • Resolution fixed deleted
  • Status changed from closed to reopened

comment:4 Changed 3 years ago by gray_graff

from this git repo i build qutecom for altlinux
and users, who update qutecom from old version to latest, get problem (remover profiles)
thanx :)

Changed 3 years ago by laurent

comment:5 Changed 3 years ago by laurent

Is it fixed with this patch ?

comment:6 Changed 3 years ago by gray_graff

not

/usr/src/RPM/BUILD/qutecom-2.2/wengophone/src/model/config/ConfigImporter.cpp: In static member function 'static void ConfigImporter::importConfig()':
/usr/src/RPM/BUILD/qutecom-2.2/wengophone/src/model/config/ConfigImporter.cpp:211: error: 'CONFIG_VERSION10' was not declared in this scope
/usr/src/RPM/BUILD/qutecom-2.2/wengophone/src/model/config/ConfigImporter.cpp:214: error: 'CONFIG_VERSION10' was not declared in this scope
/usr/src/RPM/BUILD/qutecom-2.2/wengophone/src/model/config/ConfigImporter.cpp:216: error: 'CONFIG_VERSION11' was not declared in this scope
/usr/src/RPM/BUILD/qutecom-2.2/wengophone/src/model/config/ConfigImporter.cpp:219: error: 'CONFIG_VERSION11' was not declared in this scope
/usr/src/RPM/BUILD/qutecom-2.2/wengophone/src/model/config/ConfigImporter.cpp:221: error: 'CONFIG_VERSION12' was not declared in this scope
/usr/src/RPM/BUILD/qutecom-2.2/wengophone/src/model/config/ConfigImporter.cpp:224: error: 'CONFIG_VERSION12' was not declared in this scope
/usr/src/RPM/BUILD/qutecom-2.2/wengophone/src/model/config/ConfigImporter.cpp:226: error: 'CONFIG_VERSION13' was not declared in this scope
/usr/src/RPM/BUILD/qutecom-2.2/wengophone/src/model/config/ConfigImporter.cpp:229: error: 'CONFIG_VERSION13' was not declared in this scope
/usr/src/RPM/BUILD/qutecom-2.2/wengophone/src/model/config/ConfigImporter.cpp:231: error: 'CONFIG_VERSION14' was not declared in this scope
/usr/src/RPM/BUILD/qutecom-2.2/wengophone/src/model/config/ConfigImporter.cpp:234: error: 'CONFIG_VERSION14' was not declared in this scope
/usr/src/RPM/BUILD/qutecom-2.2/wengophone/src/model/config/ConfigImporter.cpp:236: error: 'CONFIG_VERSION15' was not declared in this scope

Changed 3 years ago by laurent

comment:7 Changed 3 years ago by laurent

This one is better

comment:8 Changed 3 years ago by gray_graff

  • Resolution set to fixed
  • Status changed from reopened to closed

yes:) good patch
do not remove user profile anymore :)

comment:9 Changed 3 years ago by laurent

bug fix : 639

comment:10 Changed 3 years ago by vadim

Don't you thnk that the code should be simplified like in:

if (loclaVersion < CONFIG_VERSION15)

localVersion = CONFIG_VERSION15;

comment:11 Changed 3 years ago by cavedon

  • Resolution fixed deleted
  • Status changed from closed to reopened

I am experincing this same issue with the latest hg snapshot [641]: it removes all profiles created from snapshot [396].

comment:12 Changed 3 years ago by cavedon

Logs:

(debug) 21:46:22 [File] virtual bool FileReader::open(): loading /home/cavedon/.qutecom/profiles/xxxxxxx@voip.eutelia.it/userprofile.xml
(debug) 21:46:22 [File] virtual bool FileReader::open(): loading /usr/share/qutecom//config//imaccountparameters.xml
(debug) 21:46:22 [File] virtual bool FileReader::open(): loading /home/cavedon/.qutecom/profiles/xxxxxxx@voip.eutelia.it/imaccounts.xml
(debug) 21:46:22 [File] virtual bool FileReader::open(): loading /home/cavedon/.qutecom/profiles/xxxxxxx@voip.eutelia.it/contactlist.xml
[...]
(debug) 21:46:22 [File] virtual bool FileReader::open(): loading /home/cavedon/.qutecom/profiles/xxxxxxx@voip.eutelia.it/history.xml
(debug) 21:46:23 [Common] virtual bool History::unserialize(const std::string&): stream error
(error) 21:46:23 [Common] virtual bool UserProfileFileStorage::load(const std::string&): cannot load profile xxxxxxx@voip.eutelia.it from 'profiles'. Trying from 'backups'.
(debug) 21:46:23 [File] virtual bool FileReader::open(): loading /home/cavedon/.qutecom/backups/xxxxxxx@voip.eutelia.it/userprofile.xml
(debug) 21:46:23 [File] virtual bool FileReader::open(): loading /usr/share/qutecom//config//imaccountparameters.xml
(debug) 21:46:23 [File] virtual bool FileReader::open(): loading /home/cavedon/.qutecom/backups/xxxxxxx@voip.eutelia.it/imaccounts.xml
(debug) 21:46:23 [File] virtual bool FileReader::open(): loading /home/cavedon/.qutecom/backups/xxxxxxx@voip.eutelia.it/contactlist.xml
[...]
(debug) 21:46:23 [File] virtual bool FileReader::open(): loading /home/cavedon/.qutecom/backups/xxxxxxx@voip.eutelia.it/history.xml
(debug) 21:46:23 [Common] virtual bool History::unserialize(const std::string&): stream error
(error) 21:46:23 [Common] virtual bool UserProfileFileStorage::load(const std::string&): cannot load profile xxxxxxx@voip.eutelia.it from 'backups'.

comment:13 Changed 3 years ago by cavedon

"_alias" got added to HistoryMemento?, without bumping the serialization version. Attaching patch to fix it.

Changed 3 years ago by cavedon

comment:14 Changed 3 years ago by laurent

commited ! 642

Thanks Ludovico.

comment:15 Changed 3 years ago by laurent

  • Resolution set to fixed
  • Status changed from reopened to closed
Note: See TracTickets for help on using tickets.