kmail imap resources fail to work in KDE 3.4.0

Bug #14309 reported by Pauli Virtanen
10
Affects Status Importance Assigned to Milestone
kdepim (Ubuntu)
Fix Released
Medium
Jonathan Riddell

Bug Description

Kontact has an useful option which lets one store the calendar and
addressbook on an IMAP server. However, this does not seem to
be functional in kontact_4:3.4.0-0ubuntu3: kmail creates the
resource folders ok, but:

-- Actual results:

1. Trying to add an "Addressbook on IMAP server via KMail" does not
   add anything to the list of addressbooks.

2. Adding an "Calendar on IMAP server via KMail" appears to succeed,
   such a calendar appears on the list of available calendars. However,
   it does not show the existing events. Moreover, if I try to add a new
   event, the calendar complains: "No writable resource was found, saving
   will not be possible. Reconfigure KMail first."

-- Expected results:

To be able to create and use address books stored in the IMAP resource
folders.

-- Steps to reproduce:

1. Activate the resource folder functionality in KMail:
   Settings -> Configure KMail -> Misc -> Groupware
   -> Enable IMAP resource functionality, and choose some
   folder to use, with format "Standard (Ical / VCal)" and in
   "English".

2. Choose "Contacts" and try to add a new "Addressbook on IMAP
   server via KMail". No addressbook appears as a result.

3. Choose "Calendar" and try to add a new "Calendar on IMAP server
   via KMail". A new calendar appears, but it is unusable:
   Make only that calendar active, and try to create a new event.
   An error should occur here.

-- More information:

This feature was functional on KDE RC1, which I built myself
using Konstruct. In Kubuntu's KDE 3.4.0 packages it does not seem
to work, however.

If you need more information, please feel free to ask.

-- System Information:

Ubuntu Release: Hoary
Architecture: i386 (k7)
Locale: LANG=fi_FI.UTF-8, LC_CTYPE=fi_FI.UTF-8 (charmap=UTF-8)

