-
Notifications
You must be signed in to change notification settings - Fork 324
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
Normalize os_path #886
Normalize os_path #886
Conversation
This also transforms the path to an absolute path, which we may not want. |
My bad, it doesn't. |
Oh cool! Thanks for checking |
I don't have the rights for adding labels. Maybe a |
It would be amazing if this could be backported to a |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
@meeseeksdev please backport to 1.x |
Co-authored-by: martinRenou <[email protected]>
Thank you! |
Bumping urgency of a patch release soon: the issue also affects |
In progress now |
This fixes an issue causing access to local files in Voila considered forbidden:
Accessing a file
./jupyter.svg
in Voila (jupyter.svg
being under the root_dir) results in a:This was because the root_dir was set to
/home/martin/github/voila/tests/notebooks
and the path/home/martin/github/voila/tests/notebooks/./jupyter.svg
was considered "hidden" by jupyter_server, while it's not. Normalizing the path fixes it.