[GH-ISSUE #1143] Resource with no domain causes endless redirect loop #6576

Closed
opened 2026-04-25 15:29:04 -05:00 by GiteaMirror · 3 comments
Owner

Originally created by @srgustafson8 on GitHub (Jul 27, 2025).
Original GitHub issue: https://github.com/fosrl/pangolin/issues/1143

Originally assigned to: @miloschwartz on GitHub.

Running v1.7.3, recently upgraded from v1.5.x
Docker Compose running on AWS Lightsail

I triggered a strange error today where I created a new resource but never selected/added the domain as below:

Image

The resource creates successfully, but then causes the app go into a redirect loop - any request made goes into a loop like this (real url obfuscated)

https://pangolin.url/auth/resource/14?redirect=https%3A%2F%2Fpangolin.url%2Fauth%2Fresource%2F14%3Fredirect%3Dhttps%253A%252F%252Fpangolin.url%252Fauth%252Fresource%252F14%253Fredirect%253Dhttps%25253A%25252F%25252Fpangolin.url%25252Fauth%25252Fresource%25252F14%25253Fredirect%25253Dhttps%2525253A%2525252F%2525252Fpangolin.url%2525252Fauth%2525252Fresource%2525252F14%2525253Fredirect%2525253Dhttps%252525253A%252525252F%252525252Fpangolin.url%252525252Fauth%252525252Fresource%252525252F14%252525253Fredirect%252525253Dhttps%25252525253A%25252525252F%25252525252Fpangolin.url%25252525252Fauth%25252525252Fresource%25252525252F14%25252525253Fredirect%25252525253Dhttps%2525252525253A%2525252525252F%2525252525252Fpangolin.url%2525252525252Fauth%2525252525252Fresource%2525252525252F14%2525252525253Fredirect%2525252525253Dhttps%252525252525253A%252525252525252F%252525252525252Fpangolin.url%252525252525252Fauth%252525252525252Fresource%252525252525252F14%252525252525253Fredirect%252525252525253Dhttps%25252525252525253A%25252525252525252F%25252525252525252Fpangolin.url%25252525252525252Fauth%25252525252525252Fresource%25252525252525252F14%25252525252525253Fredirect%25252525252525253Dhttps%2525252525252525253A%2525252525252525252F%2525252525252525252Fpangolin.url%2525252525252525252Fauth%2525252525252525252Fresource%2525252525252525252F14%2525252525252525253Fredirect%2525252525252525253Dhttps%252525252525252525253A%252525252525252525252F%252525252525252525252Fpangolin.url%252525252525252525252Fauth%252525252525252525252Fresource%252525252525252525252F14%252525252525252525253Fredirect%252525252525252525253Dhttps%25252525252525252525253A%25252525252525252525252F%25252525252525252525252Fpangolin.url%25252525252525252525252Fauth%25252525252525252525252Fresource%25252525252525252525252F14%25252525252525252525253Fredirect%25252525252525252525253Dhttps%2525252525252525252525253A%2525252525252525252525252F%2525252525252525252525252Fpangolin.url%2525252525252525252525252Fauth%2525252525252525252525252Fresource%2525252525252525252525252F14%2525252525252525252525253Fredirect%2525252525252525252525253Dhttps%252525252525252525252525253A%252525252525252525252525252F%252525252525252525252525252Fpangolin.url%252525252525252525252525252Fauth%252525252525252525252525252Fresource%252525252525252525252525252F14%252525252525252525252525253Fredirect%252525252525252525252525253Dhttps%25252525252525252525252525253A%25252525252525252525252525252F%25252525252525252525252525252Fpangolin.url%25252525252525252525252525252Fauth%25252525252525252525252525252Fresource%25252525252525252525252525252F14%25252525252525252525252525253Fredirect%25252525252525252525252525253Dhttps%2525252525252525252525252525253A%2525252525252525252525252525252F%2525252525252525252525252525252Fpangolin.url%2525252525252525252525252525252Fauth%2525252525252525252525252525252Fresource%2525252525252525252525252525252F14%2525252525252525252525252525253Fredirect%2525252525252525252525252525253Dhttps%252525252525252525252525252525253A%252525252525252525252525252525252F%252525252525252525252525252525252Fpangolin.url%252525252525252525252525252525252Fauth%252525252525252525252525252525252Fresource%252525252525252525252525252525252F14%252525252525252525252525252525253Fredirect%252525252525252525252525252525253Dhttps%25252525252525252525252525252525253A%25252525252525252525252525252525252F%25252525252525252525252525252525252Fpangolin.url%25252525252525252525252525252525252Fauth%25252525252525252525252525252525252Fresource%25252525252525252525252525252525252F14%25252525252525252525252525252525253Fredirect%25252525252525252525252525252525253Dhttps%2525252525252525252525252525252525253A%2525252525252525252525252525252525252F%2525252525252525252525252525252525252Fpangolin.url%2525252525252525252525252525252525252Fauth%2525252525252525252525252525252525252Fresource%2525252525252525252525252525252525252F14%2525252525252525252525252525252525253Fred

Can't see anything in the logs relating to this. The only fix is to delete that resource from the database directly.

Should the domain control be mandatory? I believe the behaviour recently changed, so it is now relatively easy to enter a correct domain as below, but without it actually being selected:

Image

vs

Image
Originally created by @srgustafson8 on GitHub (Jul 27, 2025). Original GitHub issue: https://github.com/fosrl/pangolin/issues/1143 Originally assigned to: @miloschwartz on GitHub. Running v1.7.3, recently upgraded from v1.5.x Docker Compose running on AWS Lightsail I triggered a strange error today where I created a new resource but never selected/added the domain as below: <img width="530" height="248" alt="Image" src="https://github.com/user-attachments/assets/cbae75e3-f9c1-400a-b9e2-c1e271f35fc8" /> The resource creates successfully, but then causes the app go into a redirect loop - any request made goes into a loop like this (real url obfuscated) ```text https://pangolin.url/auth/resource/14?redirect=https%3A%2F%2Fpangolin.url%2Fauth%2Fresource%2F14%3Fredirect%3Dhttps%253A%252F%252Fpangolin.url%252Fauth%252Fresource%252F14%253Fredirect%253Dhttps%25253A%25252F%25252Fpangolin.url%25252Fauth%25252Fresource%25252F14%25253Fredirect%25253Dhttps%2525253A%2525252F%2525252Fpangolin.url%2525252Fauth%2525252Fresource%2525252F14%2525253Fredirect%2525253Dhttps%252525253A%252525252F%252525252Fpangolin.url%252525252Fauth%252525252Fresource%252525252F14%252525253Fredirect%252525253Dhttps%25252525253A%25252525252F%25252525252Fpangolin.url%25252525252Fauth%25252525252Fresource%25252525252F14%25252525253Fredirect%25252525253Dhttps%2525252525253A%2525252525252F%2525252525252Fpangolin.url%2525252525252Fauth%2525252525252Fresource%2525252525252F14%2525252525253Fredirect%2525252525253Dhttps%252525252525253A%252525252525252F%252525252525252Fpangolin.url%252525252525252Fauth%252525252525252Fresource%252525252525252F14%252525252525253Fredirect%252525252525253Dhttps%25252525252525253A%25252525252525252F%25252525252525252Fpangolin.url%25252525252525252Fauth%25252525252525252Fresource%25252525252525252F14%25252525252525253Fredirect%25252525252525253Dhttps%2525252525252525253A%2525252525252525252F%2525252525252525252Fpangolin.url%2525252525252525252Fauth%2525252525252525252Fresource%2525252525252525252F14%2525252525252525253Fredirect%2525252525252525253Dhttps%252525252525252525253A%252525252525252525252F%252525252525252525252Fpangolin.url%252525252525252525252Fauth%252525252525252525252Fresource%252525252525252525252F14%252525252525252525253Fredirect%252525252525252525253Dhttps%25252525252525252525253A%25252525252525252525252F%25252525252525252525252Fpangolin.url%25252525252525252525252Fauth%25252525252525252525252Fresource%25252525252525252525252F14%25252525252525252525253Fredirect%25252525252525252525253Dhttps%2525252525252525252525253A%2525252525252525252525252F%2525252525252525252525252Fpangolin.url%2525252525252525252525252Fauth%2525252525252525252525252Fresource%2525252525252525252525252F14%2525252525252525252525253Fredirect%2525252525252525252525253Dhttps%252525252525252525252525253A%252525252525252525252525252F%252525252525252525252525252Fpangolin.url%252525252525252525252525252Fauth%252525252525252525252525252Fresource%252525252525252525252525252F14%252525252525252525252525253Fredirect%252525252525252525252525253Dhttps%25252525252525252525252525253A%25252525252525252525252525252F%25252525252525252525252525252Fpangolin.url%25252525252525252525252525252Fauth%25252525252525252525252525252Fresource%25252525252525252525252525252F14%25252525252525252525252525253Fredirect%25252525252525252525252525253Dhttps%2525252525252525252525252525253A%2525252525252525252525252525252F%2525252525252525252525252525252Fpangolin.url%2525252525252525252525252525252Fauth%2525252525252525252525252525252Fresource%2525252525252525252525252525252F14%2525252525252525252525252525253Fredirect%2525252525252525252525252525253Dhttps%252525252525252525252525252525253A%252525252525252525252525252525252F%252525252525252525252525252525252Fpangolin.url%252525252525252525252525252525252Fauth%252525252525252525252525252525252Fresource%252525252525252525252525252525252F14%252525252525252525252525252525253Fredirect%252525252525252525252525252525253Dhttps%25252525252525252525252525252525253A%25252525252525252525252525252525252F%25252525252525252525252525252525252Fpangolin.url%25252525252525252525252525252525252Fauth%25252525252525252525252525252525252Fresource%25252525252525252525252525252525252F14%25252525252525252525252525252525253Fredirect%25252525252525252525252525252525253Dhttps%2525252525252525252525252525252525253A%2525252525252525252525252525252525252F%2525252525252525252525252525252525252Fpangolin.url%2525252525252525252525252525252525252Fauth%2525252525252525252525252525252525252Fresource%2525252525252525252525252525252525252F14%2525252525252525252525252525252525253Fred ``` Can't see anything in the logs relating to this. The only fix is to delete that resource from the database directly. Should the domain control be mandatory? I believe the behaviour recently changed, so it is now relatively easy to enter a correct domain as below, but without it actually being selected: <img width="777" height="246" alt="Image" src="https://github.com/user-attachments/assets/b98a59b3-ee6a-47af-82ef-014a668a7547" /> vs <img width="755" height="123" alt="Image" src="https://github.com/user-attachments/assets/6c0eb7b8-0772-4460-a2ba-f3e589f8795d" />
Author
Owner

@miloschwartz commented on GitHub (Jul 31, 2025):

1.8.0 makes the domain a requirement. Let me know if this is fixed!

<!-- gh-comment-id:3140842915 --> @miloschwartz commented on GitHub (Jul 31, 2025): 1.8.0 makes the domain a requirement. Let me know if this is fixed!
Author
Owner

@srgustafson8 commented on GitHub (Aug 1, 2025):

@miloschwartz will give this a test later, thanks!

<!-- gh-comment-id:3143755544 --> @srgustafson8 commented on GitHub (Aug 1, 2025): @miloschwartz will give this a test later, thanks!
Author
Owner

@srgustafson8 commented on GitHub (Aug 3, 2025):

@miloschwartz fixes the problem by preventing creation of the resource without a domain - although to me it's lacking some some UI feedback as to why the creation doesn't work - just seems to do nothing when you click the button. Either way this issue is resolved! Thank you

<!-- gh-comment-id:3148513153 --> @srgustafson8 commented on GitHub (Aug 3, 2025): @miloschwartz fixes the problem by preventing creation of the resource without a domain - although to me it's lacking some some UI feedback as to why the creation doesn't work - just seems to do nothing when you click the button. Either way this issue is resolved! Thank you
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/pangolin#6576