Versions of packages kontact depends on:
ii kdelibs4 4:3.4.0-0ubuntu2 KDE core libraries
ii libart-2.0-2 2.3.17-1 Library of functions for 2D graphi
ii libaudio2 1.7-2ubuntu1 The Network Audio System (NAS). (s
ii libc6 2.3.2.ds1-20ubuntu11 GNU C Library: Shared libraries an
ii libfontconfig1 2.2.3-4ubuntu7 generic font configuration library
ii libfreetype6 2.1.7-2.3 FreeType 2 font engine, shared lib
ii libgamin0 0.0.25-0ubuntu1 Client library for the gamin file
ii libgcc1 1:4.0-0pre6ubuntu6 GCC support library
ii libgpg-error0 1.0-1 library for common error values an
ii libgpgme11 1.0.1-2 GPGME - GnuPG Made Easy
ii libice6 6.8.2-5.1 Inter-Client Exchange library
ii libidn11 0.5.2-3 GNU libidn library, implementation
ii libjpeg62 6b-9 The Independent JPEG Group's JPEG
ii libkcal2a 4:3.4.0-0ubuntu3 KDE calendaring library
ii libkdepim1 4:3.4.0-0ubuntu3 KDE PIM library
ii libkleopatra0a 4:3.4.0-0ubuntu3 KDE GnuPG interface libraries
ii libkpimidentities1 4:3.4.0-0ubuntu3 KDE PIM user identity information
ii libktnef1 4:3.4.0-0ubuntu3 Library for handling KTNEF email a
ii libpcre3 4.5-1.1 Perl 5 Compatible Regular Expressi
ii libpng12-0 1.2.8rel-1 PNG library - runtime
ii libqt3c102-mt 3:3.3.3-7ubuntu2 Qt GUI Library (Threaded runtime v
ii libsm6 6.8.2-5.1 X Window System Session Management
ii libstdc++5 1:3.3.5-8ubuntu2 The GNU Standard C++ Library v3
ii libx11-6 6.8.2-5.1 X Window System protocol client li
ii libxcursor1 1.1.3-1 X cursor management library
ii libxext6 6.8.2-5.1 X Window System miscellaneous exte
ii libxft2 2.1.2-6ubuntu1 FreeType-based font drawing librar
ii libxinerama1 6.8.2-5.1 X Window System multi-head display
ii libxrandr2 6.8.2-5.1 X Window System Resize, Rotate and
ii libxrender1 0.9.0-0ubuntu4 X Rendering Extension client libra
ii libxt6 6.8.2-5.1 X Toolkit Intrinsics
ii xlibs 6.8.2-5.1 X Window System client libraries m
ii zlib1g 1:1.2.2-4ubuntu1 compression library - runtime
ii kmail 3.4.0-0ubuntu3 KDE Email client

Revision history for this message
Andreas Mueller (amu) wrote :

created the backport fixes from cvs. Testing right now a local build.

Revision history for this message
Pauli Virtanen (pauli-virtanen) wrote :

More information:

I built kdepim using the current 3.4.0 stable Konstruct, and noticed it
applies the patch fix-imap-resource-type-RELEASE.diff to kdepim-3.4.0 sources.
Using these binaries built using Konstruct, imap resources work ok in Kontact.

Strangely, imap resources are broken in 4:3.4.0-0ubuntu5, although the
above patch is included in the -0ubuntu5 diff. So, apparently, something
else in the ubuntu diff (inherited from upstream?) seems to break
the imap resources again.

Revision history for this message
Tom Fernandes (tom-fernandes) wrote :

It looks like these things are meant to work with kolab. We are unable to
reproduce this as we don't have a kolab server here.
If you are aware of any public kolab server and a pointer to some documentation
how to install a kolab client we can try reproducing it.

Revision history for this message
Pauli Virtanen (pauli-virtanen) wrote :

The Imap resources do not necessarily need Kolab, but function just on
any ordinary Imap server. This has at least been the case up to and
including KDE 3.4.0 (and I do not see a reason why upstream would
have broken this intentionally since).

As to your question about setting up Kolab, I'm sorry but also I am
unfamiliar with Kolab and have not used it.

Revision history for this message
Jose Gómez-Dans (jgomezdans-gmail) wrote :

> 1. Trying to add an "Addressbook on IMAP server via KMail" does not
> add anything to the list of addressbooks.
>
> 2. Adding an "Calendar on IMAP server via KMail" appears to succeed,
> such a calendar appears on the list of available calendars. However,
> it does not show the existing events. Moreover, if I try to add a new
> event, the calendar complains: "No writable resource was found, saving
> will not be possible. Reconfigure KMail first."

Both work fine here, with 3.4.0ubuntu10. Resources are updated on the server (IMAP, no kolab
available) and checked with other clients. Only options to worry about were to select the IMAP
groupware facility in the KMail configuration, and to select the IMAP resources in KControl.

Can you try with the newer version of Kontact and see whether this bug still applies?

Revision history for this message
Pauli Virtanen (pauli-virtanen) wrote :

For me this does still not work, with 4:3.4.0-0ubuntu10, and the problems appear as
before. To confirm this, I first removed kdelibs4, libarts1 and their dependencies,
reinstalled current kubuntu-desktop, started KDE as a new guest user, and finally
configured the mail settings. Hence I believe the problem is not in my
configuration.
The Konstruct builds should also not interefere with Ubuntu's packages, as they
are installed into a location not in PATH or library search path.

Something curious seems also to be going on with the KDE resources:
 - Initially, in Kontact, the resource entries are duplicated, see
   http://users.tkk.fi/~ptvirtan/tmp/kontact-calendar.png for illustration.
   Removing the additional entries, however does not improve the situation.
 - The resource entries are not duplicated in "KDE Resources" in KControl.
 - While I cannot add Addressbook resources in Kontact (as before), I still
   can add them in KControl. They do not seem to function, however.

I'm not sure whether this helps, as the problem could not be reproduced.

Revision history for this message
Andreas Mueller (amu) wrote :

could you start kontact from a konsole and watch the output, while you add a new event.

Revision history for this message
Jens Heidbuechel (j-heidbuechel) wrote :

Hi, I'm also facing this problem and miss my calendar and addressbook. The Output of konsole, when starting
kontact from there is:

kontact: WARNING: KDCOPServiceStarter: No service implementing DCOP/ResourceBackend/IMAP
kresources: ERROR: Couldn't connect to the IMAP resource backend

when trying to add an imap resource for kaddressbook. As Pauli told, adding an imapresource to korganizer
works. Trying to add a new event creates kdialog window which tells you that you don't have write access to
the resource and konsole says

kresources: ERROR: Couldn't connect to the IMAP resource backend
kontact: WARNING: LockNull::lock() force success. Doesn't actually lock.
kresources: WARNING: No writable resource found!

Revision history for this message
Pauli Virtanen (pauli-virtanen) wrote :

Confirmed, I get the same error messages as Jens. (Sorry about the delay,
I was on a trip over a week.) However, kontact also prints lines like

kdecore (KLibLoader): WARNING: KLibrary: /usr/lib/libkdecore.so.4: undefined
symbol: PKCS7_content_free
kdecore (KLibLoader): WARNING: KLibrary: /usr/lib/libkdecore.so.4: undefined
symbol: OpenSSL_add_all_algorithms
kdecore (KLibLoader): WARNING: KLibrary: /usr/lib/libkdecore.so.4: undefined
symbol: OpenSSL_add_all_algorithms_conf
kdecore (KLibLoader): WARNING: KLibrary: /usr/lib/libkdecore.so.4: undefined
symbol: OpenSSL_add_all_algorithms_noconf
kio (KIOConnection): ERROR: Header read failed, errno=104
kio (KIOConnection): ERROR: Header has invalid size (-1)
kio (KLauncher): ERROR: SlavePool: No communication with slave.

I am not sure whether these are related to my problems.

Revision history for this message
Slaanesh (slaanesh-no-log) wrote :

(In reply to comment #8)
> Hi, I'm also facing this problem and miss my calendar and addressbook. The
Output of konsole, when starting
> kontact from there is:
>
> kontact: WARNING: KDCOPServiceStarter: No service implementing
DCOP/ResourceBackend/IMAP
> kresources: ERROR: Couldn't connect to the IMAP resource backend
>
> when trying to add an imap resource for kaddressbook. As Pauli told, adding an
imapresource to korganizer
> works. Trying to add a new event creates kdialog window which tells you that
you don't have write access to
> the resource and konsole says
>
> kresources: ERROR: Couldn't connect to the IMAP resource backend
> kontact: WARNING: LockNull::lock() force success. Doesn't actually lock.
> kresources: WARNING: No writable resource found!
>
Hi,

I am facing the same problem here.
I precise that I do run a kolab server which works just fine with Debian SID kde
3.3 kontact.
I used to run a Debian SID and it worked too.
However, since I have upgraded to Ubuntu (Kubuntu version) I am facing the
problems described above.
If my kolab server could help resolving this bug let me know but I think any
imap server should be enough to work with.

Revision history for this message
Berend De Schouwer (bds) wrote :

I have the same problem: No service implementing DCOP/ResourceBackend/IMAP.

Two Kubuntu 5.04 machines: one a clean install. One an upgrade/crossgrade from Debian/unstable. tcpdump shows no network
connections attempted. Happens in Kontact and Kaddressbook. It used to work in KDE 3.3. I've tried IMAP and disconnected
IMAP.

The server is a Courier IMAP server. Not a Kolab server.

Revision history for this message
Jonathan Riddell (jr) wrote :

This may be because of Hidden=true in a .desktop file.

Revision history for this message
Pauli Virtanen (pauli-virtanen) wrote :

Please elaborate in which file this line could cause problems.
There are indeed "Hidden=true" lines in
/usr/share/services/kresources/{kabc,cal,knotes}/imap.desktop,
but removing them has no effect.

BTW, I tried building a version of kdepim from Ubuntu sources, with all
patches disabled (the CVS backport from the *-ubuntu10.diff
filtered out, and those in debian/patches/ removed), applying
only kdepim-fix-imap-resource-type.diff (from upstream).
This results in kdepim packages, in which IMAP resources do
work. Hence the problem must lie in the Ubuntu or Debian
specific patches.

I have also tried to build the sources with only CVS backport
disabled (filtering out anything not going to debian/ from
the ubuntu10.diff), without disabling the patches in debian/patches/*,
while still adding the kdepim-fix-imap-resource-type.patch. Now, the
IMAP resources were still broken, which is very strange, as the
patches in debian/patches/* do not seem to be doing anything
special. I'll try still to narrow this down.

Revision history for this message
Pauli Virtanen (pauli-virtanen) wrote :

This bug was fixed in Kubuntu's kontact 4:3.4.1-0ubuntu0hoary2, and
the feature also works in 4:3.4.2-0ubuntu0hoary1. Apparently, the bug
will be fixed in Breezy, at the least.

Revision history for this message
Matthew Carpenter (matt-eisgr) wrote :

"This bug was fixed in Kubuntu's kontact 4:3.4.1-0ubuntu0hoary2, and
the feature also works in 4:3.4.2-0ubuntu0hoary1. Apparently, the bug
will be fixed in Breezy, at the least."

So what do the rest of us do?

Also, see 13211
https://bugzilla.ubuntu.com/show_bug.cgi?id=13211

Revision history for this message
Matt Zimmerman (mdz) wrote :

(In reply to comment #15)
> "This bug was fixed in Kubuntu's kontact 4:3.4.1-0ubuntu0hoary2, and
> the feature also works in 4:3.4.2-0ubuntu0hoary1. Apparently, the bug
> will be fixed in Breezy, at the least."
>
> So what do the rest of us do?

The bug is fixed both in the development branch and in backported packages for
the most recent stable release. What more are you asking?

Revision history for this message
Matthew Carpenter (matt-eisgr) wrote :

I'm sorry, perhaps I misunderstood. I believe what you are saying is that the current version is not
fixed. I'm up-to-date and still not able to work correctly. Do I need to grab the package from somewhere
other than the standard archive?

I am relatively new to Ubuntu and Debian-based stuff altogether. I don't quite understand what you mean by
"backport". Does that mean the main package will be working sometime in the future? or does this mean that
I have to completely remove and reinstall because of some broken config item?

Thank you! (In reply to comment #16)
> (In reply to comment #15)
> > "This bug was fixed in Kubuntu's kontact 4:3.4.1-0ubuntu0hoary2, and
> > the feature also works in 4:3.4.2-0ubuntu0hoary1. Apparently, the bug
> > will be fixed in Breezy, at the least."
> >
> > So what do the rest of us do?
>
> The bug is fixed both in the development branch and in backported packages for
> the most recent stable release. What more are you asking?
>

Revision history for this message
Pauli Virtanen (pauli-virtanen) wrote :

I believe "backport" here means these (semi-unofficial?) packages,
ported back from breezy to hoary:

    http://kubuntu.org/hoary-kde-342.php

Upgrading to KDE 3.4.2, by adding the additional repository to
/etc/apt/sources.list, fixed this bug for me. It would still
be nice to see the bug fixed in the official packages, though.

Revision history for this message
Matt Zimmerman (mdz) wrote :

Or, simply wait for Ubuntu 5.10.

If Jonathan has an isolated patch for this bug, then it can possibly be pushed
into the stable release, but failing that, it's fixed in two places already.

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.