-
Notifications
You must be signed in to change notification settings - Fork 9.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[2.3] magento catalog:images:resize now Database Media Storage mode aware (Again!) #23913
[2.3] magento catalog:images:resize now Database Media Storage mode aware (Again!) #23913
Conversation
Hi @gwharton. Thank you for your contribution
For more details, please, review the Magento Contributor Assistant documentation |
…ase if it does not exist locally. New integration test.
Hi @ihor-sviziev, thank you for the review.
|
✔️ QA Passed |
…torage mode aware (Again!) magento#23913
Hi @gwharton, thank you for your contribution! |
Description (*)
Changes introduced in MC-17218: php bin/magento catalog:image:resize error if image is missing (6a694a9) broke the functionality that was previously fixed in PR #23598 which means that the catalog:images:resize command no longer functions as expected in database media storage mode when the file does not exist locally.
This PR corrects that.
Fixed Issues (if relevant)
Manual testing scenarios (*)
Test Scenareo 1 - Normal Local Filesystem Mode
Verify image exists in filesystem
Regenerate images
Delete pub/media/catalog folder
Regenerate images
This is the expected behaviour. The image fails to be processed because it doesnt exist. The resize command fails gracefully with the correct error message, as introduced in MC-17218.
Test Scenareo 2 - Database Media Storage Mode
Verify image exists in filesystem
Verify image exists in database
Regenerate images
Delete pub/media/catalog folder
Regenerate images
Verify image exists in filesystem
This is the expected behaviour. The resize command completed correctly after downloading the image from the database to the local storage for processing.
Contribution checklist (*)