#35740: file_storage.tests.FileFieldStorageTests.test_extended_length_storage fails
when bcachefs is in use
-------------------------------------+-------------------------------------
Reporter: Alyssa Ross | Owner: (none)
Type: Bug | Status: closed
Component: File | Version: 4.2
uploads/storage |
Severity: Normal | Resolution: needsinfo
Keywords: | Triage Stage:
| Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Sarah Boyce):
* resolution: => needsinfo
* status: new => closed
Comment:
Increasing the `max_length` for `extended_length` might work but I can't
find what this number should be for [
https://bcachefs.org/ bcachefs].
{{{#!diff
--- a/tests/file_storage/models.py
+++ b/tests/file_storage/models.py
@@ -80,5 +80,5 @@ class Storage(models.Model):
storage=temp_storage, upload_to="tests", max_length=20
)
extended_length = models.FileField(
- storage=temp_storage, upload_to="tests", max_length=300
+ storage=temp_storage, upload_to="tests", max_length=2000
)
}}}
Can you share what `_storage_max_filename_length` returns for you?
--
Ticket URL: <
https://code.djangoproject.com/ticket/35740#comment:4>
Django <
https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.