fix: prevent resource from being created with dashboard's domain to avoid redirect loop #153

Closed
opened 2026-04-05 17:01:38 +02:00 by MrUnknownDE · 0 comments
Owner

Originally created by @Fizza-Mukhtar on 3/5/2026

Community Contribution License Agreement

By creating this pull request, I grant the project maintainers an unlimited,
perpetual license to use, modify, and redistribute these contributions under any terms they
choose, including both the AGPLv3 and the Fossorial Commercial license terms. I
represent that I have the right to grant this license for all contributed content.

Fixes #2595

Problem

Creating or updating a resource with the same subdomain as the dashboard caused an endless HTTP 302 redirect loop.

Fix

  • Added validation in createResource and updateResource to return a conflict error if the resource's full domain matches the dashboard URL
  • Updated the create resource page to show the actual backend error message instead of a generic one
*Originally created by @Fizza-Mukhtar on 3/5/2026* ## Community Contribution License Agreement By creating this pull request, I grant the project maintainers an unlimited, perpetual license to use, modify, and redistribute these contributions under any terms they choose, including both the AGPLv3 and the Fossorial Commercial license terms. I represent that I have the right to grant this license for all contributed content. Fixes #2595 ## Problem Creating or updating a resource with the same subdomain as the dashboard caused an endless HTTP 302 redirect loop. ## Fix - Added validation in `createResource` and `updateResource` to return a conflict error if the resource's full domain matches the dashboard URL - Updated the create resource page to show the actual backend error message instead of a generic one
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github/pangolin#153