Closed
Description
After upgrading from Magento 2.1.7 to 2.1.8 we had problems with product image roles. We have experienced that some products that previously had product image role set to base
, small
, thumbnail
didn't have it anymore. It seems that the image roles get's removed from random products over time. This weekend at we have at least identified 10 products that got images roles removed during the weekend.
Preconditions
- Magento 2.1.8
- PHP 7
- MySQL 5.7
- Ubuntu 16.04
- Nginx
- Redis
- Varnish
- SSL (HTTPS)
Steps to reproduce
- Go to "Products" > "Catalog"
- Choose a product
- Go to "Images And Videos"
- Click an image
- Set "Role" to
base
,small
,thumbnail
Expected result
- Product image roles should be set to
base
,small
,thumbnail
unless the user changes it.
Actual result
- Product image roles disappear randomly from some products from time to time.
Short way to reproduce:
Preconditions
Create product with image and set role image: base
, small
, thumbnail
Steps to reproduce
Save Product in backend controller like this:
$store = $this->storeManager->getStore(0);
$this->storeManager->setCurrentStore($store);
$product = $this->productRepository->getById($data['product_id'], true, $store->getId());
$this->productRepository->save($product);
Expected result
Product image roles should be set to base
, small
, thumbnail
unless the user changes it.
Actual result
Product image does not have any roles
Metadata
Metadata
Assignees
Labels
The issue has been fixed in 2.1 release lineThe issue has been fixed in 2.2 release lineThe issue has been fixed in 2.3 release lineGate 2 Passed. Manual verification of the issue description passedGate 3 Passed. Manual verification of the issue completed. Issue is confirmedGate 1 Passed. Automatic verification of issue format passedGate 4. Acknowledged. Issue is added to backlog and ready for developmentThe issue has been reproduced on latest 2.1 releaseThe issue has been reproduced on latest 2.2 releaseThe issue has been reproduced on latest 2.3 release