django.core.files.storage.base.Storage.get_available_name and get_alternative_name assumes that filenames contain only one dot: the dot of the extension.
If I have a file named 'a.b.pdf'
then get_alternative_name would return 'a_{random}.b.pdf'
which is not correct.
the random string should between the filename and the actual extension: 'a.b_{random}.pdf'.
Change History
(4)
| Owner: |
set to Vishy Algo
|
| Status: |
new → assigned
|
| Resolution: |
→ duplicate
|
| Status: |
assigned → closed
|
| Summary: |
django.core.files.storage.base.Storage.get_availabe_name and get_alternative_name assumes that filenames contain only one dot: the dot of the extenstion. → django.core.files.storage.base.Storage.get_available_name and get_alternative_name assumes that filenames contain only one dot: the dot of the extension.
|
Hi, thanks for the report. If there is an issue here, I think it would be addressed by #35818, which I will reopen.