Hi,
Another user today has reported a similar problem when they tried to upload a file in a review request. The error log is similar to the image I attached in the original email. I decide to have a deep look in the code and it seemed like it may be a Django problem.
The error message is: Could not find backend 'builtin': builtin doesn't look like a module path
That error is raised in this file /venv/lib/python3.11/site-packages/django/core/files/storage/handler.py
For some reason, after upgrading from 5.0.5 to 7.0.1, the default storage backend has been changed from "django.core.files.storage.FileSystemStorage" to "builtin". Even if I explicitly override that setting in a review site's settings.py, Django does not seem to pick up my configuration and continues to use "builtin". This is what I've specified in settings.py:
STORAGES = {
"default": {
"BACKEND": "django.core.files.storage.FileSystemStorage"
},
"staticfiles": {
"BACKEND": "djblets.pipeline.storage.PipelineStorage"
}
}
The only way that I've managed to work around this is by adding this block of code after self._backends = settings.STORAGES.copy() in the backends method in /venv/lib/python3.11/site-packages/django/core/files/storage/handler.py:
self._backends[DEFAULT_STORAGE_ALIAS] = {
"BACKEND": "django.core.files.storage.FileSystemStorage"
}
Can you please investigate further to see if this is a reviewboard bug or a Django bug?
Thank you,
Huy