error handling blank field -> unable to edit contacts

Bug #776574 reported by Lorenzo Zolfanelli
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
evolution-couchdb
New
Undecided
Unassigned
Ubuntu
New
Undecided
Unassigned

Bug Description

I use the CouchDB for the UbuntOne service offered by Canonical on Ubuntu 11.04 (Natty)

I am unable to edit any of my contacts, I get this message from Evolution as I try to save:

"GDBus.Error:org.gtk.GDBus.UnmappedGError.Quark._e_2ddata_2dbook_2derror.Code400: Cannot modify contact: Bad Request"

My output on console for e-addressbook-factory is:

"(e-addressbook-factory:16374): Couchdb-GLib-CRITICAL **: couchdb_document_contact_set_company: assertion `company != NULL' failed

(e-addressbook-factory:16374): Couchdb-GLib-CRITICAL **: couchdb_document_contact_set_department: assertion `department != NULL' failed

(e-addressbook-factory:16374): Couchdb-GLib-CRITICAL **: couchdb_document_contact_set_office: assertion `office != NULL' failed

(e-addressbook-factory:16374): Couchdb-GLib-CRITICAL **: couchdb_document_contact_set_categories: assertion `categories != NULL' failed

(e-addressbook-factory:16374): Json-CRITICAL **: json_node_get_node_type: assertion `node != NULL' failed

** (e-addressbook-factory:16374): WARNING **: Could not PUT document: \u0005
"

I am not always able to reproduce this bug..sometimes everything just works.
I found that when I can't save a contact a workaround is to put some random stuff in one or more of that field (categories, office, company..)

versions:
Ubuntu 11.04 Natty stable (64bit edition)
evolution 2.32.2-0ubuntu7
evolution-couchdb 0.5.3-0ubuntu2
couchdb-bin 1.0.1-0ubuntu15
libcouchdb-glib-1.0-2 0.7.2-0ubuntu3

Changed in evolution-couchdb:
status: New → Invalid
status: Invalid → New
Revision history for this message
Lorenzo Zolfanelli (lorenzo-zolfa) wrote :

I think that in
e-book-backend-couchdb.c
lines 760-770 have to be edited with some "if( x != NULL)" conditions, but I am not sure, I don't know much about this backend and couchdb
(http://bazaar.launchpad.net/~vcs-imports/evolution-couchdb/trunk/view/head:/addressbook/e-book-backend-couchdb.c)

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.