openconcho
openconcho copied to clipboard
Delete Workspace modal silently ignores 409 errors when active sessions remain
Honcho version / commit
0.16.0@sha256:f27b61df1af9e5c22758fc85a83a0e856e8aeba503db6dea7a9e35404f01dd48
What happened?
When deleting a workspace from the Delete Workspace modal, the Honcho API returns a useful 409 Conflict response if the workspace still has active sessions:
{
"detail": "Cannot delete workspace '<NAME_OF_WORKSPACE>': active session(s) remain. Delete all sessions first."
}
OpenConcho does not show this error in the modal or elsewhere. The UI appears to do nothing / not react, which makes it look like the delete action failed silently.
Request:
curl 'http://<HONCHO_URL>/api/v3/workspaces/<NAME_OF_WORKSPACE>' \
-X 'DELETE' \
-H 'content-type: application/json' \
-H 'x-honcho-upstream: http://api:8000'
Observed Response: 409 Conflict with the JSON body above.
What did you expect?
OpenConcho should surface the API error message to the user instead of silently doing nothing.
Steps to reproduce
- Open OpenConcho.
- Navigate to a workspace that still has active sessions.
- Open the Delete Workspace modal.
- Confirm deletion.
- Observe that the API returns 409 Conflict.
- Observe that the UI does not display the error message and appears unchanged.
Additional context
- OpenConcho: Docker image ghcr.io/offendingcommit/openconcho-web:0.16.0
- Browser: Chrome 149 on Linux