Bug 492335

Summary: KAddressbook: Cannot Modify Contacts
Product: [Applications] kaddressbook Reporter: jshand2013
Component: generalAssignee: kdepim bugs <kdepim-bugs>
Status: REPORTED ---    
Severity: normal CC: jshand2013
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: pim log
full system logs
cant update contacts in kaddressbook
most recent error log to date in Nov
modify contact still doesn't work
full debug information

Description jshand2013 2024-08-28 19:19:42 UTC
SUMMARY

It seems that adding a contact works without problems at this time, however, when you go back to modify a contact for eg. if you add a note to the contact and save those changes, it doesn't seem to sysnc with google server.  what it does it, the changes shown, disappear after about 5 seconds


STEPS TO REPRODUCE
1. Select a contact
2. Make changes to that selected contact
3. save changes

OBSERVED RESULT

changes are shown briefly and then they disappear


EXPECTED RESULT

changes are shown and remain in place

Operating System: openSUSE Tumbleweed 20240827
KDE Plasma Version: 6.1.4
KDE Frameworks Version: 6.5.0
Qt Version: 6.7.2
Kernel Version: 6.10.5-1-default (64-bit)
Graphics Platform: Wayland
Processors: 12 × Intel® Core™ 7 150U
Memory: 15.3 GiB of RAM
Graphics Processor: Mesa Intel® Graphics
Manufacturer: Dell Inc.
Product Name: Inspiron 16 5640
Comment 1 jshand2013 2024-08-28 19:25:29 UTC
Created attachment 173055 [details]
pim log
Comment 2 jshand2013 2024-08-28 19:28:25 UTC
Created attachment 173056 [details]
full system logs
Comment 3 jshand2013 2024-10-14 18:36:41 UTC
tried updating notes textbox in kontact under contacts and got this error

kf.texttemplate.customtyperegistry: Don't know how to handle metatype KAddressBookGrantlee::ContactGrantleeWrapper

i will upload the debug info and see if it is related
Comment 4 jshand2013 2024-10-14 18:37:17 UTC
Created attachment 174818 [details]
cant update contacts in kaddressbook
Comment 5 jshand2013 2024-10-14 18:42:37 UTC
original bug report link https://bugzilla.opensuse.org/show_bug.cgi?id=1231600
Comment 6 jshand2013 2024-11-03 05:46:57 UTC
Operating System: openSUSE Tumbleweed 20241031
KDE Plasma Version: 6.2.2
KDE Frameworks Version: 6.7.0
Qt Version: 6.8.0
Kernel Version: 6.11.5-1-default (64-bit)
Graphics Platform: Wayland
Processors: 12 × Intel® Core™ 7 150U
Memory: 15.3 GiB of RAM
Graphics Processor: Mesa Intel® Graphics
Manufacturer: Dell Inc.
Product Name: Inspiron 16 5640

the error message that happens when you select contact from kontact side menu:

kf.coreaddons: plugin metadata in "kaddressbookpart" does not have a valid 'MetaData' object

after i select contact i wish to edit and change anything with the contact i find this error message:

kf.texttemplate.customtyperegistry: Don't know how to handle metatype KAddressBookGrantlee::ContactGrantleeWrapper
Comment 7 jshand2013 2024-11-03 05:49:39 UTC
Created attachment 175480 [details]
most recent error log to date in Nov
Comment 8 jshand2013 2025-04-28 19:11:38 UTC
in current tumbleweed release

Operating System: openSUSE Tumbleweed 20250426
KDE Plasma Version: 6.3.4
KDE Frameworks Version: 6.13.0
Qt Version: 6.9.0
Kernel Version: 6.14.4-1-default (64-bit)
Graphics Platform: Wayland
Processors: 12 × Intel® Core™ 7 150U
Memory: 15.3 GiB of RAM
Graphics Processor: Intel® Graphics
Manufacturer: Dell Inc.
Product Name: Inspiron 16 5640

this still happens/  i have uploaded a txt file with debug info that should help you
Comment 9 jshand2013 2025-04-28 19:12:28 UTC
Created attachment 180742 [details]
modify contact still doesn't work
Comment 10 jshand2013 2025-04-28 19:21:23 UTC
Created attachment 180744 [details]
full debug information

same  issue months later.  this really needs to be resolved
Comment 11 jshand2013 2025-05-10 20:28:02 UTC
🔧 Developer Summary: Unable to Edit Selected Contact in KAddressBook
❖ Context
A user reported that editing a selected contact does not work in the current version of KAddressBook provided in this codebase. The issue may involve either missing or non-functional UI triggers for contact modification.

❖ Findings from Source Analysis
No editContact() Method Found

A recursive scan of the entire /src directory revealed no definition or call to any editContact-like function in either MainWidget, MainWindow, or related files.

There are also no slot bindings (e.g., slotEditContact, editRequested) associated with UI actions.

Likely External or Modular Editor

It's probable that editing is handled via an external or modular component such as ContactEditor or through Akonadi jobs (ItemEditJob, etc.), but this component does not appear in the submitted archive.

Potential Causes for Disabled Editing

Read-only address book backends (e.g., DAV, LDAP) may block editing.

Missing or broken UI triggers for launching the editor.

Akonadi service misconfiguration may prevent edit operations from executing.

❖ Recommended Debugging Steps
Verify Address Book Properties

Ensure the relevant address book is writable and not marked read-only.

Inspect Akonadi Logs

Use akonadictl status and akonadiconsole to confirm if contact items can be modified.

Trace UI Action Handlers

Identify where the contact list selection is handled and whether any QAction or signal/slot is supposed to launch a contact editor.

Confirm Editor Integration

Look for the presence and connection of components like ContactEditorDialog, Akonadi::ItemEditJob, or similar.

❖ Suggested Fix
If editing functionality is indeed missing from this branch or version:

Reintegrate or rebind editing triggers (e.g., via toolbar or context menu).

Ensure ContactEditor or equivalent class is invoked with the selected Akonadi::Item.