Marcus Christie created AIRAVATA-3702:
-----------------------------------------
Summary: User input files renamed with random extension when
experiment launched
Key: AIRAVATA-3702
URL: https://issues.apache.org/jira/browse/AIRAVATA-3702
Project: Airavata
Issue Type: Bug
Components: Django Portal
Reporter: Marcus Christie
Assignee: Marcus Christie
When a user uploads an input file, that files goes into a staging directory
(the user's "tmp" directory). If a user uploads two input files with the same
name, the second one will be renamed with some random characters added to the
end of the name (see
https://docs.djangoproject.com/en/4.2/ref/files/storage/#django.core.files.storage.Storage.get_alternative_name).
However, the original name of the file should be stored in the replica_catalog
and when the file is moved out of the staging directory and into the experiment
data directory, it should be renamed back to the original, user-supplied
filename. That's failing to happen.
Actually, it looks like the root of the problem is that the randomized filename
is getting stored in replica_catalog.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)