Closed
Description
Preconditions
- Magento 2.1.8 EE
Steps to reproduce
- Install Magento 2.1.8
- Create a new product with a SKU "foobar", make sure to upload at least 1 product image and select it as the Base Image, Small Image, Thumbnail Image, lastly, also make sure to give it a tier price. For this example Lets say a tier price for a Qty of 3, All groups (price amount doesn't matter).
- Navigate to
System -> Integration
and create a new Integration with full access. - With our new integration, make a curl request to delete the tier price, using the store code
all
(NOTdefault
, that works just fine).
Example:
curl -X DELETE "http://magento2.1.8.localhost/rest/all/V1/products/foobar/group-prices/all/tiers/3" -H "Content-Type:application/json" -H "Authorization: Bearer uj36s49yvgejtg4j0hwuq3q2o1iwsr9u"
Expected result
- The tier price for a quantity of 3 should be deleted from the product, and nothing else.
Actual result
- The tier price for a quantity of 3 is deleted from the product, AND all the image selections for the product are deleted as well. (Images are still part of the product's image gallery, but the selections are lost).
Additional Info
- Further tests show that the POST operation for this API endpoint has the same issue.
/rest/all/
will wipe out a product's image selections whereas/rest/default
does not.
Metadata
Metadata
Assignees
Labels
The issue has been fixed in 2.2 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 development