Skip to content

different backup download links on backups page all point to the same file/url of the last backup #5968

Closed
@nldudok1

Description

@nldudok1

When you make multiple backups they all show up on the backups page. They all have a clickable link so you can download the backup file. Each link should be unique and point to that specific backup. But all links are the same and all point only to the last backup.

Preconditions

  1. Magento 2.1.0 freshinstall Magento-CE-2.1.0-2016-06-23-02-28-50.tar.bz2
  2. PHP 5.6.23-0+deb8u1 (cli) (built: Jul 12 2016 07:33:16)
  3. Apache 2.4
  4. debian 8.5
  5. mysql --version
    mysql Ver 15.1 Distrib 10.0.25-MariaDB, for debian-linux-gnu (x86_64) using readline 5.2

Steps to reproduce

  1. Go to System/backup
  2. Create a system backup
  3. Create a database backup
  4. Create another database backup
    Now you should have three unique backups. But the .tgz and .sql links on each line all point to the last backup, which is in this case a .sql file of the second database backup.

Expected result

  1. All links should be unique and result in downloading the backup you selected.

Actual result

  1. See screenshots. In the first screenshot I hover over the .tgz link of the last backup. See the url at the bottom of the screenshot. In screenshot 2, I hover over the .tgz link of the second backup. See that the url is the same. In screenshot 3 you see that when I click the .tgz link, I actually download the .sql file of the last backup. (EDIT: I now see that the screenshot did not actually show the url in the bottombar, so you will just have to try yourself)
    screenshot magento backup link 1 from 2016-08-03 18 30 34
    screenshot magento backup link 2 from 2016-08-03 18 30 55
    screenshot magento backup link download from 2016-08-03 18 31 28

[Screenshot, logs]

Metadata

Metadata

Assignees

Labels

Fixed in 2.3.xThe issue has been fixed in 2.3 release lineIssue: ConfirmedGate 3 Passed. Manual verification of the issue completed. Issue is confirmedIssue: Format is validGate 1 Passed. Automatic verification of issue format passedIssue: Ready for WorkGate 4. Acknowledged. Issue is added to backlog and ready for developmentReproduced on 2.1.xThe issue has been reproduced on latest 2.1 releaseReproduced on 2.2.xThe issue has been reproduced on latest 2.2 releasebug reporthelp wanted

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions