[bug][validation] Workspace name update accepts URLs and empty values (NoUrls/min-length enforced only at setup); error message is generic #127
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: low (validation parity)
The workspace-name update path has weaker validation than the setup path and gives worse errors.
Findings (live):
Visit https://evil.com now→POST /api/workspace/update200, persisted. The setup form rejects URLs in names, butUpdateWorkspaceDto/CreateWorkspaceDtonamehas no@NoUrls(the validator exists and is used ininvitation.dto.ts, just not here). Seeapps/server/src/core/workspace/dto/create-workspace.dto.ts.Suggested fix: apply
@NoUrls/min-length on the workspace name DTO; disable Save when clean/empty; surface the server's specific validation message.Filed from an automated full-product QA pass on
develop@v0.93.0-64-gb60190ff, fresh DB. Each item below was reproduced live in a clean browser session unless noted.Screenshot