https://bugs.kde.org/show_bug.cgi?id=529049
Bug ID: 529049
Summary: Akonadi allows configuring a 1 minute refresh interval
but it enforces a 5 minute minimum
Classification: Frameworks and Libraries
Product: Akonadi
Version First unspecified
Reported In:
Platform: Other
OS: Linux
Status: REPORTED
Severity: normal
Priority: NOR
Component: DAV Resource
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected]
Target Milestone: ---
Created attachment 198617
--> https://bugs.kde.org/attachment.cgi?id=198617&action=edit
Akonadi Console Schedule screenshot
DESCRIPTION
I found a problem with how a DAV Groupware resource allows setting the
automatic refresh interval to 1 minute, but Akonadi still enforces a minimum 5
minutes regardless.
I noticed this while synchronizing tasks from a Vikunja CalDAV server. It works
in other software like Betterbird.
STEPS TO REPRODUCE
1. Configure a CalDAV account using the Akonadi DAV Groupware resource.
2. Set the automatic refresh interval to 1 minute.
3. Open Akonadi Console and enable tracking in the Resource Schedulers tab.
4. Optional: Modify a task on the CalDAV server using another client.
5. Observe the automatic synchronization intervals.
OBSERVED RESULT
Automatic synchronization occurs every 5 minutes instead of the configured 1
minute.
I measured two consecutive automatic synchronization events in Akonadi Console.
They had the following timestamps:
- 10:46:47.090
- 10:51:47.148
The difference is 5 minutes and 58 milliseconds.
Manual synchronization through Akonadi Console works correctly. Another CalDAV
client (Betterbird) also retrieves and shows changes at its configured 1 minute
interval.
EXPECTED RESULT
The configured refresh interval should be honored, or the UI should indicate
and enforce the minimum supported interval.
SOFTWARE/OS VERSIONS
Operating System: CachyOS Linux
KDE Plasma Version: 6.8.3
KDE Frameworks Version: 6.32.0
Qt Version: 6.12.0
Akonadi Version: 26.08.3
kdepim-runtime Version: 26.08.3
ADDITIONAL INFORMATION
I found the following in `src/server/intervalcheck.cpp`:
`static const int MINIMUM_AUTOSYNC_INTERVAL = 5; // minutes`
The actual interval is calculated using the qMax() method with this set as
minimum.
Source: https://github.com/KDE/akonadi/blob/master/src/server/intervalcheck.cpp
If the 5 minute minimum is intentional, I think the configuration UI should
prevent selecting shorter intervals.
If it's not, would it make sense to allow shorter polling intervals while
keeping 5 minutes as the default? (This would be my preferred way since
WebDAV-Push is not yet implemented fully in Akonadi, as well as is the case
with a lot (most?) of CalDAV servers.)
I'd be happy to contribe a fix if the intended behavior can be clarified.
--
You are receiving this mail because:
You are watching all bug changes.