Skip to content
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

caldav: [server] better match time ranges in filter #179

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

barkyq
Copy link

@barkyq barkyq commented Jan 12, 2025

REPORT with event filter containing only start and no end (created by Davx5 for android) was not returning recurring events; this fixes the issue.

@barkyq barkyq changed the title better match time ranges in filter caldav: [server] better match time ranges in filter Jan 12, 2025
also fix matching of non-recurring events to properly conform to RFC

return true if and only if:

filter [start,end) intersects event [start, end)

handle properly case if start.IsZero() and/or end.IsZero()

special handling for events with duration zero

following table in:

https://datatracker.ietf.org/doc/html/rfc4791#section-9.9
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant