<?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>425460</bug_id>
          
          <creation_ts>2020-08-17 14:08:14 +0000</creation_ts>
          <short_desc>ical Calendar resource cannot be created</short_desc>
          <delta_ts>2023-09-28 12:39:44 +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>ICal file resource</component>
          <version>5.15.2</version>
          <rep_platform>unspecified</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>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Philipp Schmidt">kde-bugs</reporter>
          <assigned_to name="kdepim bugs">pim-bugs-null</assigned_to>
          <cc>auxsvr</cc>
    
    <cc>erweitern_yard0t</cc>
    
    <cc>flinux</cc>
    
    <cc>frapell</cc>
    
    <cc>info</cc>
    
    <cc>kde</cc>
    
    <cc>m4rkusxxl</cc>
    
    <cc>sgh</cc>
          
          <cf_commitlink>https://invent.kde.org/pim/kdepim-runtime/commit/f0ad4f921341baa50faee2bd4ec53ffcab7e048b</cf_commitlink>
          <cf_versionfixedin>23.04.1</cf_versionfixedin>
          <cf_sentryurl></cf_sentryurl>
          <votes>40</votes>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1951263</commentid>
    <comment_count>0</comment_count>
      <attachid>130934</attachid>
    <who name="Philipp Schmidt">kde-bugs</who>
    <bug_when>2020-08-17 14:08:14 +0000</bug_when>
    <thetext>Created attachment 130934
ics with single event on aug. 17, 14:00 UTC+2

SUMMARY
ical Calendar resource cannot be created from various sources, including file:/ and https:/.

STEPS TO REPRODUCE
1. create minimal ical file and save it to disk (e.g. the attached testevent.ics)
2. Use Akonadi Console or KOrganizer to add a ical resource
3. select the prepared ics file and save

OBSERVED RESULT
Resource is created but events do not show up (details below)

EXPECTED RESULT
Events should show

SOFTWARE/OS VERSIONS
KDE Applications: 20.08
KDE Plasma Version: 5.19.4
KDE Frameworks Version: 5.73.0
Qt Version: 5.15

ADDITIONAL INFORMATION
Apparently the file (or url in case of https) can&apos;t be loaded (&apos;No file selected&apos;). Output from terminal after activating ical debugging and issuing &quot;akonadictl restart&quot;:

org.kde.pim.akonadiserver: New notification connection (registered as Akonadi::Server::NotificationSubscriber(0x7f7f98087750) )
org.kde.pim.akonadiserver: Subscriber Akonadi::Server::NotificationSubscriber(0x7f7f98087750) identified as &quot;AgentBaseChangeRecorder - 94152844984432&quot;
&quot;No file selected.&quot;
kf.kio.widgets.kdirmodel: protocol mismatch: &quot;&quot; vs &quot;file&quot;
qt.qpa.xcb: QXcbConnection: XCB error: 3 (BadWindow), sequence: 2602, resource id: 14883497, major code: 40 (TranslateCoords), minor code: 0
&quot;No file selected.&quot;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1951267</commentid>
    <comment_count>1</comment_count>
    <who name="Philipp Schmidt">kde-bugs</who>
    <bug_when>2020-08-17 14:13:07 +0000</bug_when>
    <thetext>I also just verified this with the current Neon User Edition in a VM. Same behaviour as under my main system.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1961634</commentid>
    <comment_count>2</comment_count>
    <who name="Markus">m4rkusxxl</who>
    <bug_when>2020-09-30 15:44:30 +0000</bug_when>
    <thetext>When I check a new ics calendar in &quot;Akonadi Console&quot;:
In &quot;Agents&quot;:
Under &quot;Configure-&gt;Configure Remotely...&quot;, the config does not match with what was configured in the add-dialog. (e.g. DisplayName and Path is empty.)
Also checking in the &quot;DB Browser&quot; ind &quot;collectiontable&quot;:
The resource does not have a remoteId and the name is still the &quot;akonadi_ical_resource_#&quot;.

Is it the same for you, too?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1961672</commentid>
    <comment_count>3</comment_count>
    <who name="Philipp Schmidt">kde-bugs</who>
    <bug_when>2020-09-30 17:56:51 +0000</bug_when>
    <thetext>(In reply to Markus from comment #2)

Yes, it&apos;s as you said, doesn&apos;t match.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1963643</commentid>
    <comment_count>4</comment_count>
    <who name="Markus">m4rkusxxl</who>
    <bug_when>2020-10-10 13:44:12 +0000</bug_when>
    <thetext>ICalConfig seems to correctly save the data, but ICalResource does not load it.
Adding &quot;mSettings-&gt;load();&quot; to SingleFileResource::readFile seems to work. (Although I doubt its a clean solution.)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1969356</commentid>
    <comment_count>5</comment_count>
    <who name="MAG4">retecomputer</who>
    <bug_when>2020-10-28 10:35:52 +0000</bug_when>
    <thetext>We can confirm it for 5.15.2 in Debian Testing.
As a workaround we found that in Akonadi Console - Agents you have to synchronize your iCal resource until in Akonadi Console - Browser the collection is duplicated. The duplicate now shows your items and saves your changes ...</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1978437</commentid>
    <comment_count>6</comment_count>
      <attachid>133604</attachid>
    <who name="Markus">m4rkusxxl</who>
    <bug_when>2020-11-24 11:16:27 +0000</bug_when>
    <thetext>Created attachment 133604
kdepim-runtime patch

Missed to add the patch mentioned in comment#4.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1996006</commentid>
    <comment_count>7</comment_count>
    <who name="">flinux</who>
    <bug_when>2021-01-18 21:20:19 +0000</bug_when>
    <thetext>(In reply to Markus from comment #6)
&gt; Created attachment 133604 [details]
&gt; kdepim-runtime patch
&gt; 
&gt; Missed to add the patch mentioned in comment#4.

Would it possible to work with the devs upstream? maybe it&apos;s the solution for it :)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1998464</commentid>
    <comment_count>8</comment_count>
    <who name="Søren Holm">sgh</who>
    <bug_when>2021-01-28 08:21:11 +0000</bug_when>
    <thetext>Additionally the resource name is not correct either.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2224593</commentid>
    <comment_count>9</comment_count>
    <who name="Daniel Vrátil">dvratil</who>
    <bug_when>2023-04-22 10:39:45 +0000</bug_when>
    <thetext>Git commit f0ad4f921341baa50faee2bd4ec53ffcab7e048b by Daniel Vrátil.
Committed on 22/04/2023 at 10:39.
Pushed by dvratil into branch &apos;release/23.04&apos;.

Fix single-file-resources not reloading configuration at runtime
FIXED-IN: 23.04.1

M  +5    -0    resources/shared/singlefileresource/singlefileresource.h

https://invent.kde.org/pim/kdepim-runtime/commit/f0ad4f921341baa50faee2bd4ec53ffcab7e048b</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2227341</commentid>
    <comment_count>10</comment_count>
    <who name="Carl Schwan">carl</who>
    <bug_when>2023-05-02 11:10:43 +0000</bug_when>
    <thetext>*** Bug 358249 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2227343</commentid>
    <comment_count>11</comment_count>
    <who name="Carl Schwan">carl</who>
    <bug_when>2023-05-02 11:11:22 +0000</bug_when>
    <thetext>*** Bug 355521 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>130934</attachid>
            <date>2020-08-17 14:08:14 +0000</date>
            <delta_ts>2020-08-17 14:08:14 +0000</delta_ts>
            <desc>ics with single event on aug. 17, 14:00 UTC+2</desc>
            <filename>testevent.ics</filename>
            <type>text/calendar</type>
            <size>509</size>
            <attacher name="Philipp Schmidt">kde-bugs</attacher>
            
              <data encoding="base64">QkVHSU46VkNBTEVOREFSClBST0RJRDotLy9LIERlc2t0b3AgRW52aXJvbm1lbnQvL05PTlNHTUwg
bGlia2NhbCA0LjMvL0VOClZFUlNJT046Mi4wClgtS0RFLUlDQUwtSU1QTEVNRU5UQVRJT04tVkVS
U0lPTjoxLjAKTUVUSE9EOlJFUVVFU1QKQkVHSU46VkVWRU5UCk9SR0FOSVpFUjtDTj1QaGlsaXBw
IFNjaG1pZHQ6TUFJTFRPOnBoaWxpcHBAc2NobWlkdC1yaGVpbmhhdXNlbi5kZQpEVFNUQU1QOjIw
MjAwODE3VDEyMDIzNFoKQ1JFQVRFRDoyMDIwMDgxN1QxMjAxNDRaClVJRDphNDBmZjIwOC04YWFk
LTRkZGQtOGMwOS0xMzcyOWQ2MzNjOWUKTEFTVC1NT0RJRklFRDoyMDIwMDgxN1QxMjAyMTVaCkRF
U0NSSVBUSU9OOmxpdHRsZSBkZXNjcmlwdGlvbgpTVU1NQVJZOnRlc3QKTE9DQVRJT046c29tZSBs
b2NhdGlvbgpEVFNUQVJUO1RaSUQ9VVRDOjIwMjAwODE3VDEyMDAwMApEVEVORDtUWklEPVVUQzoy
MDIwMDgxN1QxMzAwMDAKVFJBTlNQOk9QQVFVRQpFTkQ6VkVWRU5UCkVORDpWQ0FMRU5EQVI=
</data>

          </attachment>
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>133604</attachid>
            <date>2020-11-24 11:16:27 +0000</date>
            <delta_ts>2020-11-24 11:16:27 +0000</delta_ts>
            <desc>kdepim-runtime patch</desc>
            <filename>load.patch</filename>
            <type>text/plain</type>
            <size>683</size>
            <attacher name="Markus">m4rkusxxl</attacher>
            
              <data encoding="base64">ZGlmZiAtTnVyIGtkZXBpbS1ydW50aW1lLTIwLjA4LjEub3JpZy9yZXNvdXJjZXMvc2hhcmVkL3Np
bmdsZWZpbGVyZXNvdXJjZS9zaW5nbGVmaWxlcmVzb3VyY2UuaCBrZGVwaW0tcnVudGltZS0yMC4w
OC4xL3Jlc291cmNlcy9zaGFyZWQvc2luZ2xlZmlsZXJlc291cmNlL3NpbmdsZWZpbGVyZXNvdXJj
ZS5oCi0tLSBrZGVwaW0tcnVudGltZS0yMC4wOC4xLm9yaWcvcmVzb3VyY2VzL3NoYXJlZC9zaW5n
bGVmaWxlcmVzb3VyY2Uvc2luZ2xlZmlsZXJlc291cmNlLmgJMjAyMC0xMC0wOCAxOTowMzozNS4w
MDAwMDAwMDAgKzAyMDAKKysrIGtkZXBpbS1ydW50aW1lLTIwLjA4LjEvcmVzb3VyY2VzL3NoYXJl
ZC9zaW5nbGVmaWxlcmVzb3VyY2Uvc2luZ2xlZmlsZXJlc291cmNlLmgJMjAyMC0xMC0xMCAxNDo0
NTo0NC4wMDAwMDAwMDAgKzAyMDAKQEAgLTY0LDYgKzY1LDcgQEAKICAgICAgKi8KICAgICB2b2lk
IHJlYWRGaWxlKGJvb2wgdGFza0NvbnRleHQgPSBmYWxzZSkgb3ZlcnJpZGUKICAgICB7CisJCW1T
ZXR0aW5ncy0+bG9hZCgpOwogICAgICAgICBpZiAoS0RpcldhdGNoOjpzZWxmKCktPmNvbnRhaW5z
KG1DdXJyZW50VXJsLnRvTG9jYWxGaWxlKCkpKSB7CiAgICAgICAgICAgICBLRGlyV2F0Y2g6OnNl
bGYoKS0+cmVtb3ZlRmlsZShtQ3VycmVudFVybC50b0xvY2FsRmlsZSgpKTsKICAgICAgICAgfQo=
</data>

          </attachment>
      

    </bug>

</bugzilla>