Skip to content

Conversation

@ChristophWurst
Copy link
Member

@ChristophWurst ChristophWurst commented Feb 21, 2024

Summary

Adds rate limiting for new calendars and subscriptions.

Checklist

throw new TooManyRequests('Too many calendars created', 0, $e);
}

$calendarLimit = $this->config->getValueInt('dav', 'maximum_calendars', 30);
Copy link
Member Author

Choose a reason for hiding this comment

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

I'm open for input on a reasonable limit for 99% of users. someone will exceed it and they need the admin to increase the limit. this is acceptable.

Copy link
Contributor

@miaulalala miaulalala left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Member

@tcitworld tcitworld left a comment

Choose a reason for hiding this comment

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

Did you test how the Calendar app currently handles the TooManyRequests exception? When creating calendars/subscriptions/holiday calendars/imports

Mind creating an issue to make sure this is tracked?

@ChristophWurst
Copy link
Member Author

Did you test how the Calendar app currently handles the TooManyRequests exception? When creating calendars/subscriptions/holiday calendars/imports

Mind creating an issue to make sure this is tracked?

Sure! nextcloud/calendar#5792

@ChristophWurst ChristophWurst added 4. to release Ready to be released and/or waiting for tests to finish and removed 3. to review Waiting for reviews labels Feb 22, 2024
This was referenced Feb 22, 2024
@ChristophWurst
Copy link
Member Author

/backport! to stable28

@ChristophWurst
Copy link
Member Author

/backport! to stable27

@ChristophWurst
Copy link
Member Author

/backport! to stable26

@ChristophWurst ChristophWurst force-pushed the fix/dav/rate-limit-create-calendar branch from 9bfa1a3 to dc7f2ba Compare February 23, 2024 07:53
@ChristophWurst ChristophWurst merged commit f1c79cd into master Feb 23, 2024
@ChristophWurst ChristophWurst deleted the fix/dav/rate-limit-create-calendar branch February 23, 2024 12:54
@blizzz blizzz mentioned this pull request Mar 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

4. to release Ready to be released and/or waiting for tests to finish bug feature: caldav Related to CalDAV internals feature: dav

Projects

Development

Successfully merging this pull request may close these issues.

5 participants