-
-
Notifications
You must be signed in to change notification settings - Fork 33.1k
Fixed #31912 -- Removed strict=True in Path.resolve() in project template and CommonPasswordValidator. #13352
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
Conversation
I don't understand how this this can even occur. How can one have access to |
@MarkusH, in your example, the problem is for example that you don't have access to |
Yes, I get it. But how do I get to such a config? $ sudo ls -laR /tmp/foo
/tmp/foo:
total 0
drwx------ 3 root root 60 Aug 27 09:43 .
drwxrwxrwt 29 root root 1340 Aug 27 09:44 ..
drwxr-xr-x 2 markus markus 60 Aug 27 09:44 bar
/tmp/foo/bar:
total 4
drwxr-xr-x 2 markus markus 60 Aug 27 09:44 .
drwx------ 3 root root 60 Aug 27 09:43 ..
-rw-r--r-- 1 markus markus 12 Aug 27 09:44 buz.txt
$ sudo cat /tmp/foo/bar/buz.txt
hello world
$ ls -laR /tmp/foo
ls: cannot open directory '/tmp/foo': Permission denied
$ cat /tmp/foo/bar/buz.txt
cat: /tmp/foo/bar/buz.txt: Permission denied |
@MarkusH it's possible with a parent directory that's owned by root, and has executable flag set for the group but not the read flag. The executable flag allows traversal of children, but not listing of the parent:
|
@felixxm There other instances of |
This was my question. (Didn't have time to really think about it yet. Technically On holiday™) |
@MarkusH I reproduced this issue with:
|
I'm not sure, I really have many issues with creating a testable Django project in such configuration 😞 |
Thanks @adamchainz. That's what I was missing. |
OK, I'm inclined to say we can leave it unless an actual bug arises. Two occurrences:
On the other hand, Inclined to leave it since it's the smaller change, but not strongly attached to that. |
Yes, please ✔️ Reporter confirmed that everything works for them with this small patch.
Also, this was changed in Django 3.0 and we didn't get any related report.
IMO, we can leave it. |
I think we should fix the settings file at least - if there's any chance this would trip up a beginner, they might give up and go to the Node.js side. |
Many thanks for the support on this, much appreciated! Just for your information, I use https://www.mydevil.net/ which offers partially managed environment suited very much for Django. A lot of people use it for this purpose and this fix helps all of them. |
@adamchainz Done. |
This caused permission errors when user didn't have permissions to all parents directories of Django installation path.
Thanks tytusd and leonyxz for reports.
Regression in edeec12 and 26554cf.
ticket-31912