Skip to content

It's possible to create several workspaces with the same name using the factory URL, and the User Dashboard doesn't distinguish between them properly. #23751

@dmytro-ndp

Description

@dmytro-ndp

Describe the bug

Actually, the User Dashboard doesn't check if there are existing workspaces with the same name when creating workspaces using a factory URL.

When there are several workspaces with the same name, the User Dashboard opens the incorrect one when clicking on it in the workspace list.

Che version

7.114@latest

Steps to reproduce

  1. Open next factory URL to create workspace with VS Code with name "test" in Eclipse Che: https://che-dogfooding.apps.che-dev.x6e0.p1.openshiftapps.com/dashboard/#/load-factory?url=https%3A%2F%2Fregistry.devfile.io%2Fdevfiles%2Fnodejs-angular%2F2.2.1&che-editor=che-incubator%2Fche-code%2Finsiders&policies.create=perclick&storageType=per-workspace&name=test

  2. Open the same factory URL one more time: https://che-dogfooding.apps.che-dev.x6e0.p1.openshiftapps.com/dashboard/#/load-factory?url=https%3A%2F%2Fregistry.devfile.io%2Fdevfiles%2Fnodejs-angular%2F2.2.1&che-editor=che-incubator%2Fche-code%2Finsiders&policies.create=perclick&storageType=per-workspace&name=test

  3. Open another factory URL to create workspace with Kiro Editor with name "test" https://che-dogfooding.apps.che-dev.x6e0.p1.openshiftapps.com/dashboard/#/load-factory?url=https%3A%2F%2Fregistry.devfile.io%2Fdevfiles%2Fpython-django%2F2.1.0&che-editor=che-incubator%2Fche-kiro-sshd%2Flatest&policies.create=perclick&storageType=per-workspace&name=test

Expected behavior

User Dashboard creates 3 workspaces with the different names.

Runtime

OpenShift

Screenshots

Image

Screencast of incorrect behavior of User Dashboard:

screen-capture.66.webm

Installation method

OperatorHub

Environment

Linux

Eclipse Che Logs

Additional context

The issue has been reproduced in Dev Spaces 3.26.x

Metadata

Metadata

Assignees

Labels

area/dashboardkind/bugOutline of a bug - must adhere to the bug report template.severity/P1Has a major impact to usage or development of the system.team/AThis team is responsible for the Che Operator and all its operands as well as chectl and Hosted Che

Type

No type

Projects

Status

Ready for Review

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions