Skip to content

RESTART_WORKSPACE action missing SCC mismatch check #23905

Description

@snecklifter

Describe the bug

The RESTART_WORKSPACE action handler in Provider.tsx does not call checkSccMismatch() before restarting. Every other start/restart action (START_DEBUG_AND_OPEN_LOGS, START_IN_BACKGROUND, RESTART_DEBUG_AND_OPEN_LOGS) performs this check and logs a warning when the workspace was created with a different container SCC than what is currently configured.

This means a plain "Restart Workspace" on a workspace with an SCC mismatch will silently proceed without any warning, while all other start/restart actions warn the user.

Steps to reproduce

  1. Configure a cluster with a non-default SCC for workspace containers.
  2. Create a workspace.
  3. Change the SCC configuration.
  4. Use the kebab menu to select "Restart Workspace".
  5. Observe no warning is logged — contrast with "Open in Debug mode" or "Start in Background" which log a console.warn.

Expected behavior

RESTART_WORKSPACE should call checkSccMismatch() and log a warning, consistent with all other start/restart actions.

Dashboard PR

eclipse-che/che-dashboard#1596

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/dashboardkind/bugOutline of a bug - must adhere to the bug report template.status/need-triageAn issue that needs to be prioritized by the curator responsible for the triage. See https://github.team/CThis team is responsible for the the IDEs and Extensions

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions