Bug 625796

Summary: kaddressbook will not allow the use of groups
Product: [openSUSE] openSUSE 11.3 Reporter: Prexy Prexy <lacoff>
Component: KDE4 ApplicationsAssignee: Will Stephenson <wstephenson>
Status: RESOLVED WONTFIX QA Contact: E-mail List <qa-bugs>
Severity: Normal    
Priority: P5 - None    
Version: Final   
Target Milestone: ---   
Hardware: 32bit   
OS: openSUSE 11.3   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Prexy Prexy 2010-07-27 04:40:54 UTC
User-Agent:       Mozilla/5.0 (X11; U; Linux i686; en-US) AppleWebKit/533.4 (KHTML, like Gecko) Chrome/5.0.375.99 Safari/533.4

The option to add a new group or add a contact to a group is grayed out if I have an addressbook selected.  I have default and akonadi available.  The first time I open kaddressbook after a reboot, there is no addressbook selected and the "new group" option is available. It disappears when an addressbook is selected.

I searched the kde forums and there seemed to be a fix by adding the kde backport repo (at least for kubuntu and fedora.)  I added the opensuse 11.3 UpdateApplication repo but it contained no kaddressbook files and the problem continues.  I am using kde 4.4.4

Reproducible: Always

Steps to Reproduce:
1.open kaddressbook
2.select any available address book
3.new group option grays out
Actual Results:  
no groups available

Expected Results:  
Allowed me to add a group, such as "family" or "work"
Comment 1 Will Stephenson 2010-08-15 17:58:26 UTC
Is the addressbook you select marked read-only in its properties?  I cannot reproduce this with 11.3 default or  the KDE:Distro:Stable packages I am preparing for an online update with.
Comment 2 Prexy Prexy 2010-08-16 01:04:24 UTC
(In reply to comment #1)
> Is the addressbook you select marked read-only in its properties?  I cannot
> reproduce this with 11.3 default or  the KDE:Distro:Stable packages I am
> preparing for an online update with.
I am presuming you mean /home/Prexy/.local/share/contacts.  When opening kaddressbook, this is called akonadi.  I also have default for an addressbook but it is not selected.  Checking on /home/Prexy/.local/share/contacts, the "Read only" box is not checked.  Using dolphin and selecting the contacts folder, only the owner (me) was allowed write access.  I changed this to allow everyone write access and apply to all subfolders and files.

Opening kaddressbook, Groups (or add new group) is available until I select an addressbook.  Then the group option immediately grays out.  This is the same as before.  Am I checking the right place for permissions?
Comment 3 Will Stephenson 2010-08-18 14:29:09 UTC
I meant in the Address Book Properties dialog you see when you right click an address book.  Can you check that?

I assumed that your file system is owned by and read-write for your KDE user.

I was able to reproduce this with a vcard file resource however, which seems to have forgotten the path to the vcard file.  Investigating further.
Comment 4 Prexy Prexy 2010-08-18 14:44:32 UTC
(In reply to comment #3)
> I meant in the Address Book Properties dialog you see when you right click an
> address book.  Can you check that?
> 
> I assumed that your file system is owned by and read-write for your KDE user.
> 
> I was able to reproduce this with a vcard file resource however, which seems to
> have forgotten the path to the vcard file.  Investigating further.

Right-clicking on either addressbook brings up a dialog box that I see when I click on the address book properties "wrench" in upper right of kaddressbook window.  Checking both addressbooks, Read-only box is NOT checked.  I see no other place to check or change permissions in this dialog box.  Both addressbook folders contain vcf files. Was there another way to import the old address entries?
Comment 5 Will Stephenson 2010-11-15 19:24:11 UTC
Any change here?  Have you tried KDE:Release:45 from the buildservice?
Comment 6 Prexy Prexy 2010-11-15 19:53:56 UTC
There has been no change. I am up to 4.5.3 (KDE 4.5.3) "release 8" and kernel 2.6.34.7-0.5-default i686.  Is there any other info I can supply which might be of help?
Comment 7 Will Stephenson 2010-11-15 20:39:41 UTC
If you create an entirely new user, can you create and populate groups?
Comment 8 Prexy Prexy 2010-11-16 06:17:28 UTC
(In reply to comment #7)
> If you create an entirely new user, can you create and populate groups?

I tried 2 things.  First, cause it was easier, I tried to use kaddressbook as root.  That failed because of akonadi problems.

I then created a user and opened kaddressbook.  That preselected the "Personal Contacts" type of address book.  It allowed me to enter contacts and create a new group "Family" and add some contacts to that group. I did not think to try to import my big contacts file, which is vcard.  I tried this in vbox running 11.4 M3 with the same result.

Also, I could not figure out how to add more contacts to my existing group.  I created a new group and added 2 contacts.  But I could see anyway to add more once the group had been created.
Comment 9 Will Stephenson 2010-11-16 07:01:18 UTC
Good morning.

Akonadi uses MySQL internally which prohibits running as root.

To add more contacts to a group, right click the group name and select 'Edit Group...' then you can start to enter a contact's name on the first empty row.

I'm on #opensuse-kde on Freenode IRC, if you want some high-bandwidth time figuring out why it doesn't work on the 11.3 normal user.
Comment 10 Prexy Prexy 2010-11-16 16:46:15 UTC
I added a new addressbook to my user of the type "Personal Contacts."  That allows me add new groups. I did not have to "populate" this new addressbook with entries to create a group and add members.  The members of the new group were drawn from the akonadi addressbook.  My "Personal Contacts" addressbook has only one member and that is the group I created.  Selecting the akonadi addressbook or the so-called "default" addressbook no longer grays out the "new group" option.  However, when the dialog box opens to create a new group, the only option is to create it the Personal Contacts addressbook and not akonadi or default.  Is this expected behavior and I have been doing it wrong all this time?  I can use this behavior as a work around but it requires that I change addressbook selection each time I want to look up a group.

Thanks for the invitation to IRC but I think it has been 20 years since I last used IRC and I don't remember how!
Comment 11 Will Stephenson 2015-09-11 10:18:21 UTC
Mass closing extant bug reports for old openSUSE versions.