Skip to content

Conversation

@LukasReschke
Copy link
Member

Backport of #28728

@LukasReschke
Copy link
Member Author

Message: Call to undefined method OC\Server::get()

🎉

In case no distributed memory cache is specified this adds
a database backend for ratelimit purposes.

Signed-off-by: Lukas Reschke <[email protected]>
Signed-off-by: Lukas Reschke <[email protected]>
@LukasReschke LukasReschke force-pushed the backport/28728/stable19 branch from 17aa8e4 to f53ae86 Compare September 13, 2021 15:38
@LukasReschke LukasReschke marked this pull request as ready for review September 13, 2021 15:39
Copy link
Member Author

@LukasReschke LukasReschke left a comment

Choose a reason for hiding this comment

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

Test plan:

  • Disable the memory cache in config.php
  • Enable the "Q&A Testing App" in the app settings
  • Go to /index.php/apps/testing/userAndAnonProtected and click a few times. Verify that the requests fails due to hitting the ratelimit.
  • Verify that expired ratelimit entries are removed on requests

@LukasReschke LukasReschke merged commit fd71f49 into stable19 Sep 13, 2021
@LukasReschke LukasReschke deleted the backport/28728/stable19 branch September 13, 2021 17:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants