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

User name changes in collaborative mode with no authentication #13432

Closed
davidbrochart opened this issue Nov 17, 2022 · 9 comments
Closed

User name changes in collaborative mode with no authentication #13432

davidbrochart opened this issue Nov 17, 2022 · 9 comments

Comments

@davidbrochart
Copy link
Contributor

Description

In JupyterLab master branch, with collaborative mode enabled, the name of the anonymous user periodically changes.

Reproduce

  1. Install JupyterLab's master branch.
  2. Launch JupyterLab with jupyter lab --dev-mode --collaborative.
  3. Wait a couple of minutes.
  4. See the name of the user change in the upper-right corner of the UI.

Expected behavior

The user name should not change.

@jupyterlab-probot jupyterlab-probot bot added the status:Needs Triage Applied to new issues that need triage label Nov 17, 2022
@fcollonval
Copy link
Member

@davidbrochart do you think it is linked to the websocket for the global awareness to be reopened?

@davidbrochart
Copy link
Contributor Author

I don't think so, because it still happens after y-crdt/ypy-websocket#42.

@davidbrochart
Copy link
Contributor Author

Also, it happens even when no document is opened.

@davidbrochart
Copy link
Contributor Author

@davidbrochart do you think it is linked to the websocket for the global awareness to be reopened?

I think I didn't get your question, it could be linked to the global awareness yes.

@davidbrochart
Copy link
Contributor Author

davidbrochart commented Nov 17, 2022

Actually, it is the backend which sends the new name on GET /api/me.

@davidbrochart
Copy link
Contributor Author

It only happens when launching jupyter lab --ServerApp.token='' --ServerApp.password='', and seems to be because of jupyter-server/jupyter_server#1033.

@davidbrochart davidbrochart changed the title User name changes in collaborative mode User name changes in collaborative mode with no authentication Nov 17, 2022
@JasonWeill JasonWeill added tag:Real Time Collaboration and removed status:Needs Triage Applied to new issues that need triage labels Nov 17, 2022
@hbcarlos
Copy link
Member

@davidbrochart, jupyter-server/jupyter_server#1076 was merged and released in jp-server v2.0.0rc5.
I guess this issue is now fixed? I can not reproduce it.

@hbcarlos
Copy link
Member

Closing as fixed by jupyter-server/jupyter_server#1076.
I can see the backend always sending the same user identity, even when not using authentication.

@davidbrochart
Copy link
Contributor Author

Yes, it is fixed.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants