Uploaded image for project: 'Artifactory Binary Repository'
  1. Artifactory Binary Repository
  2. RTFACT-23485

Archive entry download includes the entry path in the filename

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Done
    • Priority: 3 - High
    • Resolution: Done
    • Affects Version/s: 7.7.8
    • Fix Version/s: 7.12.5
    • Component/s: None
    • Labels:
    • Severity:
      High
    • Regression:
      Yes
    • Release Notes:
      Yes

      Description

      Archive entry download includes the entry path in the filename - This happens because the Content-Disposition header includes the file path and file name instead of just the filename

      Steps to reproduce: 

      1. Create a .zip file that contains a directory with a fie. 
        For example -> test.zip -> testdir–> test2.zip 
      2.  Upload to Artifactory (it can be done using the UI) 
      3. Download the test2.zip  file using the Platform UI. 
        Using the browser developer tools shows the wrong response that should include only the filename. 
       Content-Disposition: attachment; filename="passport-to-fusionauth/mysql.sql"; filename*=UTF-8''passport-to-fusionauth/mysql.sql
      1. The result of the downloaded file is - testdir_test2.zip instead of test2.zip
        Kindly see attached screenshot as well: 

        Attachments

          Activity

              People

              Assignee:
              Oleksis Oleksii Semenov [EXT]
              Reporter:
              noyb Noy Badani
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Sync Status

                  Connection: RTFACT Sync
                  RTMID-23485 -
                  SYNCHRONIZED
                  • Last Sync Date: