[
https://issues.apache.org/jira/browse/AIRAVATA-3702?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17743836#comment-17743836
]
ASF subversion and git services commented on AIRAVATA-3702:
-----------------------------------------------------------
Commit 3a6edf04d58244e5092315dd26afaccc9b60a39e in airavata-django-portal-sdk's
branch refs/heads/master from Marcus Christie
[
https://gitbox.apache.org/repos/asf?p=airavata-django-portal-sdk.git;h=3a6edf0 ]
AIRAVATA-3702 Preserve original filename of input file when it has the same name
> 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
> Priority: Major
>
> 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)