<?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>407965</bug_id>
          
          <creation_ts>2019-05-26 20:03:06 +0000</creation_ts>
          <short_desc>Applying two changes in a row in the event editor fails with &quot;Only resources can modify remote identifiers&quot;</short_desc>
          <delta_ts>2020-04-11 07:45:34 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>2</classification_id>
          <classification>Applications</classification>
          <product>korganizer</product>
          <component>incidence editors</component>
          <version>5.7.3</version>
          <rep_platform>Kubuntu</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="Rickard Westman">rwestman</reporter>
          <assigned_to name="David Faure">faure</assigned_to>
          <cc>faure</cc>
    
    <cc>sander</cc>
          
          <cf_commitlink>https://commits.kde.org/incidenceeditor/7ba473fef78978aee6cdda0cdcead3fa65d3c62b</cf_commitlink>
          <cf_versionfixedin></cf_versionfixedin>
          <cf_sentryurl></cf_sentryurl>
          <votes>0</votes>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1858908</commentid>
    <comment_count>0</comment_count>
    <who name="Rickard Westman">rwestman</who>
    <bug_when>2019-05-26 20:03:06 +0000</bug_when>
    <thetext>SUMMARY

The event editor UI allows you to apply a change immediately by pressing &quot;Apply&quot;.  But if you make more than one change without closing the editor in-between, the second one fails with an error dialog.  You then have to cancel out of the dialog to exit it. This happens whether you try to apply the second change using the &quot;Apply&quot; button or the &quot;OK&quot; button.

STEPS TO REPRODUCE
1. Press &quot;New Event...&quot; button and edit the Title field to say &quot;Test&quot;
2. Press &quot;Apply&quot;
3. Edit the Title field to say &quot;Foo&quot;.
4. Press &quot;Apply&quot;.

OBSERVED RESULT

An error dialog appears after the last step.  The title is &quot;Sorry - KOrganizer&quot; and the message text is: 

&quot;Error while trying to modify calendar item. Error was: Only resources can modify remote identifiers&quot;

When you click OK, you get a warning dialog saying &quot;Unable to store the incidence in the calendar.  Try again?&quot;.  If you try again, the first error dialog will show again.  It is possible to work around the bug by exiting the event editor, selecting the event created in step 2 for modification, and then redoing steps 3 to 4.


EXPECTED RESULT

I expected to be able to make many edits to an event, pressing &quot;Apply&quot; after each one, without getting the errors dialogs described.

SOFTWARE/OS VERSIONS

Linux distribution: Kubuntu 18.04
KDE Plasma Version: 5.12.7
KDE Frameworks Version: 5.44.0
Qt Version: 5.95
Kernel Version: 4.18.0-20-generic

ADDITIONAL INFORMATION

Maybe related to bug #307383, marked as fixed in 2012?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1858909</commentid>
    <comment_count>1</comment_count>
    <who name="Rickard Westman">rwestman</who>
    <bug_when>2019-05-26 20:10:08 +0000</bug_when>
    <thetext>&gt; You then have to cancel out of the dialog to exit it. 

That came out wrong - I meant that you have to cancel out of the editor since pressing &quot;OK&quot; (re-)triggers the problem.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1920007</commentid>
    <comment_count>2</comment_count>
    <who name="David Faure">faure</who>
    <bug_when>2020-04-04 07:34:12 +0000</bug_when>
    <thetext>*** Bug 408898 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1920079</commentid>
    <comment_count>3</comment_count>
    <who name="David Faure">faure</who>
    <bug_when>2020-04-04 12:37:17 +0000</bug_when>
    <thetext>I think I fixed this in https://phabricator.kde.org/D16917 which landed in akonadi commit fbcd065c0dbb, part of tag v18.11.90, i.e. the Applications 18.12 release.

(This report comes from KOrganizer 5.7.3 which Applications/17.12.3.)

I&apos;m just not 100% sure it&apos;s fully fixed though, because I had that error message on 03-Jan-2020. But today I can&apos;t reproduce it, no matter what I try (with or without the resource running, etc). Puzzling...</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1920091</commentid>
    <comment_count>4</comment_count>
    <who name="David Faure">faure</who>
    <bug_when>2020-04-04 13:41:35 +0000</bug_when>
    <thetext>Nowadays, if I could find a way to reproduce this error, I would try
itemFetchScope().setFetchRemoteIdentification(false);
like I did in FatCRM.

Hmm maybe one solution is to revert the D16917 patch to trigger the error more easily...</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1920092</commentid>
    <comment_count>5</comment_count>
      <attachid>127267</attachid>
    <who name="David Faure">faure</who>
    <bug_when>2020-04-04 13:41:56 +0000</bug_when>
    <thetext>Created attachment 127267
untested incidenceeditor fetchscope patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1921554</commentid>
    <comment_count>6</comment_count>
    <who name="David Faure">faure</who>
    <bug_when>2020-04-11 07:45:34 +0000</bug_when>
    <thetext>Git commit 7ba473fef78978aee6cdda0cdcead3fa65d3c62b by David Faure.
Committed on 11/04/2020 at 07:45.
Pushed by dfaure into branch &apos;release/20.04&apos;.

Fix &quot;Only resources can modify remote identifiers&quot; when re-editing event

Summary:
... before the resource had time to create it and notify korganizer
about it.

This seems to be a better fix than akonadi commit fbcd065c0dbb,
which for some reason isn&apos;t enough (I had the error again in January
2020).

Test Plan:
Create event in korganizer, double-click it immediately,
change something, click OK.

Reviewers: dvratil

Reviewed By: dvratil

Differential Revision: https://phabricator.kde.org/D28559

M  +1    -0    src/editoritemmanager.cpp

https://commits.kde.org/incidenceeditor/7ba473fef78978aee6cdda0cdcead3fa65d3c62b</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>127267</attachid>
            <date>2020-04-04 13:41:56 +0000</date>
            <delta_ts>2020-04-04 13:41:56 +0000</delta_ts>
            <desc>untested incidenceeditor fetchscope patch</desc>
            <filename>incidenceeditor.diff</filename>
            <type>text/plain</type>
            <size>592</size>
            <attacher name="David Faure">faure</attacher>
            
              <data encoding="base64">ZGlmZiAtLWdpdCBpL3NyYy9lZGl0b3JpdGVtbWFuYWdlci5jcHAgdy9zcmMvZWRpdG9yaXRlbW1h
bmFnZXIuY3BwCmluZGV4IDdiYmY0MTMuLjhhMDY3MWMgMTAwNjQ0Ci0tLSBpL3NyYy9lZGl0b3Jp
dGVtbWFuYWdlci5jcHAKKysrIHcvc3JjL2VkaXRvcml0ZW1tYW5hZ2VyLmNwcApAQCAtODIsNiAr
ODIsNyBAQCBJdGVtRWRpdG9yUHJpdmF0ZTo6SXRlbUVkaXRvclByaXZhdGUoQWtvbmFkaTo6SW5j
aWRlbmNlQ2hhbmdlciAqY2hhbmdlciwgRWRpdG9ySQogICAgIG1GZXRjaFNjb3BlLnNldEFuY2Vz
dG9yUmV0cmlldmFsKEFrb25hZGk6Okl0ZW1GZXRjaFNjb3BlOjpQYXJlbnQpOwogICAgIG1GZXRj
aFNjb3BlLnNldEZldGNoVGFncyh0cnVlKTsKICAgICBtRmV0Y2hTY29wZS50YWdGZXRjaFNjb3Bl
KCkuc2V0RmV0Y2hJZE9ubHkoZmFsc2UpOworICAgIG1GZXRjaFNjb3BlLnNldEZldGNoUmVtb3Rl
SWRlbnRpZmljYXRpb24oZmFsc2UpOwogCiAgICAgbUNoYW5nZXIKICAgICAgICAgPSBjaGFuZ2Vy
ID8gY2hhbmdlciA6IG5ldyBBa29uYWRpOjpJbmNpZGVuY2VDaGFuZ2VyKG5ldyBJbmRpdmlkdWFs
TWFpbENvbXBvbmVudEZhY3RvcnkoCg==
</data>

          </attachment>
      

    </bug>

</bugzilla>