Skip to content

Database Media Storage - Design Config fails to save transactional email logo correctly #21672

@gwharton

Description

@gwharton

Preconditions (*)

  1. 2.2-develop or 2.3-develop

Steps to reproduce (*)

  1. Setup Magento
  2. Change media storage mode to database
  3. Synchronize
  4. Save Settings
  5. Content->Configuration->Edit->Transactional Emails
  6. Upload New Image (but don't save)
  7. Verify temporary email logo exists in pub/media
  8. Verify temporary email logo exists in database
  9. Save Config
  10. Verify email logo exists in pub/media
  11. Verify email logo exists in database

Expected result (*)

  1. After saving the config, the email logo image should be present in both database and filesystem

Actual result (*)

  1. Email logo is not present in database

Step 7

www-data@dev:~/dev2$ find pub/media -name *.jpg
pub/media/tmp/design/file/Forklift.200x100.jpg

Step 8

www-data@dev:~/dev2$ mysql dev2_magento -e "select filename,directory from media_storage_file_storage"
+----------------------------------+-----------------+
| filename                         | directory       |
+----------------------------------+-----------------+
| preview_image_5c85077ebb298.jpeg | theme/preview   |
| preview_image_5c85077ed85e1.jpeg | theme/preview   |
| Forklift.200x100.jpg             | tmp/design/file |
+----------------------------------+-----------------+

Step 10

www-data@dev:~/dev2$ find pub/media -name *.jpg
pub/media/email/logo/stores/1/Forklift.200x100.jpg

Step 11

www-data@dev:~/dev2$ mysql dev2_magento -e "select filename,directory from media_storage_file_storage"
+----------------------------------+-----------------+
| filename                         | directory       |
+----------------------------------+-----------------+
| preview_image_5c85077ebb298.jpeg | theme/preview   |
| preview_image_5c85077ed85e1.jpeg | theme/preview   |
| Forklift.200x100.jpg             | tmp/design/file |
+----------------------------------+-----------------+

Step 11 has failed. The file is still in the database in the temporary location. It was not changed when the config was saved.

Metadata

Metadata

Assignees

Labels

Component: ConfigFixed 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