| Age | Commit message (Collapse) | Author |
|
The validate_file_name() sanitation introduced in
0b79eb36915d178aef5c6a7bbce71b1e76d376d3 correctly rejects the example
file name as containing path elements on Windows. This breaks the test
introduced in 914c72be2abb1c6dd860cb9279beaa66409ae1b2 to allow path
components for storages that may allow them.
Test is skipped pending a discussed storage refactoring to support this
use-case.
Backport of a708f39ce67af174df90c5b5e50ad1976cec7cb8 from main
|
|
file uploads.
|
|
|
|
static and storage directories on Python 3.7+.
Thanks WhiteSage for the report.
|
|
Co-authored-by: miigotu <miigotu@gmail.com>
|
|
|
|
|
|
|
|
|
|
relative paths.
Thanks Florian Apolloner for reviews.
Co-authored-by: Joel Dunham <Joel.Dunham@technicalsafetybc.ca>
|
|
|
|
pathlib.Path.
|
|
|
|
exist_ok=True).
|
|
Used more specific errors (e.g. FileExistsError) as appropriate.
|
|
|
|
create the same directory.
Regression in 632c4ffd9cb1da273303bcd8005fff216506c795.
|
|
|
|
|
|
When running Django tests with Python warnings enabled.
|
|
|
|
|
|
|
|
|
|
TemporaryDirectory tries to delete the directory that was already removed.
|
|
|
|
|
|
|
|
|
|
These functions do nothing on Python 3.
|
|
|
|
Thanks Tim Graham for the review.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Thanks Simon Charette for review.
|
|
This reverts commit 1b407050dd53e56686fdd3e168f8cac4f9be8306 as it
introduces a regression in the test for refs #26772.
|
|
This reverts commit a52a531a8b34f049fba11c3ee7b010af7534bf90 due to
regressions described in refs #26772.
|
|
914c72be2abb1c6dd860cb9279beaa66409ae1b2 introduced a regression that
causes saving a NamedTemporaryFile in a FileField to raise a
SuspiciousFileOperation. To remedy this, if a File has an absolute
path as a filename, use only the basename as the filename.
|
|
|
|
the Storage.
|
|
|
|
|
|
Leading slashes in the second urljoin argument will return exactly that
argument, breaking FileSystemStorage.url behavior if called with a
parameter with leading slashes.
Also added test cases for null bytes and None. Thanks to Markus for
help and review.
|
|
|