Skip to content

fix(caldav): explicitly check from component types - #48131

Merged
SebastianKrupinski merged 1 commit into
masterfrom
fix/filter-for-components-explicitly
Aug 4, 2026
Merged

fix(caldav): explicitly check from component types#48131
SebastianKrupinski merged 1 commit into
masterfrom
fix/filter-for-components-explicitly

Conversation

@miaulalala

@miaulalala miaulalala commented Sep 17, 2024

Copy link
Copy Markdown
Contributor
  • Resolves: #

Summary

Ignore everything but the specific component types that are defined as valid in the RFC. We should only denormalize data that is actually valid, and skip any invalid data structures. Otherwise we run into the danger of returning trash data.

TODO

  • ...

Checklist

@miaulalala
miaulalala requested review from a team, Altahrim, skjnldsv, st3iny, tcitworld and yemkareems and removed request for a team, ChristophWurst and tcitworld September 17, 2024 11:02
@miaulalala miaulalala self-assigned this Sep 17, 2024
@miaulalala miaulalala added 3. to review Waiting for reviews bug feature: caldav Related to CalDAV internals labels Sep 17, 2024
@miaulalala

Copy link
Copy Markdown
Contributor Author

/backport to stable30

@miaulalala

Copy link
Copy Markdown
Contributor Author

/backport to stable29

@miaulalala

Copy link
Copy Markdown
Contributor Author

/backport to stable28

Comment thread apps/dav/lib/CalDAV/CalDavBackend.php Outdated
@miaulalala
miaulalala force-pushed the fix/filter-for-components-explicitly branch from b90e8f0 to a65cf51 Compare September 17, 2024 14:44
@nickvergessen

Copy link
Copy Markdown
Member

Could you make the PR description a bit more verbose?
Any issue that is fixed with this? Or example data set that now behaves different?

@miaulalala
miaulalala requested a review from kesselb November 25, 2024 11:20
@AndyScherzinger

Copy link
Copy Markdown
Member

/backport to stable31

@AndyScherzinger
AndyScherzinger force-pushed the fix/filter-for-components-explicitly branch from a65cf51 to cd306b8 Compare January 26, 2025 12:24
Comment thread apps/dav/lib/CalDAV/CalDavBackend.php Outdated
This was referenced Jun 5, 2026
@susnux susnux removed this from the Nextcloud 34.0.1 milestone Jun 9, 2026
@SebastianKrupinski
SebastianKrupinski force-pushed the fix/filter-for-components-explicitly branch from 64377b7 to 649c10a Compare July 30, 2026 12:07
Comment thread apps/dav/lib/CalDAV/CalDavBackend.php Outdated
@SebastianKrupinski
SebastianKrupinski force-pushed the fix/filter-for-components-explicitly branch 3 times, most recently from e39c982 to 5372443 Compare July 31, 2026 11:51

@kesselb kesselb left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some tests would be nice ;)

The exceptions should be documented.

getDenormalizedData might be good fit to move into a own helper / service.

@SebastianKrupinski
SebastianKrupinski force-pushed the fix/filter-for-components-explicitly branch 3 times, most recently from 390d867 to f4323a8 Compare August 4, 2026 12:59
@SebastianKrupinski
SebastianKrupinski requested a review from a team as a code owner August 4, 2026 12:59
@SebastianKrupinski
SebastianKrupinski requested review from come-nc, nfebe, provokateurin and sorbaugh and removed request for a team August 4, 2026 12:59
Signed-off-by: SebastianKrupinski <krupinskis05@gmail.com>
@SebastianKrupinski
SebastianKrupinski force-pushed the fix/filter-for-components-explicitly branch from f4323a8 to 5b1bd2e Compare August 4, 2026 13:09
@SebastianKrupinski

Copy link
Copy Markdown
Contributor

Some tests would be nice ;)

The exceptions should be documented.

getDenormalizedData might be good fit to move into a own helper / service.

I added a few test cases for the other component types

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3. to review Waiting for reviews bug feature: caldav Related to CalDAV internals

Projects

Status: ☑️ Done

Development

Successfully merging this pull request may close these issues.