Skip to content

IntelliJ Gateway - OpenShift Dev Spaces plugin select workspace step fails with unauthorized "watch" action #23744

@dorukeke

Description

@dorukeke

Describe the bug

Hi,

We came across 403 issue for IntelliJ Gateway - OpenShift Dev Spaces plugin 0.0.15.

We found out "devspaces watch" feature added to plugin but 403, 404 cases not handled gracefully: https://github.com/redhat-developer/devspaces-gateway-plugin/blob/main/src/main/kotlin/com/redhat/devtools/gateway/view/steps/DevSpacesWorkspacesStepView.kt#L127

https://github.com/redhat-developer/devspaces-gateway-plugin/blob/main/src/main/kotlin/com/redhat/devtools/gateway/openshift/DevWorkspaces.kt#L258-L270

This issue blocked our usage for IntelliJ products over OpenShift Dev Spaces throughout company.

Che version

7.114@latest

Steps to reproduce

  1. Create a new project on top of "devspaces" project.
  2. Do not give "watch" permissions to user.
  3. Use IntelliJ Gateway and RedHat OpenShift Dev Spaces plugin 0.0.15
  4. Try selecting your workspace from Dev Spaces plugin

Expected behavior

See a popup with "403" keywords in the text.

Not being able to select even listed workspaces.

Runtime

OpenShift

Screenshots

No response

Installation method

chectl/latest

Environment

other (please specify in additional context)

Eclipse Che Logs

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/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.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions