Contact IDs from Google backend confuses evo-couchdb

Bug #423746 reported by Rodrigo Moya
18
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Ubuntu One Servers
Fix Released
Medium
Nicola Larosa
couchdb-glib
Fix Released
Medium
Rodrigo Moya
couchdb-glib (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Google contacts backend in Evolution uses IDs like the following:

http://<email address hidden>/base/11

for each contact, so when copy/pasting contacts from the Google addressbook to the CouchDB one, we issue PUT requests like:

http://127.0.0.1:38995/contacts/http://www.google.com/m8/feeds/contacts/ken%40vandine.org/base/3ebc78380f6657f4

which results in documents like:

{"_id":"http:","_rev":"1-7212b529a3acb1fde48bcc05cc4f9985","_attachments":{"<email address hidden>/base/11":{"stub":true,"content_type":"application/json","length":699,"revpos":1}}}

that is, it uses http: as the ID for all contacts coming from Google, and thinks the rest of the URL is an attachment.

Related branches

Changed in evolution-couchdb:
assignee: nobody → Rodrigo Moya (rodrigo-moya)
importance: Undecided → Medium
tags: added: ubuntuone-karmic
Revision history for this message
Rodrigo Moya (rodrigo-moya) wrote :

Ken, please test the linked branch, and if it works for you with the google contacts, please approve it

Changed in evolution-couchdb:
status: New → In Progress
Changed in evolution-couchdb:
status: In Progress → Fix Committed
tags: added: contacts desktop+
Changed in ubuntuone-servers:
status: New → Fix Committed
Revision history for this message
Martin Pitt (pitti) wrote :

Seems fixed in couchdb-glib 0.5.0.

affects: evolution-couchdb → couchdb-glib
Changed in couchdb-glib:
status: Fix Committed → Fix Released
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package couchdb-glib - 0.5.0-0ubuntu1

---------------
couchdb-glib (0.5.0-0ubuntu1) karmic; urgency=low

  [ Rodrigo Moya ]
  * New upstream release: (LP: #426879)
    - Added changes notifications. (LP: #420435)
    - Added some API info to the README file.
    - Encode document UIDs when doing HTTP requests. (LP: #423746)
    - Added OAuth support. (LP: #423094)
  * Added libssl-dev build dependency.

  [ Martin Pitt ]
  * Import into bzr, set Vcs-Bzr: field in debian/control.
  * Add debian/libcouchdb-glib-1.0-1.symbols for proper shlibs generation.
  * debian/control: Wrap build depends.
  * debian/control: Bump Standards-Version to 3.8.3 (no changes needed).

 -- Martin Pitt <email address hidden> Thu, 10 Sep 2009 18:43:19 +0200

Changed in couchdb-glib (Ubuntu):
status: New → Fix Released
Changed in ubuntuone-servers:
status: Fix Committed → Fix Released
Revision history for this message
Piotr P. Karwasz (chopinhauer) wrote :

This bug still applies to the web interface of Ubuntu One. Every time I try to open a contact whose id contains a '/', the web interfaces gets totally confused and answers with a 404 Error.

Contacts whose ids does not contain a '/' can be consulted normally.

Revision history for this message
Rodrigo Moya (rodrigo-moya) wrote :

Nicola, I guess the web UI needs to escape the UIDs?

Changed in ubuntuone-servers:
assignee: nobody → Nicola Larosa (teknico.net)
status: Fix Released → Triaged
Revision history for this message
Nicola Larosa (teknico) wrote :

Yes, I'm working on escaping contacts contact IDs before they end up in URLs.

Nicola Larosa (teknico)
Changed in ubuntuone-servers:
status: Triaged → In Progress
Nicola Larosa (teknico)
Changed in ubuntuone-servers:
importance: Undecided → Medium
Nicola Larosa (teknico)
Changed in ubuntuone-servers:
status: In Progress → Fix Committed
Changed in ubuntuone-servers:
status: Fix Committed → Fix Released
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.