BUG: HandleEnvVarDelete uses wrong route parameter name — env var deletion always 404s #104
Reference in New Issue
Block a user
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: