Repeatedly hitting Sign In button results in evergrowing redirect_to chain #8018

Closed
opened 2025-11-02 07:51:08 -06:00 by GiteaMirror · 0 comments
Owner

Originally created by @laurivosandi on GitHub (Oct 24, 2021).

Gitea Version

1.15.5

Git Version

Docker image

Operating System

Not applicable

How are you running Gitea?

Docker image

Database

MySQL

Can you reproduce the bug on the Gitea demo site?

Yes

Log Gist

No response

Description

Repeatedly hitting Sign In button results in ever increasing chain for redirect_to GET argument leading to eventual error 500.

I guess this is done to preserve GET arguments for other views but for /user/login this does not make sense.

Looking at my Gitea server logs looks like some web crawlers get stuck in these loops.

Screenshots

No response

Originally created by @laurivosandi on GitHub (Oct 24, 2021). ### Gitea Version 1.15.5 ### Git Version Docker image ### Operating System Not applicable ### How are you running Gitea? Docker image ### Database MySQL ### Can you reproduce the bug on the Gitea demo site? Yes ### Log Gist _No response_ ### Description Repeatedly hitting Sign In button results in ever increasing chain for `redirect_to` GET argument leading to eventual error 500. I guess this is done to preserve GET arguments for other views but for `/user/login` this does not make sense. Looking at my Gitea server logs looks like some web crawlers get stuck in these loops. ### Screenshots _No response_
GiteaMirror added the type/bug label 2025-11-02 07:51:08 -06:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#8018