#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.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/0107019265ed66ae-83075309-d46f-4b21-820c-a229788c61a4-000000%40eu-central-1.amazonses.com.

Reply via email to