This repository was archived by the owner on Jun 9, 2025. It is now read-only.
Query recur instance without dtstart #195
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Part of bitfireAT/davx5-ose#1336
Currently
JtxCollection.queryRecurcan't query instances of recurring VTODOs (got RECURRENCE-ID property) which don't include a DTSTART. This is a valid scenario though and so it should be supported by ical4android.VEVENTs, in contrast to VTODOs, do require DTSTART to be present when there is a RECURRENCE-ID, but they should still be able to be uniquely identified with UID and RECURRENCE-ID alone. I am writing should, because in theory it could happen that two calendars contain events which both have the same UID and since
queryRecurdoes query across all collections, it could happen that we get two VTODOs / VEVENTs back when expecting one only. It seems highly unlikely though.While using DTSTART as a third query param makes this scenario more unlikely it could still happen and worse: it introduces said problem.
This PR:
queryRecurmethod to not include DTSTARTqueryRecurlog message to include the correct method nameFurther information
In RFC 5545, Section 3.6.2 – To-Do Component:
From RFC 5545, Section 3.8.4.7 (UID):
And:
In RFC 5546, Section 3.6.1: