Bug 246758 - DAVgroupwareResource not selectable/manageable
Summary: DAVgroupwareResource not selectable/manageable
Status: RESOLVED NOT A BUG
Alias: None
Product: Akonadi
Classification: Frameworks and Libraries
Component: DAV Resource (show other bugs)
Version: unspecified
Platform: Ubuntu Linux
: NOR normal
Target Milestone: ---
Assignee: Grégory Oestreicher
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-08-05 03:16 UTC by Ingo Ratsdorf
Modified: 2010-10-12 23:39 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
System Settings steps (153.69 KB, image/jpeg)
2010-08-05 03:16 UTC, Ingo Ratsdorf
Details
Screenshot of installed Calendars in Kontact (16.20 KB, image/jpeg)
2010-08-05 03:17 UTC, Ingo Ratsdorf
Details
Create new event - initial calendar selection (12.75 KB, image/jpeg)
2010-08-05 03:18 UTC, Ingo Ratsdorf
Details
Create new event - Akonadi calendar selection (13.65 KB, image/jpeg)
2010-08-05 03:19 UTC, Ingo Ratsdorf
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Ingo Ratsdorf 2010-08-05 03:16:44 UTC
Created attachment 49815 [details]
System Settings steps

Version:           unspecified (using KDE 4.4.95) 
OS:                Linux

/[KDE]/trunk/KDE/kdepim/runtime/resources/dav
I complied that resource and installed it and it works fine with my calendars (2 installed) so far apart from one mayor problem:

When I create an event in Korganizer/Kontact, the program will show a selection dialog for the calendar the event will be saved under. It shows a selection of either some traditional KDE resource that is installed or the Akonadi Calendar. When I select Akonadi Calendar, the program then display an EMPT selection box.
Hence, I cannot create any new evnts in Korganizer/Kontact.

When I go to "System Settings", "Personal Information" (used to be resources under the old KDE 4.4), the akonadi calendar is listed there.
When I select it and click "edit", the opened dialog  lists only Akonadi Birthdays, but not my two CalDAV resources.
Yet, when I click on "Manage Calendar Sources", VOILA, my two calendars are listed in there.

So why do they not show up in the dialog before, because that's where I would like to set one of them as default for VTODO's and VEVENT's.
And why can't I select any of them in Korganizer/Kontact for new events?



Reproducible: Always

Steps to Reproduce:
Add new DAV calendar under "Manage Calendar sources"

Actual Results:  
Calendar will list in Korganizer but is not selectable for any event modification or creation.
Calendar won't show up in Akonadi Sources.

Expected Results:  
Calendar to be selectable for any event modification or creation in Korganizer/Kontact
Calendar to show up in Akonadi Sources and be selectable to be default for events and todo's.
Comment 1 Ingo Ratsdorf 2010-08-05 03:17:40 UTC
Created attachment 49816 [details]
Screenshot of installed Calendars in Kontact
Comment 2 Ingo Ratsdorf 2010-08-05 03:18:47 UTC
Created attachment 49817 [details]
Create new event - initial calendar selection
Comment 3 Ingo Ratsdorf 2010-08-05 03:19:34 UTC
Created attachment 49818 [details]
Create new event - Akonadi calendar selection
Comment 4 Grégory Oestreicher 2010-09-16 17:43:50 UTC
Hi Ingo,

