Skip to content
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

Inconsistency in Product Image Import via Magento REST API #38644

Open
5 tasks
dtanh91 opened this issue Apr 21, 2024 · 6 comments
Open
5 tasks

Inconsistency in Product Image Import via Magento REST API #38644

dtanh91 opened this issue Apr 21, 2024 · 6 comments
Assignees
Labels
Issue: needs update Additional information is require, waiting for response Reported on 2.4.5 Indicates original Magento version for the Issue report.

Comments

@dtanh91
Copy link

dtanh91 commented Apr 21, 2024

Preconditions and environment

I'm using Magento 2.4.5. I'm importing products through Magento's REST API using the endpoint /rest/default/V1/products. Each product I insert has an image in base64 format. However, when running the import, some products have images while others don't. If I run it again, the results may change.
Param in post allway the same.

Steps to reproduce

For example, I have products A and B, both with images, but when running:
A has an image, B doesn't.
Running again, A has no image, B does.
Running again, neither A nor B have images.
Running again, both A and B have images.
And this cycle continues, sometimes A has an image while B doesn't, and vice versa.

Expected result

{"id":23,"sku":"CABLE-RCK601","name":"1x Elite Link Shift Kit / Silver","attribute_set_id":4,"price":999999999,"status":1,"visibility":4,"type_id":"simple","created_at":"2024-04-11 16:30:11","updated_at":"2024-04-21 05:39:22","weight":1,"extension_attributes":{"website_ids":[1],"category_links":[{"position":0,"category_id":"7"},{"position":0,"category_id":"9"}],"stock_item":{"item_id":23,"product_id":23,"stock_id":1,"qty":null,"is_in_stock":true,"is_qty_decimal":false,"show_default_notification_message":false,"use_config_min_qty":true,"min_qty":0,"use_config_min_sale_qty":1,"min_sale_qty":1,"use_config_max_sale_qty":true,"max_sale_qty":100000000,"use_config_backorders":true,"backorders":1,"use_config_notify_stock_qty":true,"notify_stock_qty":1,"use_config_qty_increments":true,"qty_increments":0,"use_config_enable_qty_inc":true,"enable_qty_increments":false,"use_config_manage_stock":true,"manage_stock":false,"low_stock_date":"2024-04-21 05:39:22","is_decimal_divided":false,"stock_status_changed_auto":0}},"options":[],"media_gallery_entries":[{"id":3780,"media_type":"image","label":"1x Elite Link Shift Kit / Silver","position":0,"disabled":false,"types":["image","small_image","thumbnail"],"file":"/n/e/netsuite_7709.jpg"}],"tier_prices":[{"customer_group_id":4,"qty":1,"value":81.9,"extension_attributes":{"website_id":0}},{"customer_group_id":5,"qty":1,"value":73.5,"extension_attributes":{"website_id":0}},{"customer_group_id":6,"qty":1,"value":73.5,"extension_attributes":{"website_id":0}},{"customer_group_id":7,"qty":1,"value":105,"extension_attributes":{"website_id":0}}],"custom_attributes":[{"attribute_code":"image","value":"/n/e/netsuite_7709.jpg"},{"attribute_code":"url_key","value":"1x-elite-link-shift-kit-silver"},{"attribute_code":"brands","value":"6"},{"attribute_code":"small_image","value":"/n/e/netsuite_7709.jpg"},{"attribute_code":"options_container","value":"container2"},{"attribute_code":"sub_category","value":"8"},{"attribute_code":"thumbnail","value":"/n/e/netsuite_7709.jpg"},{"attribute_code":"swatch_image","value":"no_selection"},{"attribute_code":"tax_class_id","value":"2"},{"attribute_code":"msrp_display_actual_price_type","value":"0"},{"attribute_code":"category_ids","value":["7","9"]},{"attribute_code":"required_options","value":"0"},{"attribute_code":"has_options","value":"0"},{"attribute_code":"image_label","value":"1x Elite Link Shift Kit / Silver"},{"attribute_code":"small_image_label","value":"1x Elite Link Shift Kit / Silver"},{"attribute_code":"brand","value":"JAGWIRE"},{"attribute_code":"thumbnail_label","value":"1x Elite Link Shift Kit / Silver"},{"attribute_code":"internal_id","value":"7709"}]}

Actual result

{"id":23,"sku":"CABLE-RCK601","name":"1x Elite Link Shift Kit / Silver","attribute_set_id":4,"price":999999999,"status":1,"visibility":4,"type_id":"simple","created_at":"2024-04-11 16:30:11","updated_at":"2024-04-21 05:44:59","weight":1,"extension_attributes":{"website_ids":[1],"category_links":[{"position":0,"category_id":"7"},{"position":0,"category_id":"9"}],"stock_item":{"item_id":23,"product_id":23,"stock_id":1,"qty":null,"is_in_stock":true,"is_qty_decimal":false,"show_default_notification_message":false,"use_config_min_qty":true,"min_qty":0,"use_config_min_sale_qty":1,"min_sale_qty":1,"use_config_max_sale_qty":true,"max_sale_qty":100000000,"use_config_backorders":true,"backorders":1,"use_config_notify_stock_qty":true,"notify_stock_qty":1,"use_config_qty_increments":true,"qty_increments":0,"use_config_enable_qty_inc":true,"enable_qty_increments":false,"use_config_manage_stock":true,"manage_stock":false,"low_stock_date":"2024-04-21 05:44:59","is_decimal_divided":false,"stock_status_changed_auto":0}},"options":[],"media_gallery_entries":[{"id":3780,"media_type":"image","label":"1x Elite Link Shift Kit / Silver","position":0,"disabled":false,"types":[],"file":"/n/e/netsuite_7709.jpg"}],"tier_prices":[{"customer_group_id":4,"qty":1,"value":81.9,"extension_attributes":{"website_id":0}},{"customer_group_id":5,"qty":1,"value":73.5,"extension_attributes":{"website_id":0}},{"customer_group_id":6,"qty":1,"value":73.5,"extension_attributes":{"website_id":0}},{"customer_group_id":7,"qty":1,"value":105,"extension_attributes":{"website_id":0}}],"custom_attributes":[{"attribute_code":"image","value":"no_selection"},{"attribute_code":"url_key","value":"1x-elite-link-shift-kit-silver"},{"attribute_code":"brands","value":"6"},{"attribute_code":"small_image","value":"no_selection"},{"attribute_code":"options_container","value":"container2"},{"attribute_code":"sub_category","value":"8"},{"attribute_code":"thumbnail","value":"no_selection"},{"attribute_code":"swatch_image","value":"no_selection"},{"attribute_code":"tax_class_id","value":"2"},{"attribute_code":"msrp_display_actual_price_type","value":"0"},{"attribute_code":"category_ids","value":["7","9"]},{"attribute_code":"required_options","value":"0"},{"attribute_code":"has_options","value":"0"},{"attribute_code":"image_label","value":"1x Elite Link Shift Kit / Silver"},{"attribute_code":"small_image_label","value":"1x Elite Link Shift Kit / Silver"},{"attribute_code":"brand","value":"JAGWIRE"},{"attribute_code":"thumbnail_label","value":"1x Elite Link Shift Kit / Silver"},{"attribute_code":"internal_id","value":"7709"}]}
Or somtime like this
{"id":23,"sku":"CABLE-RCK601","name":"1x Elite Link Shift Kit / Silver","attribute_set_id":4,"price":999999999,"status":1,"visibility":4,"type_id":"simple","created_at":"2024-04-11 16:30:11","updated_at":"2024-04-21 06:04:58","weight":1,"extension_attributes":{"website_ids":[1],"category_links":[{"position":0,"category_id":"7"},{"position":0,"category_id":"9"}],"stock_item":{"item_id":23,"product_id":23,"stock_id":1,"qty":null,"is_in_stock":true,"is_qty_decimal":false,"show_default_notification_message":false,"use_config_min_qty":true,"min_qty":0,"use_config_min_sale_qty":1,"min_sale_qty":1,"use_config_max_sale_qty":true,"max_sale_qty":100000000,"use_config_backorders":true,"backorders":1,"use_config_notify_stock_qty":true,"notify_stock_qty":1,"use_config_qty_increments":true,"qty_increments":0,"use_config_enable_qty_inc":true,"enable_qty_increments":false,"use_config_manage_stock":true,"manage_stock":false,"low_stock_date":"2024-04-21 06:04:58","is_decimal_divided":false,"stock_status_changed_auto":0}},"options":[],"media_gallery_entries":[],"tier_prices":[{"customer_group_id":4,"qty":1,"value":81.9,"extension_attributes":{"website_id":0}},{"customer_group_id":5,"qty":1,"value":73.5,"extension_attributes":{"website_id":0}},{"customer_group_id":6,"qty":1,"value":73.5,"extension_attributes":{"website_id":0}},{"customer_group_id":7,"qty":1,"value":105,"extension_attributes":{"website_id":0}}],"custom_attributes":[{"attribute_code":"image","value":"no_selection"},{"attribute_code":"url_key","value":"1x-elite-link-shift-kit-silver"},{"attribute_code":"brands","value":"6"},{"attribute_code":"small_image","value":"no_selection"},{"attribute_code":"options_container","value":"container2"},{"attribute_code":"sub_category","value":"8"},{"attribute_code":"thumbnail","value":"no_selection"},{"attribute_code":"swatch_image","value":"no_selection"},{"attribute_code":"tax_class_id","value":"2"},{"attribute_code":"msrp_display_actual_price_type","value":"0"},{"attribute_code":"category_ids","value":["7","9"]},{"attribute_code":"required_options","value":"0"},{"attribute_code":"has_options","value":"0"},{"attribute_code":"image_label","value":"1x Elite Link Shift Kit / Silver"},{"attribute_code":"small_image_label","value":"1x Elite Link Shift Kit / Silver"},{"attribute_code":"brand","value":"JAGWIRE"},{"attribute_code":"thumbnail_label","value":"1x Elite Link Shift Kit / Silver"},{"attribute_code":"internal_id","value":"7709"}]}

Additional information

No response

Release note

No response

Triage and priority

  • Severity: S0 - Affects critical data or functionality and leaves users without workaround.
  • Severity: S1 - Affects critical data or functionality and forces users to employ a workaround.
  • Severity: S2 - Affects non-critical data or functionality and forces users to employ a workaround.
  • Severity: S3 - Affects non-critical data or functionality and does not force users to employ a workaround.
  • Severity: S4 - Affects aesthetics, professional look and feel, “quality” or “usability”.
Copy link

m2-assistant bot commented Apr 21, 2024

Hi @dtanh91. Thank you for your report.
To speed up processing of this issue, make sure that the issue is reproducible on the vanilla Magento instance following Steps to reproduce. To deploy vanilla Magento instance on our environment, Add a comment to the issue:


Join Magento Community Engineering Slack and ask your questions in #github channel.
⚠️ According to the Magento Contribution requirements, all issues must go through the Community Contributions Triage process. Community Contributions Triage is a public meeting.
🕙 You can find the schedule on the Magento Community Calendar page.
📞 The triage of issues happens in the queue order. If you want to speed up the delivery of your contribution, join the Community Contributions Triage session to discuss the appropriate ticket.

@m2-community-project m2-community-project bot added this to Ready for Confirmation in Issue Confirmation and Triage Board Apr 21, 2024
@engcom-Dash engcom-Dash added the Reported on 2.4.5 Indicates original Magento version for the Issue report. label Apr 22, 2024
@engcom-Dash engcom-Dash self-assigned this Apr 22, 2024
Copy link

m2-assistant bot commented Apr 22, 2024

Hi @engcom-Dash. Thank you for working on this issue.
In order to make sure that issue has enough information and ready for development, please read and check the following instruction: 👇

    1. Verify that issue has all the required information. (Preconditions, Steps to reproduce, Expected result, Actual result).
    1. Verify that issue has a meaningful description and provides enough information to reproduce the issue.
    1. Add Area: XXXXX label to the ticket, indicating the functional areas it may be related to.
    1. Verify that the issue is reproducible on 2.4-develop branch
      Details- Add the comment @magento give me 2.4-develop instance to deploy test instance on Magento infrastructure.
      - If the issue is reproducible on 2.4-develop branch, please, add the label Reproduced on 2.4.x.
      - If the issue is not reproducible, add your comment that issue is not reproducible and close the issue and stop verification process here!

@dtanh91 dtanh91 closed this as completed Apr 22, 2024
@m2-community-project m2-community-project bot removed this from Ready for Confirmation in Issue Confirmation and Triage Board Apr 22, 2024
@dtanh91 dtanh91 reopened this Apr 22, 2024
@m2-community-project m2-community-project bot added this to Ready for Confirmation in Issue Confirmation and Triage Board Apr 22, 2024
@engcom-Dash engcom-Dash added the Issue: needs update Additional information is require, waiting for response label Apr 22, 2024
@m2-community-project m2-community-project bot moved this from Ready for Confirmation to Needs Update in Issue Confirmation and Triage Board Apr 22, 2024
@engcom-Dash
Copy link

Hi @dtanh91

Thanks for reporting and collaboration.

Can you please share the payload you have used. Would be helpful to reproduce the issue accurately.

Thanks.

@dtanh91
Copy link
Author

dtanh91 commented Apr 22, 2024

this is my payload
{"sku":"CABLE-RCK708","name":"Road Elite Link Brake Kit / Ltd. Purple","attribute_set_id":4,"price":999999999,"status":1,"visibility":4,"type_id":"simple","weight":1,"extension_attributes":{"stock_item":{"is_in_stock":true,"use_config_min_qty":true,"min_qty":1,"use_config_min_sale_qty":1,"backorders":1,"use_config_manage_stock":true}},"media_gallery_entries":[{"id":0,"media_type":"image","label":"Road Elite Link Brake Kit / Ltd. Purple","position":0,"disabled":false,"types":["image","small_image","thumbnail"],"file":"","content":{"base64_encoded_data":"base64","type":"image/jpeg","name":"netsuite_17736"},"extension_attributes":null}],"tier_prices":[{"customer_group_id":4,"qty":1,"value":81.9,"extension_attributes":{"percentage_value":0,"website_id":0}},{"customer_group_id":5,"qty":1,"value":73.5,"extension_attributes":{"percentage_value":0,"website_id":0}},{"customer_group_id":6,"qty":1,"value":73.5,"extension_attributes":{"percentage_value":0,"website_id":0}},{"customer_group_id":7,"qty":1,"value":105,"extension_attributes":{"percentage_value":0,"website_id":0}}],"custom_attributes":[{"attribute_code":"internal_id","value":"17736"},{"attribute_code":"brand","value":"JAGWIRE"},{"attribute_code":"brands","value":"6"},{"attribute_code":"sub_category","value":"175"}]}
and the result some time like this
{"id":2348,"sku":"CABLE-RCK708","name":"Road Elite Link Brake Kit \/ Ltd. Purple","attribute_set_id":4,"price":999999999,"status":1,"visibility":4,"type_id":"simple","created_at":"2024-04-13 23:19:20","updated_at":"2024-04-22 15:52:25","weight":1,"extension_attributes":{"website_ids":[1],"category_links":[{"position":0,"category_id":"7"},{"position":0,"category_id":"9"}],"stock_item":{"item_id":2348,"product_id":2348,"stock_id":1,"qty":null,"is_in_stock":true,"is_qty_decimal":false,"show_default_notification_message":false,"use_config_min_qty":true,"min_qty":0,"use_config_min_sale_qty":1,"min_sale_qty":1,"use_config_max_sale_qty":true,"max_sale_qty":100000000,"use_config_backorders":true,"backorders":1,"use_config_notify_stock_qty":true,"notify_stock_qty":1,"use_config_qty_increments":true,"qty_increments":0,"use_config_enable_qty_inc":true,"enable_qty_increments":false,"use_config_manage_stock":true,"manage_stock":false,"low_stock_date":"2024-04-22 15:52:25","is_decimal_divided":false,"stock_status_changed_auto":0}},"options":[],"media_gallery_entries":[{"id":3844,"media_type":"image","label":"Road Elite Link Brake Kit \/ Ltd. Purple","position":0,"disabled":false,"types":[],"file":"\/n\/e\/netsuite_17736.jpg"}],"tier_prices":[{"customer_group_id":4,"qty":1,"value":81.9,"extension_attributes":{"website_id":0}},{"customer_group_id":5,"qty":1,"value":73.5,"extension_attributes":{"website_id":0}},{"customer_group_id":6,"qty":1,"value":73.5,"extension_attributes":{"website_id":0}},{"customer_group_id":7,"qty":1,"value":105,"extension_attributes":{"website_id":0}}],"custom_attributes":[{"attribute_code":"image","value":"\/n\/e\/netsuite_17736.jpg"},{"attribute_code":"url_key","value":"road-elite-link-brake-kit-ltd-purple"},{"attribute_code":"brands","value":"6"},{"attribute_code":"small_image","value":"\/n\/e\/netsuite_17736.jpg"},{"attribute_code":"options_container","value":"container2"},{"attribute_code":"sub_category","value":"175"},{"attribute_code":"thumbnail","value":"\/n\/e\/netsuite_17736.jpg"},{"attribute_code":"swatch_image","value":"no_selection"},{"attribute_code":"tax_class_id","value":"2"},{"attribute_code":"msrp_display_actual_price_type","value":"0"},{"attribute_code":"category_ids","value":["7","9"]},{"attribute_code":"required_options","value":"0"},{"attribute_code":"has_options","value":"0"},{"attribute_code":"image_label","value":"Road Elite Link Brake Kit \/ Ltd. Purple"},{"attribute_code":"small_image_label","value":"Road Elite Link Brake Kit \/ Ltd. Purple"},{"attribute_code":"brand","value":"JAGWIRE"},{"attribute_code":"thumbnail_label","value":"Road Elite Link Brake Kit \/ Ltd. Purple"},{"attribute_code":"internal_id","value":"17736"}]}
or some time like this
{"id":2348,"sku":"CABLE-RCK708","name":"Road Elite Link Brake Kit \/ Ltd. Purple","attribute_set_id":4,"price":999999999,"status":1,"visibility":4,"type_id":"simple","created_at":"2024-04-13 23:19:20","updated_at":"2024-04-22 15:52:25","weight":1,"extension_attributes":{"website_ids":[1],"category_links":[{"position":0,"category_id":"7"},{"position":0,"category_id":"9"}],"stock_item":{"item_id":2348,"product_id":2348,"stock_id":1,"qty":null,"is_in_stock":true,"is_qty_decimal":false,"show_default_notification_message":false,"use_config_min_qty":true,"min_qty":0,"use_config_min_sale_qty":1,"min_sale_qty":1,"use_config_max_sale_qty":true,"max_sale_qty":100000000,"use_config_backorders":true,"backorders":1,"use_config_notify_stock_qty":true,"notify_stock_qty":1,"use_config_qty_increments":true,"qty_increments":0,"use_config_enable_qty_inc":true,"enable_qty_increments":false,"use_config_manage_stock":true,"manage_stock":false,"low_stock_date":"2024-04-22 15:52:25","is_decimal_divided":false,"stock_status_changed_auto":0}},"options":[],"media_gallery_entries":[{"id":3844,"media_type":"image","label":"Road Elite Link Brake Kit \/ Ltd. Purple","position":0,"disabled":false,"types":[],"file":"\/n\/e\/netsuite_17736.jpg"}],"tier_prices":[{"customer_group_id":4,"qty":1,"value":81.9,"extension_attributes":{"website_id":0}},{"customer_group_id":5,"qty":1,"value":73.5,"extension_attributes":{"website_id":0}},{"customer_group_id":6,"qty":1,"value":73.5,"extension_attributes":{"website_id":0}},{"customer_group_id":7,"qty":1,"value":105,"extension_attributes":{"website_id":0}}],"custom_attributes":[{"attribute_code":"image","value":"no_selection"},{"attribute_code":"url_key","value":"road-elite-link-brake-kit-ltd-purple"},{"attribute_code":"brands","value":"6"},{"attribute_code":"small_image","value":"no_selection"},{"attribute_code":"options_container","value":"container2"},{"attribute_code":"sub_category","value":"175"},{"attribute_code":"thumbnail","value":"no_selection"},{"attribute_code":"swatch_image","value":"no_selection"},{"attribute_code":"tax_class_id","value":"2"},{"attribute_code":"msrp_display_actual_price_type","value":"0"},{"attribute_code":"category_ids","value":["7","9"]},{"attribute_code":"required_options","value":"0"},{"attribute_code":"has_options","value":"0"},{"attribute_code":"image_label","value":"Road Elite Link Brake Kit \/ Ltd. Purple"},{"attribute_code":"small_image_label","value":"Road Elite Link Brake Kit \/ Ltd. Purple"},{"attribute_code":"brand","value":"JAGWIRE"},{"attribute_code":"thumbnail_label","value":"Road Elite Link Brake Kit \/ Ltd. Purple"},{"attribute_code":"internal_id","value":"17736"}]}
or like this
{"id":2348,"sku":"CABLE-RCK708","name":"Road Elite Link Brake Kit \/ Ltd. Purple","attribute_set_id":4,"price":999999999,"status":1,"visibility":4,"type_id":"simple","created_at":"2024-04-13 23:19:20","updated_at":"2024-04-22 15:52:25","weight":1,"extension_attributes":{"website_ids":[1],"category_links":[{"position":0,"category_id":"7"},{"position":0,"category_id":"9"}],"stock_item":{"item_id":2348,"product_id":2348,"stock_id":1,"qty":null,"is_in_stock":true,"is_qty_decimal":false,"show_default_notification_message":false,"use_config_min_qty":true,"min_qty":0,"use_config_min_sale_qty":1,"min_sale_qty":1,"use_config_max_sale_qty":true,"max_sale_qty":100000000,"use_config_backorders":true,"backorders":1,"use_config_notify_stock_qty":true,"notify_stock_qty":1,"use_config_qty_increments":true,"qty_increments":0,"use_config_enable_qty_inc":true,"enable_qty_increments":false,"use_config_manage_stock":true,"manage_stock":false,"low_stock_date":"2024-04-22 15:52:25","is_decimal_divided":false,"stock_status_changed_auto":0}},"options":[],"media_gallery_entries":[],"tier_prices":[{"customer_group_id":4,"qty":1,"value":81.9,"extension_attributes":{"website_id":0}},{"customer_group_id":5,"qty":1,"value":73.5,"extension_attributes":{"website_id":0}},{"customer_group_id":6,"qty":1,"value":73.5,"extension_attributes":{"website_id":0}},{"customer_group_id":7,"qty":1,"value":105,"extension_attributes":{"website_id":0}}],"custom_attributes":[{"attribute_code":"image","value":"no_selection"},{"attribute_code":"url_key","value":"road-elite-link-brake-kit-ltd-purple"},{"attribute_code":"brands","value":"6"},{"attribute_code":"small_image","value":"no_selection"},{"attribute_code":"options_container","value":"container2"},{"attribute_code":"sub_category","value":"175"},{"attribute_code":"thumbnail","value":"no_selection"},{"attribute_code":"swatch_image","value":"no_selection"},{"attribute_code":"tax_class_id","value":"2"},{"attribute_code":"msrp_display_actual_price_type","value":"0"},{"attribute_code":"category_ids","value":["7","9"]},{"attribute_code":"required_options","value":"0"},{"attribute_code":"has_options","value":"0"},{"attribute_code":"image_label","value":"Road Elite Link Brake Kit \/ Ltd. Purple"},{"attribute_code":"small_image_label","value":"Road Elite Link Brake Kit \/ Ltd. Purple"},{"attribute_code":"brand","value":"JAGWIRE"},{"attribute_code":"thumbnail_label","value":"Road Elite Link Brake Kit \/ Ltd. Purple"},{"attribute_code":"internal_id","value":"17736"}]}

@engcom-Delta engcom-Delta self-assigned this Apr 24, 2024
Copy link

m2-assistant bot commented Apr 24, 2024

Hi @engcom-Delta. Thank you for working on this issue.
In order to make sure that issue has enough information and ready for development, please read and check the following instruction: 👇

  • 1. Verify that issue has all the required information. (Preconditions, Steps to reproduce, Expected result, Actual result).
  • 2. Verify that issue has a meaningful description and provides enough information to reproduce the issue.
  • 3. Add Area: XXXXX label to the ticket, indicating the functional areas it may be related to.
  • 4. Verify that the issue is reproducible on 2.4-develop branch
    Details- Add the comment @magento give me 2.4-develop instance to deploy test instance on Magento infrastructure.
    - If the issue is reproducible on 2.4-develop branch, please, add the label Reproduced on 2.4.x.
    - If the issue is not reproducible, add your comment that issue is not reproducible and close the issue and stop verification process here!
  • 5. Add label Issue: Confirmed once verification is complete.
  • 6. Make sure that automatic system confirms that report has been added to the backlog.

@engcom-Dash engcom-Dash removed their assignment Apr 24, 2024
@engcom-Delta
Copy link
Contributor

engcom-Delta commented Apr 24, 2024

Hi @dtanh91 ,

Thanks for reporting and collaboration.

Verified the issue in Magento 2.4 dev instance and the issue is not reproducible.

Steps to reproduce:

1.Import products with base 64 encoded image/images using rest API
2.Verify if the images are uploaded in the products

Payload used:

{
"product":
{
"name": "product6",
"sku": "1191056",
"price": 24316,
"status": 1,
"attribute_set_id": 4,
"type_id": "simple",
"extension_attributes": {
"category_links": [
{
"position": 0,
"category_id": "9"
}
],
"stock_item": {
"qty": 10,
"is_in_stock": true,
"use_config_backorders": false,
"backorders": 0
}
},
"media_gallery_entries":[ {
"id": 0,
"media_type": "image",
"label": "Magento-T-Shirt-black.jpeg",
"position": 0,
"disabled": 0,
"types": [
"image",
"thumbnail",
"small_image"
],
"file": "Magento-T-Shirt-black.jpeg",
"content": {
"base64_encoded_data": "base64 equivalent",
"type": "image/jpeg",
"name": "Magento-T-Shirt-black.jpeg"
}
}
],
"custom_attributes": [
{
"attribute_code": "description",
"value": "MediaPad M5 lite 8 LTE 32GB"
},
{
"attribute_code": "short_description",
"value": "MediaPad M5 lite 8 LTE 32GB"
}
]
}
}

Result:

{
"id": 19,
"sku": "1191056",
"name": "product6",
"attribute_set_id": 4,
"price": 24316,
"status": 1,
"visibility": 4,
"type_id": "simple",
"created_at": "2024-04-24 13:47:58",
"updated_at": "2024-04-24 13:47:58",
"extension_attributes": {
"website_ids": [
1
],
"stock_item": {
"item_id": 18,
"product_id": 19,
"stock_id": 1,
"qty": 10,
"is_in_stock": true,
"is_qty_decimal": false,
"show_default_notification_message": false,
"use_config_min_qty": true,
"min_qty": 0,
"use_config_min_sale_qty": 1,
"min_sale_qty": 1,
"use_config_max_sale_qty": true,
"max_sale_qty": 10000,
"use_config_backorders": false,
"backorders": 0,
"use_config_notify_stock_qty": true,
"notify_stock_qty": 1,
"use_config_qty_increments": true,
"qty_increments": 0,
"use_config_enable_qty_inc": true,
"enable_qty_increments": false,
"use_config_manage_stock": true,
"manage_stock": true,
"low_stock_date": null,
"is_decimal_divided": false,
"stock_status_changed_auto": 0
}
},
"options": [],
"media_gallery_entries": [
{
"id": 11,
"media_type": "image",
"label": "Magento-T-Shirt-black.jpeg",
"position": 0,
"disabled": false,
"types": [
"image",
"small_image",
"thumbnail"
],
"file": "/M/a/Magento-T-Shirt-black.jpeg"
}
],
"custom_attributes": [
{
"attribute_code": "image",
"value": "/M/a/Magento-T-Shirt-black.jpeg"
},
{
"attribute_code": "small_image",
"value": "/M/a/Magento-T-Shirt-black.jpeg"
},
{
"attribute_code": "thumbnail",
"value": "/M/a/Magento-T-Shirt-black.jpeg"
},
{
"attribute_code": "swatch_image",
"value": "no_selection"
},
{
"attribute_code": "options_container",
"value": "container2"
},
{
"attribute_code": "url_key",
"value": "product6"
},
{
"attribute_code": "msrp_display_actual_price_type",
"value": "0"
},
{
"attribute_code": "required_options",
"value": "0"
},
{
"attribute_code": "has_options",
"value": "0"
},
{
"attribute_code": "image_label",
"value": "Magento-T-Shirt-black.jpeg"
},
{
"attribute_code": "small_image_label",
"value": "Magento-T-Shirt-black.jpeg"
},
{
"attribute_code": "thumbnail_label",
"value": "Magento-T-Shirt-black.jpeg"
},
{
"attribute_code": "tax_class_id",
"value": "2"
},
{
"attribute_code": "category_ids",
"value": []
},
{
"attribute_code": "short_description",
"value": "MediaPad M5 lite 8 LTE 32GB"
},
{
"attribute_code": "description",
"value": "MediaPad M5 lite 8 LTE 32GB"
}
]
}

Screenshot 2024-04-24 at 7 26 50 PM

Please refer the attached screenshots, data and let us know if we missed anything.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Issue: needs update Additional information is require, waiting for response Reported on 2.4.5 Indicates original Magento version for the Issue report.
Projects
Development

No branches or pull requests

3 participants