| Age | Commit message (Collapse) | Author |
|
default_storage.
Backport of ef85b6bf0bc5a8b194f0724cf5bbedbcee402b96 from main
|
|
|
|
|
|
Thanks Paolo Melchiorre, Carlton Gibson, and Mariusz Felisiak for
reviews.
|
|
|
|
Remaining test case ensures that uses of the alias are mapped
canonically by the migration writer.
|
|
|
|
|
|
Thanks to Dennis Brinkrolf for the report.
|
|
appropriate.
|
|
broken symlink with the same name exists.
|
|
- Validate filename returned by FileField.upload_to() not a filename
passed to the FileField.generate_filename() (upload_to() may
completely ignored passed filename).
- Allow relative paths (without dot segments) in the generated filename.
Thanks to Jakub Kleň for the report and review.
Thanks to all folks for checking this patch on existing projects.
Thanks Florian Apolloner and Markus Holtermann for the discussion and
implementation idea.
Regression in 0b79eb36915d178aef5c6a7bbce71b1e76d376d3.
|
|
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.
|
|
|
|
|
|
|
|
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.
|
|
|
|
|
|
|
|
|
|
|