Zimbra offers Open Source email server software and shared calendar for Linux and the Mac
Go Back   Zimbra :: Forums > Zimbra Collaboration Suite > Administrators

Welcome to the Zimbra :: Forums!
Welcome, if you would like to post a comment please register. We also encourage you to explore all things Zimbra with our team and members of the community.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 04-23-2010, 06:14 PM
Special Member
 
Posts: 134
Default [SOLVED] Evolution contacts webdav and Zimbra incompatible?

Hello, all. We are having a nightmare of a time trying to find a Linux based front end to Zimbra other than ZWC (client does not want to use it as a front end). Both Kontact and Evolution seem to have either show stopping bugs or incompatibilities.

The big problem with Evolution was contacts. With their new webdav address book support, we thought we'd take another look. Once we got past the malformed DNS query (it asks for mycompany.com@zimbra.mycompany.com instead of simply zimbra.mycompany.com) by making explicit hosts entries, we encountered this error:


libebookbackendgoogle-Message: 'http://user@domain.com%40zimbra01.domain.com/dav/user@domain.com/Contacts/62DF2A0A-1FC19443-53B442AF.vcf' doesn't have mime-type text/x-vcard but 'text/directory; charset=utf-8'

This does not seem to be an Evolution bug but rather an incompatibility with Zimbra. How do we get Zimbra to give the contacts in the requested format?

Here is the documentation from the Evolution webdav contacts site:
* The webdav server has to support ETags and If-Match headers. ETags are only optional in the webdav standard but should be supported by nearly all servers implementations out there. Older apache versions (pre 2.2.8) have buggy If-Match handling, so you might have to enable the workaround for that in the settings.
* The webdav server has to know the x-vcard mimetype. (This is a little strict and is planned to be improved in a future version). You might have to add the following line to /etc/mime.types (on your server):

text/x-vcard vcf

Thanks - John
__________________
www.spiritualoutreach.com
Making Christianity intelligible to secular society

Last edited by uxbod; 05-07-2010 at 02:37 AM.. Reason: sanitized urls
Reply With Quote
  #2 (permalink)  
Old 05-06-2010, 06:48 PM
Special Member
 
Posts: 134
Default

We are getting closer. After looking at the REST documentation, we realized we could use a URI like:
http://zimbra.mycompany.com/dav/user...tacts/?fmt=vcf

This returns individual vcards of mime-type text/vcard. Is there any way to format the returned cards as text/x-vcard? Is there any additional option we can pass to the query? This problem really has us dead in the water. Both Kontact and Evolution and seriously broken when it comes to interoperating with Zimbra. This is the closest we've gotten to a working solution. Thanks - John
__________________
www.spiritualoutreach.com
Making Christianity intelligible to secular society
Reply With Quote
  #3 (permalink)  
Old 05-07-2010, 01:24 PM
Starter Member
 
Posts: 1
Default

I'm in the same boat. I will keep watching in hopes of a solution.
Reply With Quote
  #4 (permalink)  
Old 05-07-2010, 01:36 PM
Special Member
 
Posts: 134
Default

There is a patch available for evolution as the code rejects any vcards of type other than text/x-vcard. The patch is at https://bugzilla.gnome.org/show_bug.cgi?id=566330

However, I am having grief rebuilding the package (doesn't look like anything to do with the patch):

checking for GNOME_PLATFORM... configure: error: Package requirements
(glib-2.0 >= 2.16.1
gtk+-2.0 >= 2.14.0
ORBit-2.0 >= 2.9.8
libbonobo-2.0 >= 2.20.3
gconf-2.0 >= 2.0.0
libglade-2.0 >= 2.0.0
libxml-2.0 >= 2.0.0
libsoup-2.4 >= 2.3.0) were not met:

Package zlib was not found in the pkg-config search path.
Perhaps you should add the directory containing `zlib.pc'
to the PKG_CONFIG_PATH environment variable
Package 'zlib', required by 'GnuTLS', not found

zlib is installed. I did not check all the listed packages but the ones
I checked were installed with the latest versions. Any hints on how to fix this? We're rather desperate to get this going. Thanks - John
__________________
www.spiritualoutreach.com
Making Christianity intelligible to secular society
Reply With Quote
  #5 (permalink)  
Old 05-07-2010, 08:28 PM
Special Member
 
Posts: 134
Default

We're almost there. We needed to use the zlib1g-dev package from Debian testing rather than Debian stable. Once that was installed, it compiled fine.

We needed to use a URI of the form:

http://zimbra.mydomain.com/dav/user@...tacts/?fmt=vcf

However, although we see the contacts now and can use them in our emails including auto-complete, we cannot save new contacts. Evolution returns an unhelpful "other error" message. The debug from the evolution-data-server says:

libebookbackendgoogle-WARNING **: create resource 'http://user@mydomain.com@zimbra.mydomain.com/dav/user@mydomain.com/Contacts/?fmt=vcf/298DA791-26023D54-54B99BB3.vcf' failed with http status: 406

Any reason why we are getting this code and how to enable write access?

Thanks - John
__________________
www.spiritualoutreach.com
Making Christianity intelligible to secular society
Reply With Quote
  #6 (permalink)  
Old 05-08-2010, 11:09 AM
Special Member
 
Posts: 134
Default

This write access problem has been picked up in thread:
WebDAV Contacts - Gnome Evolution
__________________
www.spiritualoutreach.com
Making Christianity intelligible to secular society
Reply With Quote
  #7 (permalink)  
Old 05-09-2010, 07:17 AM
Moderator
 
Posts: 7,928
Default

Closing this for the more complete thread.
__________________
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads

Why Join?

Registering let's you ask questions, makes it easier to search, displays any files attached to posts, and notifies you about replies.

blog.zimbra.com




 

SEO by vBSEO ©2011, Crawlability, Inc.