Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[IDEA] Can't list DevWorkspace #23367

Open
batleforc opened this issue Feb 27, 2025 · 0 comments
Open

[IDEA] Can't list DevWorkspace #23367

batleforc opened this issue Feb 27, 2025 · 0 comments
Assignees
Labels
area/editor/jetbrains/intellij Issues related to the IntelliJ-based IDE for Eclipse Che kind/bug Outline of a bug - must adhere to the bug report template. severity/P2 Has a minor but important impact to the usage or development of the system.

Comments

@batleforc
Copy link

Describe the bug

Hi,
In our DevSpaces setup, some user can see too many Projects but can only list Dev Workspaces when in his own Workspaces. In this peculiar case, the extension JetBrains gateway DevSpaces extension fail to list the Dev workspaces CRD object and silently fail.

JetBrains IDE log:

2025-02-27 10:44:16,700 [ 450092]   INFO - STDERR - Exception in thread "Thread-33" io.kubernetes.client.openapi.ApiException: 
2025-02-27 10:44:16,700 [ 450092]   INFO - STDERR - 	at io.kubernetes.client.openapi.ApiClient.handleResponse(ApiClient.java:973)
2025-02-27 10:44:16,700 [ 450092]   INFO - STDERR - 	at io.kubernetes.client.openapi.ApiClient.execute(ApiClient.java:885)
2025-02-27 10:44:16,701 [ 450093]   INFO - STDERR - 	at io.kubernetes.client.openapi.apis.CustomObjectsApi.listNamespacedCustomObjectWithHttpInfo(CustomObjectsApi.java:4312)
2025-02-27 10:44:16,701 [ 450093]   INFO - STDERR - 	at io.kubernetes.client.openapi.apis.CustomObjectsApi.listNamespacedCustomObject(CustomObjectsApi.java:4185)
2025-02-27 10:44:16,701 [ 450093]   INFO - STDERR - 	at com.redhat.devtools.gateway.openshift.DevWorkspaces.list(DevWorkspaces.kt:35)
2025-02-27 10:44:16,702 [ 450094]   INFO - STDERR - 	at com.redhat.devtools.gateway.view.steps.DevSpacesRemoteServerConnectionStepView.doRefreshAllDevWorkspaces(DevSpacesRemoteServerConnectionStepView.kt:139)
2025-02-27 10:44:16,702 [ 450094]   INFO - STDERR - 	at com.redhat.devtools.gateway.view.steps.DevSpacesRemoteServerConnectionStepView.refreshAllDevWorkspaces$lambda$3(DevSpacesRemoteServerConnectionStepView.kt:112)
2025-02-27 10:44:16,702 [ 450094]   INFO - STDERR - 	at java.base/java.lang.Thread.run(Thread.java:1583)

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

Che version

7.95

Steps to reproduce

  1. Have a user that can see all namespace but can only list devworkspaces CRD object in one namespace
  2. Have a Workspace open (even if it's not an Jetbrains one)
  3. Login to a JetBrains IDE and try to list workspace
  4. See nothing :/

Expected behavior

Being able to see my Workspace and log into one

Runtime

OpenShift

Screenshots

No response

Installation method

other (please specify in additional context)

Environment

Linux

Eclipse Che Logs

Additional context

No response

@batleforc batleforc added the kind/bug Outline of a bug - must adhere to the bug report template. label Feb 27, 2025
@che-bot che-bot added the status/need-triage An issue that needs to be prioritized by the curator responsible for the triage. See https://github. label Feb 27, 2025
@dmytro-ndp dmytro-ndp added severity/P2 Has a minor but important impact to the usage or development of the system. area/editor/jetbrains/intellij Issues related to the IntelliJ-based IDE for Eclipse Che and removed status/need-triage An issue that needs to be prioritized by the curator responsible for the triage. See https://github. labels Feb 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/editor/jetbrains/intellij Issues related to the IntelliJ-based IDE for Eclipse Che kind/bug Outline of a bug - must adhere to the bug report template. severity/P2 Has a minor but important impact to the usage or development of the system.
Projects
None yet
Development

No branches or pull requests

4 participants