Skip to content

Database Media Storage - Admin Product Edit page does not handle product images correctly in database storage mode #21604

Closed
@gwharton

Description

@gwharton

Preconditions (*)

  1. Magento 2.2-develop or 2.3-develop

Steps to reproduce (*)

  1. Vanilla install of 2.2-develop or 2.3-develop
  2. Change mode to database storage, synchronise and save settings
  3. Add new product and assign an image
  4. Save the product
  5. Verify that the image is present in the filesystem (2.3-develop will fail this test due to [2.3] Database Media Storage - New Product Images fail to be processed correctly #21546. Don't worry, carry on the test as we are going to clear the images anyway in Step 8)
  6. Edit the product and view the images section. Verify image displays correctly in the images and videos section. (2.3-develop will fail this test due to [2.3] Database Media Storage - New Product Images fail to be processed correctly #21546. Don't worry, carry on the test as we are going to clear the images anyway in Step 8)
  7. Now simulate running on a new node in a cluster by clearing pub/media/catalog
  8. Now refresh the product edit page.
  9. Verify that the product image is still shown correctly

Expected result (*)

  1. When the admin page is refreshed, Magento should realise we are in database storage mode, and see that the image does not exist locally in pub/media/catalog. It should be copied from the database to local storage and then should be displayed on the product edit page.

Actual result (*)

  1. Placeholder image is shown with 0 size.

Metadata

Metadata

Assignees

Labels

Component: CatalogFixed in 2.2.xThe issue has been fixed in 2.2 release lineFixed in 2.3.xThe issue has been fixed in 2.3 release lineIssue: Clear DescriptionGate 2 Passed. Manual verification of the issue description passedIssue: 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 developmentProgress: PR CreatedIndicates that Pull Request has been created to fix issueReproduced on 2.2.xThe issue has been reproduced on latest 2.2 releaseReproduced on 2.3.xThe issue has been reproduced on latest 2.3 release

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions