-
Notifications
You must be signed in to change notification settings - Fork 9.4k
/V1/products/{sku}/media does not assign roles correctly #21736
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
Comments
Hi @giacmir. Thank you for your report.
Please make sure that the issue is reproducible on the vanilla Magento instance following Steps to reproduce. To deploy vanilla Magento instance on our environment, please, add a comment to the issue:
For more details, please, review the Magento Contributor Assistant documentation. @giacmir do you confirm that you was able to reproduce the issue on vanilla Magento instance following steps to reproduce?
|
@magento-engcom-team give me 2.3-develop instance |
Hi @giacmir. Thank you for your request. I'm working on Magento 2.3-develop instance for you |
Hi @giacmir, here is your Magento instance. |
Hi @engcom-backlog-nazar. Thank you for working on this issue.
|
Hi @giacmir thank you for you report, this issue has already fixed in 2.3-develop branch. |
Hi @engcom-backlog-nazar I actually tried that on the provided 2.3-develop instance yesterday and reproduced it. Was it fixed today? |
@giacmir can you share with your payloads ? |
@engcom-backlog-nazar sure thing: payload 1 {
"entry": {
"media_type": "image",
"label": "First",
"position": "0",
"disabled": 1,
"types": [
"thumbnail",
"image",
"small_image"
],
"file": "first_file.jpg",
"content": {
"base64_encoded_data": "<base64 encoded image goes here>",
"type": "image\/jpeg",
"name": "first_file.jpg"
},
"extension_attributes": []
}
} payload 2 {
"entry": {
"media_type": "image",
"label": "Second",
"position": "1",
"disabled": 0,
"types": [],
"file": "second_file.jpg",
"content": {
"base64_encoded_data": "<base64 data goes here>",
"type": "image\/jpeg",
"name": "second_file.jpg"
},
"extension_attributes": []
}
} Thank you |
@giacmir this only appears if you set all 3 types, but with 2 types works correct. and only for for first 2 images. |
✅ Confirmed by @engcom-backlog-nazar Issue Available: @engcom-backlog-nazar, You will be automatically unassigned. Contributors/Maintainers can claim this issue to continue. To reclaim and continue work, reassign the ticket to yourself. |
@magento-engcom-team give me 2.3-develop instance |
Hi @Al3ks73. Thank you for your request. I'm working on Magento 2.3-develop instance for you |
Hi @Al3ks73, here is your Magento instance. |
Hi @shikhamis11. Thank you for working on this issue.
|
Hi @irajneeshgupta. Thank you for working on this issue.
|
I am working on this at #dmcdindia1 |
@magento-engcom-team give me 2.3-develop instance |
Hi @irajneeshgupta. Thank you for your request. I'm working on Magento 2.3-develop instance for you |
Hi @irajneeshgupta, here is your Magento instance. |
This issue has already been resolved in 2.3.1 |
Unfortunately, we are archiving this ticket now as it did not get much attention from both Magento Community and Core developers for an extended period. This is done in an effort to create a quality, community-driven backlog which will allow us to allocate the required attention more easily. Please feel free to comment or reopen according to the Issue reporting guidelines |
When uploading media gallery images via API the last inserted one gets all roles (small_image, base, thumbnail) even if not required to and another image already has them assigned.
Preconditions (*)
Steps to reproduce (*)
3.Verify in backend that the new image has all three roles
Expected result (*)
2.The first image should have maintained its assigned roles
Actual result (*)
The text was updated successfully, but these errors were encountered: