https://bugs.kde.org/show_bug.cgi?id=370627

            Bug ID: 370627
           Summary: akonadi_kalarm_dir_resource watch triggered by temp
                    files
           Product: kalarm
           Version: 2.11.4-5ak
          Platform: Other
                OS: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: NOR
         Component: Akonadi
          Assignee: djar...@kde.org
          Reporter: abon...@mail.ru

Every time when I modify alarm from Kalarm UI, my xsession-errors gets filled
with messages like:

load error
log_kalarmdirresource: Error loading
"~/.local/share/kalarm/active/KAlarm-1949465381.810.XL3912"
log_kalarmdirresource: Invalid mime type for collection

I've found that KAlarm or Akonadi creates temporary files in kalarm agent
directory during the edit. This temporary files trigger kdirwatch which calls
KAlarmDirResource::fileChanged in kalarmdirresource.cpp. Error message occurs
because temp file gets removed before akonadi_kalarm_dir_resource reads it.

Reproducible: Always

Steps to Reproduce:
1. Configure KAlarm calendar backed by kalarm dir resource
2. Add/modify Alarm with KAlarm UI in configured calendar



Expected Results:  
Akonadi should not index temporary files, they should be created in some other
directory or should be filtered in isFileValid function.

Kubuntu 16.04 (amd64) with kubuntu ppa enabled

kalarm                      4:15.12.3-0ubuntu1
kdepim-runtime              4:15.12.3-0ubuntu1
libkf5calendarcore5:amd64   4:15.12.3-0ubuntu1

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to