Open lpcez opened 8 months ago
Thank you for opening your first issue in this project! Engagement like this is essential for open source projects! :hugs:
If you haven't done so already, check out Jupyter's Code of Conduct. Also, please try to follow the issue template as it helps other other community members to contribute more effectively.
You can meet the other Jovyans by joining our Discourse forum. There is also an intro thread there where you can stop by and say Hi! :wave:
Welcome to the Jupyter community! :tada:
Thank you for opening your first issue in this project! Engagement like this is essential for open source projects! :hugs:
If you haven't done so already, check out Jupyter's Code of Conduct. Also, please try to follow the issue template as it helps other other community members to contribute more effectively.
You can meet the other Jovyans by joining our Discourse forum. There is also an intro thread there where you can stop by and say Hi! :wave:
Welcome to the Jupyter community! :tada:
Bug description
Hi. I get 500 error when creating notebook as a user with "." in username. We are using ldap to authenticate users and almost everyone has name in form of "firstletterofthename.surname".
How to reproduce
Expected behaviour
I would have a notebook.
Actual behaviour
It goes like this: (look for the "ValueError: substring not found", it might be it)
Your personal set up
We are using RHEL 8.9 with Python3.9.
Configuration
``` $ grep -Ev '^$|^#' jupyterhub_config.py c = get_config() #noqa c.JupyterHub.spawner_class='sudospawner.SudoSpawner' c.Spawner.cmd = '/opt/jupyterhub/app/hub/bin/sudospawner' c.Spawner.notebook_dir = '/opt/jupyterhub/app/hub/notatniki' c.Spawner.http_timeout = 180 ``` ``` $ grep -Ev '^$|^#' /etc/systemd/system/jupyterhub.service [Unit] Description=JupyterHub [Service] Name=jupyterhub User=jupyterhub Environment=PYTHONUNBUFFERED=1 Environment=VIRTUALENV=/opt/jupyterhub/app/hub/notatniki Environment=PYTHONPATH=$VIRTUALENV/lib:$PYTHONPATH Environment=PATH=/opt/jupyterhub/app/hub/bin:/opt/jupyterhub/node_modules/.bin/:/opt/jupyterjub/.local/bin:/usr/local/sbin:/usr/sbin:/usr/bin:/sbin:/bin WorkingDirectory=/opt/jupyterhub/app/hub ExecStart=/opt/jupyterhub/app/hub/bin/jupyterhub --JupyterHub.confirm_no_ssl=True --port=8888 --ip=127.0.0.1 --SudoSpawner.sudospawner_path='/opt/jupyterhub/app/hub/bin/sudospawner' -f /opt/jupyterhub/app/hub/etc/jupyter/jupyterhub_config.py Restart=always RestartSec=40 Type=simple PIDFile=/var/run/jupyterhub.pid [Install] WantedBy=default.target ``` ``` $PATH: /opt/jupyterhub/app/hub/bin /opt/jupyterhub/.local/bin /opt/jupyterhub/bin /usr/local/bin /usr/bin /usr/local/sbin /usr/sbin /opt/jupyterhub/node_modules/.bin sys.path: /opt/jupyterhub/app/hub/bin /usr/lib64/python39.zip /usr/lib64/python3.9 /usr/lib64/python3.9/lib-dynload /opt/jupyterhub/app/hub/lib64/python3.9/site-packages /opt/jupyterhub/app/hub/lib/python3.9/site-packages sys.executable: /opt/jupyterhub/app/hub/bin/python3.9 sys.version: 3.9.18 (main, Sep 22 2023, 17:58:34) [GCC 8.5.0 20210514 (Red Hat 8.5.0-20)] platform.platform(): Linux-4.18.0-513.18.1.el8_9.x86_64-x86_64-with-glibc2.28 which -a jupyter: /opt/jupyterhub/app/hub/bin/jupyter pip list: Package Version ------------------------- --------------- alembic 1.13.1 anyio 4.3.0 argon2-cffi 23.1.0 argon2-cffi-bindings 21.2.0 arrow 1.3.0 asttokens 2.4.1 async-generator 1.10 async-lru 2.0.4 attrs 23.2.0 Babel 2.14.0 beautifulsoup4 4.12.3 bleach 6.1.0 certifi 2024.2.2 certipy 0.1.3 cffi 1.16.0 charset-normalizer 3.3.2 comm 0.2.1 cryptography 42.0.5 debugpy 1.8.1 decorator 5.1.1 defusedxml 0.7.1 exceptiongroup 1.2.0 executing 2.0.1 fastjsonschema 2.19.1 fqdn 1.5.1 greenlet 3.0.3 h11 0.14.0 httpcore 1.0.4 httpx 0.27.0 idna 3.6 importlib_metadata 7.0.2 ipykernel 6.29.3 ipython 8.18.1 isoduration 20.11.0 jedi 0.19.1 Jinja2 3.1.3 json5 0.9.22 jsonpointer 2.4 jsonschema 4.21.1 jsonschema-specifications 2023.12.1 jupyter_client 8.6.0 jupyter_core 5.7.1 jupyter-events 0.9.0 jupyter-lsp 2.2.4 jupyter_server 2.13.0 jupyter_server_terminals 0.5.2 jupyter-telemetry 0.1.0 jupyterhub 4.0.2 jupyterlab 4.1.4 jupyterlab_pygments 0.3.0 jupyterlab_server 2.25.3 Mako 1.3.2 MarkupSafe 2.1.5 matplotlib-inline 0.1.6 mistune 3.0.2 nbclient 0.7.4 nbconvert 7.16.2 nbformat 5.9.2 nest-asyncio 1.6.0 notebook 7.1.1 notebook_shim 0.2.4 oauthlib 3.2.2 overrides 7.7.0 packaging 23.2 pamela 1.1.0 pandocfilters 1.5.1 parso 0.8.3 pexpect 4.9.0 pip 24.0 platformdirs 4.2.0 prometheus_client 0.20.0 prompt-toolkit 3.0.43 psutil 5.9.8 ptyprocess 0.7.0 pure-eval 0.2.2 pycparser 2.21 Pygments 2.17.2 pyOpenSSL 24.0.0 python-dateutil 2.9.0.post0 python-json-logger 2.0.7 PyYAML 6.0.1 pyzmq 25.1.2 referencing 0.33.0 requests 2.31.0 rfc3339-validator 0.1.4 rfc3986-validator 0.1.1 rpds-py 0.18.0 ruamel.yaml 0.18.6 ruamel.yaml.clib 0.2.8 Send2Trash 1.8.2 setuptools 50.3.2 six 1.16.0 sniffio 1.3.1 soupsieve 2.5 SQLAlchemy 2.0.28 stack-data 0.6.3 sudospawner 0.5.2 terminado 0.18.0 tinycss2 1.2.1 tomli 2.0.1 tornado 6.4 traitlets 5.14.1 types-python-dateutil 2.8.19.20240106 typing_extensions 4.10.0 uri-template 1.3.0 urllib3 2.2.1 wcwidth 0.2.13 webcolors 1.13 webencodings 0.5.1 websocket-client 1.7.0 websockets 12.0 zipp 3.17.0 ```