Repository navigation
Conversation
A repeating AVAILABLE block that started before the query time was skipped, even when it ran into the query. That time showed as busy instead of free. Assisted-by: ClaudeCode:claude-opus-5-5
5 of 8 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
Thunderbird asks a Nextcloud server for free/busy times from 08:00.
The attendee is available every weekday from 07:00 to 16:00 (a repeating AVAILABLE block). The answer shows the whole day as busy.
When asked from 07:00 or earlier, the answer is right.
The code skipped every repeating AVAILABLE block that started before the query time, even when the block ran into it.
Now it only skips blocks that end before the query time. A block that starts earlier is cut to fit, the same way it is already cut at the end.
Tests
testVAvailabilityRecurrenceStartsBeforeReport: the bug above.testVAvailabilityRecurrenceStartsBeforeVAvailability: same, when theVAVAILABILITY itself starts in the middle of a block.
testVAvailabilityRecurrenceEndsBeforeVAvailability: a block that ends before the VAVAILABILITY starts must not count. This one also passes without the fix; it guards the new check.Backport
Nextcloud uses sabre/vobject 4.5.x, see nextcloud/server#61191. Could this go to 4.5 too? The patch applies cleanly to 4.5 and 4.6 and I can open the backport PRs.