[go: up one dir, main page]

Skip to content

Fix redirect loop in Gitea rate limit

What does this MR do and why?

The current implementation applies a rate limit to the status endpoint to limit repository list fetches from Gitea per minute.

This change increases the rate limit threshold to prevent regular users from being rate limited during normal usage.

This resolves the infinite redirect issue and improves the overall user experience.

References

#569047

Screenshots or screen recordings

gitea

How to set up and validate locally

Initial setup

  1. Set up a local Gitea instance with a cloneable project.

Testing imports

  1. Perform some Gitea imports.
  2. Verify that the real-time status updates work.
  3. Verify that the project is successfully imported.

Testing invalid access token

  1. Visit http://gdk.test:3000/import/gitea/status.
  2. Enter your URL and Gitea access token.
  3. Delete the access token in Gitea and refresh the page
  4. You should be redirected to the initial page

MR acceptance checklist

Evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.

Edited by Rodrigo Tomonari

Merge request reports

Loading