Skip to content

Improve usability of JetBrains Gateway when experiencing authentication errors #12625

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

Closed
YoannBuch opened this issue Sep 2, 2022 · 7 comments
Labels
editor: jetbrains meta: stale This issue/PR is stale and will be closed soon team: IDE type: feature request New feature or request

Comments

@YoannBuch
Copy link

YoannBuch commented Sep 2, 2022

There are situations where a user might have the wrong logged in user, is not authenticated properly, or some other authentication related error that means they cannot access their workspace. Currently these errors are not obvious, not the resolution path. We should look to provide users in JetBrains Gateway who get authentication errors with:

  1. Improved error messaging when they receive the operation not permitted errors.
  2. Information about their currently logged in user
Original description

Bug description

I am trying to open up a workspace using Jetbrains Gateway, but it does not work.

When I click on the "Open in IntelliJ IDEA" button in gitpod.io, I see that my Jetbrains Gateway is being called because of the notification popup I receive on my Ubuntu desktop but it does nothing else.

I expect it to launch a thin IntelliJ client instead.

I am using the following versions:

  • Ubuntu 22.04.1 LTS
  • Jetbrains Gateway: 2022.2.1
  • Gitpod plugin: 0.0.1-main.4067

You will find attached the Jetbrains Gateway logs. Among other things you will find a suspicious operation not permitted: missing get permission on workspace error.

Jetbrains Gateway logs:
gateway-logs-20220902-19042814161197084175745587.zip

Steps to reproduce

  1. Launch Jetbrains Gateway
  2. Navigate to https://gitpod.io/workspaces
  3. Open a workspace
  4. Click on "Open in IntelliJ IDEA"

=> desktop (Ubuntu) notification shows up
image

but Jetbrains Gateway does not open IntelliJ.

And there is no listed workspace:
image

Workspace affected

denisturbiez-apikotlin-vctn84gfozw.ws-eu63

Expected behavior

  • Succesfully launch IntelliJ Idea from gitpod.io using Jetbrains Gateway
  • See workspaces in Jetbrains Gateway

Example repository

No response

Anything else?

No response

@YoannBuch YoannBuch added the type: bug Something isn't working label Sep 2, 2022
@akosyakov
Copy link
Member

@YoannBuch This workspace does not seem to belong to you. Live sharing of workspaces is not supported by JB products. cc @loujaybee

@YoannBuch
Copy link
Author

Thanks for the reply @akosyakov.

I do have access to this workspace in gitpod.io, however maybe there's a mismatch between what Jetbrains Gateway thinks I am vs who owns the workspace?

How does Gateway know in the first place who I am? How does it connect to gitpod.io? I don't recall setting up any credentials.

@akosyakov
Copy link
Member

I do have access to this workspace in gitpod.io, however maybe there's a mismatch between what Jetbrains Gateway thinks I am vs who owns the workspace?

It is using an account with which you authenticated the plugin. You can click logout and then loging again. If you changed account in your browser.
Screenshot 2022-09-05 at 09 38 27

@YoannBuch
Copy link
Author

Ok makes sense... I had totally forgot that step 🤦‍♂️

Thanks a lot!

I guess a nice error message on the UI would be helpful in that case :)

You can close the issue 👍

@loujaybee
Copy link
Member

Thanks for raising @YoannBuch!

Actually, rather than close I'm going to convert this issue from a bug to a feature request. It'd be good if we're able to show user information, or better debug messaging in the Gateway for these types of authentication errors. I've updated the description, but have captured your original context in a toggle so we have it for future reference, thanks!

@loujaybee loujaybee added type: feature request New feature or request and removed type: bug Something isn't working labels Sep 5, 2022
@loujaybee
Copy link
Member

Would be good to define this as an application error code, with a description, e.g. applying the following approach:

@loujaybee loujaybee changed the title Unable to launch IntelliJ from Jetbrains Gateway Improve usability of Jetbrains Gateway when experiencing authentication errors Sep 5, 2022
@loujaybee loujaybee changed the title Improve usability of Jetbrains Gateway when experiencing authentication errors Improve usability of JetBrains Gateway when experiencing authentication errors Sep 5, 2022
@akosyakov akosyakov removed this from 🚀 IDE Team Sep 5, 2022
@stale
Copy link

stale bot commented Dec 16, 2022

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the meta: stale This issue/PR is stale and will be closed soon label Dec 16, 2022
@stale stale bot closed this as completed Jan 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
editor: jetbrains meta: stale This issue/PR is stale and will be closed soon team: IDE type: feature request New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants