-
Notifications
You must be signed in to change notification settings - Fork 62
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
Allow "save as" to save notebooks using absolute path #254
Comments
@divyansshhh, could you give more detail to the issue you are running into? This issue may also be helpful to understand absolute vs relative paths in jupyter_server. |
I would need to check the code again but historically this is not possible for two reasons:
Technically this also poses a number of challenges, many of the API requests contain the path in the URL, and thus going "above" the root would either require
So I doubt in the long term it will be done. |
From from discussion, in @divyansshhh case the server are started from the root of the FS, so we are refering both to the root of the server and the root of the FS (which in case is the same). So fixing UI to accept things starting with |
I am not able to reproduce this when the root of the host FileSystem is the same as the root of the server. I am only able to reproduce an error when they are different. This is with jupyter server version 1.19.1 and the main branch (f9e5b2b) of nbclassic. |
We have certain use cases where the two values will be different. So it would be useful to fix this for those cases. FTR - we are using jupyter-server 2.7.0 and nbclassic 0.5.6 |
Just as a clarification, if the root of the filesystem and the First, a patch will be refused by the Jupyter Core team and any such behavior would be considered a security vulnerability and an emergency released issued to removed this vulnerability. (Disclaimer I'm on the Jupyter Security Committee) Second, accessing anything above Beyond this there are technical challenges. Moving above the server root will also hit browser limitations (ie a browser will collapse The recommended pattern if you wish to have access to the whole filesystem, then you should set the server root to |
Currently the "save as" widget accepts path relative to the notebook dir. Can we allow saving of notebooks using the absolute path?
The text was updated successfully, but these errors were encountered: