Uploaded image for project: 'Airavata'
  1. Airavata
  2. AIRAVATA-3702

User input files renamed with random extension when experiment launched

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • Django Portal
    • None
    • Easy

    Description

      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.

      Attachments

        Issue Links

          Activity

            People

              marcuschristie Marcus Christie
              marcuschristie Marcus Christie
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated: