#35604: Unexpected behaviour of FileSystemStorage.exists() due to latest changes -------------------------------------+------------------------------------- Reporter: Stefan Hammer | Owner: Sarah | Boyce Type: Bug | Status: closed Component: File | Version: 5.1 uploads/storage | Severity: Release blocker | Resolution: fixed Keywords: | Triage Stage: Ready for | checkin Has patch: 1 | Needs documentation: 0 Needs tests: 0 | Patch needs improvement: 0 Easy pickings: 0 | UI/UX: 0 -------------------------------------+------------------------------------- Comment (by Sarah Boyce <42296566+sarahboyce@…>):
In [changeset:"e42defb63b765b589fb8ef54e2d6773999d41939" e42defb]: {{{#!CommitTicketReference repository="" revision="e42defb63b765b589fb8ef54e2d6773999d41939" [5.1.x] Fixed #35604, Refs #35326 -- Made FileSystemStorage.exists() behaviour independent from allow_overwrite. Partially reverts 0b33a3abc2ca7d68a24f6d0772bc2b9fa603744e. Storage.exists(name) was documented to "return False if the name is available for a new file." but return True if the file exists. This is ambiguous in the overwrite file case. It will now always return whether the file exists. Thank you to Natalia Bidart and Josh Schneier for the review. Backport of 8d6a20b656ff3fa18e36954668a44a831c2f6ddd from main. }}} -- Ticket URL: <https://code.djangoproject.com/ticket/35604#comment:6> 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 django-updates+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/django-updates/01070190e4d36f68-6957d655-0471-46b2-b557-d47c8a047c15-000000%40eu-central-1.amazonses.com.