Skip to content

[Bug]: Calendar::search misses events when using limit and time range #53002

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
kesselb opened this issue May 20, 2025 · 0 comments
Open

[Bug]: Calendar::search misses events when using limit and time range #53002

kesselb opened this issue May 20, 2025 · 0 comments
Labels
1. to develop Accepted and waiting to be taken care of 27-feedback bug feature: caldav Related to CalDAV internals

Comments

@kesselb
Copy link
Contributor

kesselb commented May 20, 2025

Bug description

The Talk team reached out because they were missing events in our search responses. The issue is also reproducible with the calendar widget.

The query to find events is ordered by the id column. Without an ORDER BY clause, the same query may return different results depending on how the SQL server works. To ensure more reproducible results, an ORDER BY clause was added some time ago.

Steps to reproduce

  1. Create event "1" tomorrow at 12:00
  2. Create event "2" tomorrow at 12:30
  3. Create event "3" tomorrow at 13:00
  4. Create event "4" tomorrow at 13:30
  5. Create event "5" tomorrow at 14:00
  6. Create event "6" tomorrow at 14:30
  7. Create event "7" tomorrow at 15:00
  8. Create event "8" tomorrow at 11:00

Expected Order:
8-1-2-3-4-5-6-7

Actual Order:
1-2-3-4-5-6-7-8

Additional info

  • Affected versions: 27 upwards.
  • We encountered issues with the sorting of events in CalDAV fix search with limit and time range #45222.
  • Removing the ORDER BY "id" clause does not resolve the problem because the order is then still up to the SQL server and only by chance in the correct order.
  • Using firstoccurrence to order works, but we should add an index on it.

Possible bug reports

@kesselb kesselb added bug 0. Needs triage Pending check for reproducibility or if it fits our roadmap labels May 20, 2025
@kesselb kesselb moved this to 🧭 Planning evaluation in 💌 📅 👥 Groupware team May 20, 2025
@kesselb kesselb added feature: caldav Related to CalDAV internals 1. to develop Accepted and waiting to be taken care of and removed 0. Needs triage Pending check for reproducibility or if it fits our roadmap labels May 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
1. to develop Accepted and waiting to be taken care of 27-feedback bug feature: caldav Related to CalDAV internals
Projects
Status: 🧭 Planning evaluation
Development

No branches or pull requests

2 participants