BUG: HandleEnvVarDelete uses wrong route parameter name — env var deletion always 404s #104
Labels
No Label
bug
duplicate
enhancement
help wanted
invalid
merge-ready
merge-ready
needs-checks
needs-checks
needs-rebase
needs-rebase
needs-review
needs-review
needs-rework
needs-rework
notplanned
question
wontfix
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: sneak/upaas#104
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Severity: CRITICAL
File & Line
internal/handlers/app.go:919Description
HandleEnvVarDeletereadschi.URLParam(request, "envID")but the route inroutes.go:87defines the parameter as{varID}:Since
"envID"is never set by the router,envVarIDStris always empty,ParseIntfails, and the handler always returns 404. Environment variable deletion via the UI is completely broken.Impact
Users cannot delete environment variables from apps. This is a core CRUD operation.
Suggested Fix
Change line 919 in
app.gofrom:to: