#35817: Regression in default_storage.save(path, source)
-----------------------+------------------------------------------------
Reporter: Caram | Type: Bug
Status: new | Component: File uploads/storage
Version: 5.1 | Severity: Release blocker
Keywords: | Triage Stage: Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-----------------------+------------------------------------------------
I've just upgraded from 5.0.1 to 5.1 and my users have just been hit by
this regression/feature in `django/core/files/storage/base.py`.
2 new calls have been made to `validate_file_name()` inside `save()`. And
this checks in particular that the path is not absolute - which it is in
my case and it needs to be so, because I'm (intentionally) saving files to
a different part of the filesystem.
This code had been working fine for ages and now it's broken.
Here is I believe a link to the culprit patch:
https://github.com/django/django/commit/fe4a0bbe2088d0c2b331216dad21ccd0bb3ee80d
#diff-2f8524035203a28c596eb210d5b886a12d5a46215a649bee85f9987cc335d128L36
--
Ticket URL: <
https://code.djangoproject.com/ticket/35817>
Django <
https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.