<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.kde.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugs.kde.org/"
          
          maintainer="sysadmin@kde.org"
>

    <bug>
          <bug_id>325778</bug_id>
          
          <creation_ts>2013-10-08 14:28:52 +0000</creation_ts>
          <short_desc>Separate Google calendar resources required for Calendar and Tasks</short_desc>
          <delta_ts>2013-10-21 14:28:41 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>3</classification_id>
          <classification>Frameworks and Libraries</classification>
          <product>Akonadi</product>
          <component>Google Resource</component>
          <version>4.11</version>
          <rep_platform>Arch Linux</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>NOR</priority>
          <bug_severity>minor</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Achilleas Koutsou">achilleas.k</reporter>
          <assigned_to name="Daniel Vrátil">dvratil</assigned_to>
          <cc>achilleas.k</cc>
    
    <cc>pim-bugs-null</cc>
          
          <cf_commitlink>http://commits.kde.org/kdepim-runtime/77c3d1470098ca2e0ca5db23e4369a03cd206c3d</cf_commitlink>
          <cf_versionfixedin>4.11.3</cf_versionfixedin>
          <cf_sentryurl></cf_sentryurl>
          <votes>0</votes>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1402217</commentid>
    <comment_count>0</comment_count>
    <who name="Achilleas Koutsou">achilleas.k</who>
    <bug_when>2013-10-08 14:28:52 +0000</bug_when>
    <thetext>When adding a Google calendar resource to Akonadi, all calendars and task lists appear in the dialogue and can be selected. However, in Kontact/Korganizer, only the calendars appear until a second Google calendar resource is added for the same account.

This happens with the &quot;Google Calendars and Tasks&quot;, which uses the Google browser sign-in authentication, not the &quot;Akonadi Google Calendar Resource&quot;.


Reproducible: Always

Steps to Reproduce:
1. Add a &quot;Google Calendars and Tasks&quot; resource to Akonadi (note: NOT a &quot;Akonadi Google Calendar Resource&quot;) for an account which has both calendars and task lists.
2. Enable all calendars and task lists in the resource configuration dialogue.
3. Open Kontact or Korganizer and enable the &quot;Calendar Manager&quot; sidebar (Settings -&gt; Sidebar -&gt; Show Calendar Manager).
3. Check whether calendars and task lists are synchronised and whether calendars and lists appear in the &quot;Calendar Manager&quot; list in Kontact/Korganizer.
4. Add the same &quot;Google Calendars and Tasks&quot; resource to Akonadi again.
5. Enable everything, or task lists only (doesn&apos;t seem to matter).
6. Check if the calendars have appeared in the Calendar Manager sidebar.
Actual Results:  
At step 3, only calendars (might) appear in the list. After step 5, task lists should also be visible.

Expected Results:  
Steps 1-3 should be adequate to display every calendar and task list. The Google Calendars and Tasks resource should handle both when it is from the same account.

I have not tested whether the number of calendars+tasklists is relevant to this bug. I have 8 calendars and 2 tasklists and have not tried adding an account that has less (say, 1 calendar and 1 tasklist).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1405030</commentid>
    <comment_count>1</comment_count>
    <who name="Daniel Vrátil">dvratil</who>
    <bug_when>2013-10-21 13:57:44 +0000</bug_when>
    <thetext>Is it possible that by any chance you have to calendars or task lists with the same name?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1405034</commentid>
    <comment_count>2</comment_count>
    <who name="Achilleas Koutsou">achilleas.k</who>
    <bug_when>2013-10-21 14:06:00 +0000</bug_when>
    <thetext>(In reply to comment #1)
&gt; Is it possible that by any chance you have to calendars or task lists with
&gt; the same name?

Oh! Why, yes, I do. And yes, that is exactly the cause of the issue. The thought never crossed my mind.
Thank you!

Marking as RESOLVED - INVALID, unless this is something that should be handled by the resource without causing issues.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1405042</commentid>
    <comment_count>3</comment_count>
    <who name="Daniel Vrátil">dvratil</who>
    <bug_when>2013-10-21 14:28:41 +0000</bug_when>
    <thetext>Git commit 77c3d1470098ca2e0ca5db23e4369a03cd206c3d by Dan Vrátil.
Committed on 21/10/2013 at 14:18.
Pushed by dvratil into branch &apos;KDE/4.11&apos;.

Support case when a Google calendar and tasklist having the same name

...which is not supported by Akonadi.

We use calendar/tasklist UID instead of the title as collection name.
User-facing name is stored in DisplayAttribute, so the UID should
not leak to users anywhere.
FIXED-IN: 4.11.3

M  +4    -15   resources/google/calendar/calendarresource.cpp

http://commits.kde.org/kdepim-runtime/77c3d1470098ca2e0ca5db23e4369a03cd206c3d</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>