(In reply to comment #0)
> Version:           unspecified (using KDE 4.4.95) 

Can you confirm that this bug can be reproduced with the latest KDE release and, preferably, with a beta release of the pim suite if you can (available here: ftp://ftp.kde.org/pub/kde/unstable/kdepim/4.4.93).

Cheers,
Grégory
Comment 5 Ingo Ratsdorf 2010-09-20 12:14:10 UTC
When newly adding the agent, it shows up in Kontact/Korganizer under "akonadi calendar" and as a separate "akonadi calendar".
It will then display everything twice so I deleted the standalone akonadi calendar. Now display is fine.
But apart from that - exactly the same behaviour, empty selection box for akonadi calendar once akonadi calendar was selected to store event in.
Still agent does not show up in "Resource Configuration - Kontact".

Platform Version 4.5.1 (KDE 4.5.1)
Kontact Version 4.4.5
KOrganizer Version 4.4.5

I noticed that the DAV groupware agent has been updated some days ago, but I cannot compile sources as some components were moved to KCalCore. I do not have KCalKore header files. They are not in the KDE distro packages (yet).


Last author: goestreicher
Last committed:18/09/10 20:32
Last revision:1176648
Content last changed:20/09/10 22:10
Comment 6 Grégory Oestreicher 2010-09-20 15:19:45 UTC
Hi Ingo,

Those commits are linked to another bug, and it's unlikely that they solve this issue.

I'll install the same versions as you in a test setup as, using trunk, I don't see this behavior.

Cheers,
Grégory
Comment 7 Ingo Ratsdorf 2010-09-20 21:17:25 UTC
Hi Grégory,

As you can see from the version information, I upgraded KDE since the first post, but the same behaviour still persists. If have this behaviour on 2/2 machines, both with individually compiled groupdavagents, but both on a Kubuntu 10.04. One is a laptop, one is an Oracle VirtualBox.

Unfortunately the internet is not old enough to send you the virtualbox image..... ;-)

How can I assist further?

Cheers,
Ingo
Comment 8 Grégory Oestreicher 2010-09-21 07:28:59 UTC
Hi Ingo,

This reminds me of a problem that happened when Korganizer was not fully Akonadi capable in trunk, and as must be the case with releases 4.4.x. To confirm, can you test with the Akonadi "Ical calendar file" resource and see if you can select it?

Cheers,
Grégory
Comment 9 Ingo Ratsdorf 2010-09-22 00:22:24 UTC
Hi Grégory,

I added a akonadi iCalendar (local) file agent to Korganizer and I can confirm that it shows up in "Resource Configuration - Kontact" and is also selectable when I create a new event. Shows up as the only akonadi resource to create events in, despite of still having the groupdav agent installed.
So it seems that Korganizer is aware of akonadi agents in general, just not the DAVgroupwareResource agent.
Comment 10 Grégory Oestreicher 2010-09-22 07:32:39 UTC
Hi Ingo,

Thanks, I can see where the problem is I think. Korg 4.4.x is only able to see the top-level collections returned by a resource, but the DAV one put all calendars under a folder that is not, from Korg point of view, a calendar. The calendars do exist (if you look into akonadiconsole), but Korg cannot show them correctly.

I can make a patch for the 4.4.x series to remove this top-level container, though there may be some other issues. Can you tell me which is the latest revision you could compile? I'll make a patch for this one.

Cheers,
Grégory
Comment 11 Ingo Ratsdorf 2010-09-23 06:30:24 UTC
Hi Grégory,

that sounds like a good explenation. Problem is that I have updated my groupdav agent already to the latest version which does not compile because of the missing header files.
On machine 1, I tried to revert back to a previous version, but that would not compile either because of missing cmake module kcfg_generate_dbus_interface. No idea why this is missing all of a sudden...
On machine 2, I noticed just now that also CMakeLists.txt in the resource directory is now gone but XMakeLists.txt in the base directory still is empty apart from a reference to include CMakeLists.txt in the resource directory, which was deleted by cgiboudeaux in revision 1163520 on 14/08/2010.
How the h***** is that to compile?
But maybe I am just too stupid for SVN...
Comment 12 Grégory Oestreicher 2010-09-23 10:44:07 UTC
Hi Ingo,

The XMakeLists.txt is strange indeed, but I think you misundertood the commit 1163520: it was just here to remove the part used to detect xsltproc, which in turn would make the macro kcfg_generate_dbus_interface. If you re-add the part removed by this commit it should work on machine 1. On machine 2, you really should remove the code and do a fresh checkout.

Cheers,
Grégory
Comment 13 Ingo Ratsdorf 2010-09-23 13:00:32 UTC
I revered back to 01/08/2010, before the kcalcore changes were incorporated, had to make some minor tweaks to the CMakeLists.txt file and it compiled without errors or warnings, but did not link. Instead pages of undefined references...
I am really losing it.
Are the dev packages not synchronised with the libs? They are all 4:4.5.1-0ubuntu1~lucid1~ppa1

Sorry, I am giving up.
I'll wait for the latest libs and devs so the whole thing will hopefully compile again.

Cheers,
Ingo