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

Serving root disk on Windows get's Access Denied in 0.12.* #1129

Open
danny0838 opened this issue Feb 9, 2019 · 1 comment
Open

Serving root disk on Windows get's Access Denied in 0.12.* #1129

danny0838 opened this issue Feb 9, 2019 · 1 comment

Comments

@danny0838
Copy link

danny0838 commented Feb 9, 2019

When serving disk root on Windows such as T:\ bottle always returns access denied when using static_file.

Below line needs fixed:

bottle/bottle.py

Line 2465 in 246c1f6

root = os.path.abspath(root) + os.sep

This seems to be done in 0.13, but it is not yet released, package installation via pip gets only 0.12.* and is vulnerable to this issue. Could you release a hotfix version in 0.12.* if 0.13.* won't be released soon?

@danny0838
Copy link
Author

Hello. I see you released 0.12.17 recently. Could you do a favor and provide a hotfix for this issue if 0.13.* is not ready yet?

Just change this line:

bottle/bottle.py

Line 2465 in 246c1f6

root = os.path.abspath(root) + os.sep

to:

root = os.path.join(os.path.abspath(root), '')

like 0.13 have done.

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

No branches or pull requests

1 participant