Bug description
When passing a pattern to the search in conjunction with a time range, the pattern is matched first via oc_calendarobjects_props.
In case of an event with recurrence exceptions, it will also match on the recurrence exceptions.
The search then returns the recurrences that fit within the time range specified, even if the pattern does not match for the expanded recurrence(s) and are only a match for the recurrence exception.
Steps to reproduce
- Create a recurring event with an attendee
alice
- Create a recurrence exception for this event, adding a new attendee
bob for this recurrence exception only
- Search with a pattern of
bob, a search property of ATTENDEE and limit your search to a time frame that does not include the recurrence exception with bob
- See that a recurrence is returned, even though
bob is not a match on the ATTENDEE property.
Expected behavior
No search results are returned as there are no events where bob is an attendee in the specified time range.
Nextcloud Server version
master
Bug description
When passing a pattern to the search in conjunction with a time range, the pattern is matched first via
oc_calendarobjects_props.In case of an event with recurrence exceptions, it will also match on the recurrence exceptions.
The search then returns the recurrences that fit within the time range specified, even if the pattern does not match for the expanded recurrence(s) and are only a match for the recurrence exception.
Steps to reproduce
alicebobfor this recurrence exception onlybob, a search property ofATTENDEEand limit your search to a time frame that does not include the recurrence exception withbobbobis not a match on theATTENDEEproperty.Expected behavior
No search results are returned as there are no events where
bobis an attendee in the specified time range.Nextcloud Server version
master