Bug 165235 - doesnt exports contact to a mobile (Gnokii is not yet configured)
Summary: doesnt exports contact to a mobile (Gnokii is not yet configured)
Status: RESOLVED UNMAINTAINED
Alias: None
Product: kab3
Classification: Miscellaneous
Component: general (show other bugs)
Version: unspecified
Platform: unspecified Linux
: NOR normal
Target Milestone: ---
Assignee: Tobias Koenig
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-06-28 21:40 UTC by Ladislav Nesnera
Modified: 2009-08-05 16:36 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
Gnokii configuration check patch (465 bytes, patch)
2008-11-29 14:58 UTC, Alexander Danilov
Details
Gnokii configuration check patch 2 (412 bytes, patch)
2009-03-09 13:46 UTC, Markus Lohse
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Ladislav Nesnera 2008-06-28 21:40:12 UTC
Version:            (using Devel)
OS:                Linux

Export to mobile first shows this prompt:
Please connect your Mobile Phone to your computer and press Continue to start exporting the selected personal contacts.
Please note that if your Mobile Phone is not properly connected the following detection phase might take up to two minutes, during which KAddressbook will behave unresponsively.
and after that error message "Gnokii is not yet configured"
Konsole contains:
LOG: debug mask is 0x1                                                                                                 
Config read from file /home/nesnera/.gnokiirc.

The XGnokii works with my phone correctly.

********
Qt: 4.4.0
KDE: 4.00.84 (KDE 4.0.84 (KDE 4.1 >= 20080625) "release 1.1"
KAddressBook: 3.5

gnokii --verion
GNOKII Version 0.6.24

connection type - bluetooth
Nokia 6230
Comment 1 Ladislav Nesnera 2008-08-04 15:02:32 UTC
I have the same problem still :-(
Konsole (when I'm trying to do export):
Opened configuration file /home/nesnera/.gnokiirc
Opened configuration file from memory
Added new section global
Adding key/value port//dev/ttyS0
Adding key/value port/00:12:62:0d:bb:ff
Adding key/value model/6230
Adding key/value initlength/default
Adding key/value connection/serial
Adding key/value connection/bluetooth
Adding key/value use_locking/yes
Adding key/value serial_baudrate/19200
Adding key/value smsc_timeout/10
Added new section xgnokii
Adding key/value allow_breakage/0
Added new section gnokiid
Adding key/value bindir//usr/sbin/
Added new section connect_script
Adding key/value TELEPHONE/12345678
Added new section disconnect_script
Added new section logging
Adding key/value debug/on
Adding key/value rlpdebug/off
Adding key/value xdebug/off
LOG: debug mask is 0x1
Config read from file /home/nesnera/.gnokiirc.

Qt: 4.4.0
KDE: 4.1.1 (KDE 4.1.0 (4.1 >= 20080722)) "release 19.3"
KAddressBook: 4.1
openSUSE 11, 64-bit
Comment 2 Christian Nitschkowski 2008-08-10 15:08:08 UTC
It doesn't work to import contacts either
Comment 3 Vesselin Dimitrov 2008-10-18 18:42:25 UTC
*** This bug has been confirmed by popular vote. ***
Comment 4 Alexander Danilov 2008-11-29 14:58:02 UTC
Created attachment 28924 [details]
Gnokii configuration check patch

It looks like a wrong condition in if-statement that checks if Gnokii is configured.
This patch fixes the problem for me.
Qt: 4.4.2
KDE: 4.1.80 (KDE 4.1.80 (KDE 4.2 Beta1))
KAddressBook: 4.1
GNOKII Version 0.6.26
Comment 5 Marcel Dischinger 2009-02-05 16:48:04 UTC
There was actually an API change in 0.6.15:
"gn_cfg_phone_load() now returns GN_ERR_NONE on success, instead of true"
(from the official ChangeLog).
So kaddressbook should check against this value.
Comment 6 Markus Lohse 2009-03-09 13:46:28 UTC
Created attachment 31947 [details]
Gnokii configuration check patch 2

Checking for a valid gnokii-configuration seems to be of little use as gnokii comes with a sample/default configuration-file placed in /etc/gnokiirc. So this test will always succeed even when the user did not create a custom configuration.

However thanks to Alexander and Marcel I created a patch checking for GN_ERR_NONE.
I run the following tests on my box:
- gnokkii configured via ~/.gnokiirc : import/export works as expected :)
- no ~/.gnokiirc : fallback to /etc/gnokiirc giving an error after quite some time, asking the user to run "gnokii --identify", good enough
- no ~/.gnokiirc nor /etc/gnokiirc : unlikely situation but gives the desired "please configure gnokii" message

We could add a check for the gnokii-api version at compile-time but since the new api had been released almost 2 years ago, I felt this isn't necessary.

Qt:  4.5
Kde: 4.2.1
kaddressbook: 4.2.1
gnokii: 0.6.27
Comment 7 Tobias Koenig 2009-08-05 16:36:40 UTC
The development of the old KAddressBook will be discontinued for KDE 4.4.
Since the new application has the same name, but a completly new code base we close all bug reports against the old version and ask the submitters to resend there reports against the new product.