[GH-ISSUE #5543] [bug]: Workspace name length is not checked in Creation/Edit in app #2137

Open
opened 2026-03-16 23:20:23 +03:00 by kerem · 2 comments
Owner

Originally created by @viniciusvianadp on GitHub (Oct 31, 2025).
Original GitHub issue: https://github.com/hoppscotch/hoppscotch/issues/5543

Originally assigned to: @AlexDaGreat555 on GitHub.

Is there an existing issue for this?

  • I have searched existing issues and this bug hasn't been reported yet

Platform

Web App

Browser

Chrome

Operating System

Linux

Bug Description

What happened?

This is more of an inconsistency, but when a workspace is created (or edited) in the admin dashboard, there is a minimum length. But this is not a constraint in the app, so it is possible to create workspaces for example, named as a single character.

Image

For example, when trying to create a workspace named "short" in the admin dashboard:

Image

While creating in the app with the same name (same works for editing the name of a workspace) results in a successful creation:

Image

Also, it is possible to create (and update) names in the admin dashboard using multiple ending spaces (no trim).

No ending spaces:

Image

With ending spaces:

Image Image

This inconsistency is related to the following files:
(1) Workspace creation in the app (no constraint for name length, no trimming):
packages/hoppscotch-common/src/components/teams/Add.vue
(2) Workspace name update in the app (no constraint for length, no trimming):
packages/hoppscotch-common/src/components/teams/Edit.vue
(3) Teams page in admin dashboard (includes the state.team_name_too_short constraint, but no trimming): packages/hoppscotch-sh-admin/src/pages/teams/index.vue
(4) Details of a team in admin dashboard, that allows updating the name of the workspace (includes the state.team_name_too_short constraint, but no trimming):
packages/hoppscotch-sh-admin/src/components/teams/Details.vue

Deployment Type

Hoppscotch Cloud

Version

No response

Originally created by @viniciusvianadp on GitHub (Oct 31, 2025). Original GitHub issue: https://github.com/hoppscotch/hoppscotch/issues/5543 Originally assigned to: @AlexDaGreat555 on GitHub. ### Is there an existing issue for this? - [x] I have searched existing issues and this bug hasn't been reported yet ### Platform Web App ### Browser Chrome ### Operating System Linux ### Bug Description ## What happened? This is more of an inconsistency, but when a workspace is created (or edited) in the admin dashboard, there is a minimum length. But this is not a constraint in the app, so it is possible to create workspaces for example, named as a single character. <img width="1001" height="479" alt="Image" src="https://github.com/user-attachments/assets/186b7a6f-ebea-4fb3-b3ab-e7bbfd6e13aa" /> For example, when trying to create a workspace named "short" in the admin dashboard: <img width="1196" height="571" alt="Image" src="https://github.com/user-attachments/assets/82bafdf7-f30e-45ba-bf00-d09d2110dbae" /> While creating in the app with the same name (same works for editing the name of a workspace) results in a successful creation: <img width="892" height="432" alt="Image" src="https://github.com/user-attachments/assets/a717a433-ea2c-4f10-a426-dc8ba80ff35a" /> Also, it is possible to create (and update) names in the admin dashboard using multiple ending spaces (no trim). No ending spaces: <img width="1164" height="568" alt="Image" src="https://github.com/user-attachments/assets/4aaefbb3-b953-4180-a339-c01c01e31eca" /> With ending spaces: <img width="1074" height="535" alt="Image" src="https://github.com/user-attachments/assets/19a5f4fa-efd9-444f-902f-aac578c9b4ae" /> <img width="958" height="442" alt="Image" src="https://github.com/user-attachments/assets/1bbfd61c-45bc-413c-8caa-c1733fc6c2c9" /> This inconsistency is related to the following files: (1) Workspace creation in the app (no constraint for name length, no trimming): `packages/hoppscotch-common/src/components/teams/Add.vue` (2) Workspace name update in the app (no constraint for length, no trimming): `packages/hoppscotch-common/src/components/teams/Edit.vue` (3) Teams page in admin dashboard (includes the state.team_name_too_short constraint, but no trimming): `packages/hoppscotch-sh-admin/src/pages/teams/index.vue` (4) Details of a team in admin dashboard, that allows updating the name of the workspace (includes the state.team_name_too_short constraint, but no trimming): `packages/hoppscotch-sh-admin/src/components/teams/Details.vue` ### Deployment Type Hoppscotch Cloud ### Version _No response_
Author
Owner

@AlexDaGreat555 commented on GitHub (Nov 16, 2025):

Hello, can @nihansofia0127 and I work on this issue please?

<!-- gh-comment-id:3537196168 --> @AlexDaGreat555 commented on GitHub (Nov 16, 2025): Hello, can @nihansofia0127 and I work on this issue please?
Author
Owner

@nivedin commented on GitHub (Nov 16, 2025):

@AlexDaGreat555 assigned

<!-- gh-comment-id:3538717454 --> @nivedin commented on GitHub (Nov 16, 2025): @AlexDaGreat555 assigned
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/hoppscotch#2137
No description provided.