Skip to content

Rest-API updating product stock_item deletes downloadable_product_links #21811

Closed
@EyalAmir

Description

@EyalAmir

Preconditions (*)

  1. Magento 2.4-develop
  2. Create regular downloadable product, upload downloadable content

Steps to reproduce (*)

  1. Update product stock_item values using a PUT call. For example: {"product": {"sku": "Download1", "status": "1", "name": "Test Name", "price": "11.99", "type_id": "downloadable", "extension_attributes": {"stock_item": {"manage_stock": false}}}}

Expected result (*)

  1. The stock_item data would be updated and downloadable product links and samples are preserved since they're not included in the extension_attributes being sent in the update.

Actual result (*)

  1. After update product has no links to download content (no downloadable information). This is similar to Downloadable product links removal on update via API #15923 except that didn't resolve being able to post a subset of extension_attributes.
    image

Metadata

Metadata

Labels

Component: CatalogEvent: dmcdindia1Fixed in 2.4.xThe issue has been fixed in 2.4-develop branchIssue: Clear DescriptionGate 2 Passed. Manual verification of the issue description passedIssue: ConfirmedGate 3 Passed. Manual verification of the issue completed. Issue is confirmedIssue: Format is validGate 1 Passed. Automatic verification of issue format passedIssue: Ready for WorkGate 4. Acknowledged. Issue is added to backlog and ready for developmentPriority: P2A defect with this priority could have functionality issues which are not to expectations.Reproduced on 2.4.xThe issue has been reproduced on latest 2.4-develop branchSeverity: S2Major restrictions or short-term circumventions are required until a fix is available.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions